sassoftware / sas-container-recipes

A collection of recipes and other resources for building containers that include SAS Viya software.
https://www.sas.com
Apache License 2.0
89 stars 42 forks source link

getting error with build the container #53

Open esshab opened 3 years ago

esshab commented 3 years ago

useradd: UID 0 is not unique

[centos@cent01 sas-container-recipes]$ sudo ./build.sh --type single --zip /home/centos/SAS_Viya_deployment_data.zip --mirror-url "http://cent01.fedtst.sashq-d.openstack.sas.com/sas_repos" --addons "auth-demo"

Building Docker Build Container

Sending build context to Docker daemon 39.56MB Step 1/20 : FROM golang:1.14.0 ---> 25c4671a1478 Step 2/20 : ARG USER_UID=1000 ---> Using cache ---> 197becc58963 Step 3/20 : ARG DOCKER_GID=997 ---> Using cache ---> 53a104c66f70 Step 4/20 : RUN apt-get update && apt-get install -y openjdk-11-jdk-headless ansible && rm -rf /var/lib/apt/lists/* ---> Using cache ---> 31233e08406c Step 5/20 : RUN go get -x -u gopkg.in/yaml.v2 github.com/docker/docker/api/types github.com/docker/docker/client ---> Using cache ---> 26be5e0ad7a2 Step 6/20 : RUN groupadd --gid ${DOCKER_GID} docker ---> Using cache ---> 66cdc165782e Step 7/20 : RUN useradd --uid ${USER_UID} --gid ${DOCKER_GID} --create-home --shell /bin/bash sas ---> Running in 6b75dc5daffd useradd: UID 0 is not unique The command '/bin/sh -c useradd --uid ${USER_UID} --gid ${DOCKER_GID} --create-home --shell /bin/bash sas' returned a non-zero code: 4