Docker: allow building the container on MacOS and Linux
Created by: fengalin
On MacOS, while building the docker container, useradd
returns with code 4 (UID already in use), even with option -o. On this platform, the access rights for a volume attached to a running container are translated to the container's user and group. So, there is no need to handle UID and GID compliance like we do on Linux. See this for reference: https://docs.docker.com/docker-for-mac/osxfs/
This modification allows not specifying the UID and GID while building the container, keeping the defaults for useradd
.
Fixes #1037 (closed)