Mount the docker socket in the default path for dind

This commit is contained in:
Pablo Carranza Velez 2016-10-26 08:43:13 -03:00
parent 88e512a69b
commit 9e3612fb18

View File

@ -16,7 +16,7 @@ ExecStartPre=-/bin/touch /etc/resolv.conf
ExecStart=/bin/bash -c 'source /usr/src/app/resin-vars && \
/usr/bin/docker run --rm --privileged --name resin_supervisor \
--net=host \
-v /var/run/docker.sock:/run/docker.sock \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "${CONFIG_PATH}:/boot/config.json" \
-v "${APPS_PATH}:/boot/apps.json" \
-v /resin-data/resin-supervisor:/data \
@ -36,6 +36,7 @@ ExecStart=/bin/bash -c 'source /usr/src/app/resin-vars && \
-e "DBUS_SYSTEM_BUS_ADDRESS=unix:path=/mnt/root/run/dbus/system_bus_socket" \
-e "RESIN_SUPERVISOR_SECRET=${RESIN_SUPERVISOR_SECRET}" \
-e "DOCKER_ROOT=/mnt/root/var/lib/docker" \
-e "DOCKER_SOCKET=/var/run/docker.sock" \
${SUPERVISOR_IMAGE}'
TimeoutStartSec=0
Restart=always