mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-24 07:46:41 +00:00
Mount the docker socket in the default path for dind
This commit is contained in:
parent
88e512a69b
commit
9e3612fb18
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user