1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-07-14 01:57:32 +08:00

Change dind graph folder so it doesn't share the host

This commit is contained in:
Marcos Lilljedahl 2016-11-21 14:13:48 -03:00
parent 8b3892a34f
commit 69f9edc695

View File

@ -30,7 +30,7 @@ WORKDIR /root
# Remove IPv6 alias for localhost and start docker in the background ...
CMD cat /etc/hosts >/etc/hosts.bak && \
sed 's/^::1.*//' /etc/hosts.bak > /etc/hosts && \
dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 \
dockerd -g /graph --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 \
--storage-driver=$DOCKER_STORAGE_DRIVER &>/docker.log & \
while true ; do /bin/sh ; done
# ... and then put a shell in the foreground, restarting it if it exits