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

invalid group ID 'docker' when building on Docker for Windows #21

Closed Pulpanj closed 5 years ago

Pulpanj commented 5 years ago

I am trying to build sas-viya image using Docker on Windows 10. Build step started from GIT bash $ ./build.sh --zip ../SAS_Viya_deployment_data.zip --addons "addons/auth-sssd" --type single

ends with groupadd: invalid group ID 'docker' ----end of log---- rm -r $WORK/b132/ Removing intermediate container d6e3bd563cec ---> 84c21dc8dc75 Step 6/19 : RUN groupadd --gid ${DOCKER_GID} docker ---> Running in 2145b18bd300 groupadd: invalid group ID 'docker' The command '/bin/sh -c groupadd --gid ${DOCKER_GID} docker' returned a non-zero code: 3 ----end of log----

Any idea? Any experience with sasviya image on Windows docker ? Regards Jaroslav Pulpan

alanzablocki commented 5 years ago

I believe this is not supported. See page 6, Chapter 2 of the SAS Viya 3.4 for containers deployment guide. Docker host must be a Linux machine, physical or VM. I recommend you get a Centos 7 VM guest on Windows 10 host and go from there.

Pulpanj commented 5 years ago

I dig into the issue and realized that it depends on flavor of bash (for Windows) you are using. Basically build scripts are ready just for Linux. I had hardcoded build.sh into Windows bat file and successfully build docker container that runs on Windows (including Jupyter). Happy camper now.

From: Alan Zablocki notifications@github.com Sent: Monday, June 3, 2019 11:19 PM To: sassoftware/sas-container-recipes sas-container-recipes@noreply.github.com Cc: Pulpanj pulpanj@volny.cz; Author author@noreply.github.com Subject: Re: [sassoftware/sas-container-recipes] invalid group ID 'docker' when building on Docker for Windows (#21)

EXTERNAL

I believe this is not supported. See page 6, Chapter 2 of the SAS Viya 3.4 for containers deployment guide. Docker host must be a Linux machine, physical or VM. I recommend you get a Centos 7 VM Guest on Windows 10 host and go from there.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/sassoftware/sas-container-recipes/issues/21?email_source=notifications&email_token=AC73E7Q7JTQ2OYVUOUIQCMDPYWDFFA5CNFSM4HP3MHEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODW2XFAQ#issuecomment-498430594, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AC73E7QRHHWP2SQZHU2QPM3PYWDFFANCNFSM4HP3MHEA.