Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-19562

the /flink/docs/docker/run.sh cause an error with numeric username

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.11.2
    • 1.20.0
    • Documentation
    • None

    Description

      if the user of the OS is a number, run the script and report an error:

      groupadd: '002117' is not a valid group name
      

      if the user of the OS is english, will be ok, like this:

      if [ "$(uname -s)" == "Linux" ]; then
        USER_NAME=${SUDO_USER:=$USER}
        USER_ID=$(id -u "${USER_NAME}")
        GROUP_ID=$(id -g "${USER_NAME}")
      else # boot2docker uid and gid
        USER_NAME='mwopr'
        USER_ID=1000
        GROUP_ID=50
      fi
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            tinny shizhengchao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: