mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-10-05 18:03:21 +08:00
Change dind graph folder so it doesn't share the host
This commit is contained in:
@@ -30,7 +30,7 @@ WORKDIR /root
|
|||||||
# Remove IPv6 alias for localhost and start docker in the background ...
|
# Remove IPv6 alias for localhost and start docker in the background ...
|
||||||
CMD cat /etc/hosts >/etc/hosts.bak && \
|
CMD cat /etc/hosts >/etc/hosts.bak && \
|
||||||
sed 's/^::1.*//' /etc/hosts.bak > /etc/hosts && \
|
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 & \
|
--storage-driver=$DOCKER_STORAGE_DRIVER &>/docker.log & \
|
||||||
while true ; do /bin/sh ; done
|
while true ; do /bin/sh ; done
|
||||||
# ... and then put a shell in the foreground, restarting it if it exits
|
# ... and then put a shell in the foreground, restarting it if it exits
|
||||||
|
Reference in New Issue
Block a user