[docker] add support for a different docker group id on the docker host

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
This commit is contained in:
Jakob Ackermann 2019-04-22 01:38:24 +02:00
parent 8016f15c8a
commit 5b1481fc12

View file

@ -4,8 +4,10 @@ echo "Changing permissions of /var/run/docker.sock for sibling containers"
ls -al /var/run/docker.sock ls -al /var/run/docker.sock
docker --version docker --version
cat /etc/passwd cat /etc/passwd
usermod -aG docker node
chown root:docker /var/run/docker.sock DOCKER_GROUP=$(stat -c '%g' /var/run/docker.sock)
groupadd --non-unique --gid ${DOCKER_GROUP} dockeronhost
usermod -aG dockeronhost node
mkdir -p /app/cache mkdir -p /app/cache
chown -R node:node /app/cache chown -R node:node /app/cache