fix: start containerd before dockerd
This commit is contained in:
parent
d8b40f4999
commit
f3c82258ac
1 changed files with 4 additions and 1 deletions
5
setup.sh
5
setup.sh
|
|
@ -66,9 +66,12 @@ if ! command -v docker >/dev/null 2>&1; then
|
||||||
|
|
||||||
# Start dockerd with custom data root
|
# Start dockerd with custom data root
|
||||||
if [ -x "${DOCKER_DIR}/bin/dockerd" ]; then
|
if [ -x "${DOCKER_DIR}/bin/dockerd" ]; then
|
||||||
# Symlink binaries so they're in PATH permanently
|
# Symlink binaries
|
||||||
ln -sf "${DOCKER_DIR}/bin/docker" /usr/bin/docker 2>/dev/null
|
ln -sf "${DOCKER_DIR}/bin/docker" /usr/bin/docker 2>/dev/null
|
||||||
ln -sf "${DOCKER_DIR}/bin/dockerd" /usr/bin/dockerd 2>/dev/null
|
ln -sf "${DOCKER_DIR}/bin/dockerd" /usr/bin/dockerd 2>/dev/null
|
||||||
|
# Start containerd first, then dockerd
|
||||||
|
"${DOCKER_DIR}/bin/containerd" &>/dev/null &
|
||||||
|
sleep 2
|
||||||
"${DOCKER_DIR}/bin/dockerd" --data-root "${DOCKER_DIR}/data" \
|
"${DOCKER_DIR}/bin/dockerd" --data-root "${DOCKER_DIR}/data" \
|
||||||
--exec-root "${DOCKER_DIR}/exec" --pidfile "${DOCKER_DIR}/docker.pid" \
|
--exec-root "${DOCKER_DIR}/exec" --pidfile "${DOCKER_DIR}/docker.pid" \
|
||||||
--userland-proxy=false \
|
--userland-proxy=false \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue