Merge pull request #120 from das7pad/hotfix/docker-group

[docker] add support for a different docker group id on the docker host
This commit is contained in:
Brian Gough 2019-05-16 14:04:27 +01:00 committed by GitHub
commit e1c7b50920

View file

@ -4,8 +4,10 @@ echo "Changing permissions of /var/run/docker.sock for sibling containers"
ls -al /var/run/docker.sock
docker --version
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
chown -R node:node /app/cache