mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-27 21:41:27 +00:00
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:
commit
e1c7b50920
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue