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

build error #49

Open esshab opened 3 years ago

esshab commented 3 years ago

Describe the bug ./build.sh --type single --zip /home/centos/SAS_Viya_deployment_data.zip --addons "auth-demo"

groupadd: invalid group ID 'docker' The command '/bin/sh -c groupadd --gid ${DOCKER_GID} docker' returned a non-zero code: 3

Mapreduce2 commented 3 years ago

We worked around the problem by commenting out the following

RUN groupadd --gid ${DOCKER_GID} docker RUN useradd --uid ${USER_UID} \ --gid ${DOCKER_GID} \ --create-home \ --shell /bin/bash \ sas

and replacing it with

RUN groupadd -g ${DOCKER_GID} docker && useradd -m -u ${DOCKER_GID} -g docker sas

However, why does the existing code fail? I was not able to answer that.