mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
[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:
parent
8016f15c8a
commit
5b1481fc12
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
|
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
|
||||||
|
|
Loading…
Reference in a new issue