Merge job Docker daemon detach 修复
This commit was merged in pull request #50.
This commit is contained in:
@@ -42,9 +42,9 @@ if [[ -f /sys/fs/cgroup/cgroup.controllers ]]; then
|
|||||||
'
|
'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sudo sh -c 'exec nohup dockerd "$@" >/tmp/dockerd.log 2>&1' sh \
|
sudo sh -c 'nohup dockerd "$@" </dev/null >/tmp/dockerd.log 2>&1 &' sh \
|
||||||
--host=unix:///var/run/docker.sock \
|
--host=unix:///var/run/docker.sock \
|
||||||
--storage-driver="$storage_driver" &
|
--storage-driver="$storage_driver"
|
||||||
printf '%s\n' 'waiting for job Docker daemon'
|
printf '%s\n' 'waiting for job Docker daemon'
|
||||||
for ((attempt = 0; attempt < wait_seconds; attempt++)); do
|
for ((attempt = 0; attempt < wait_seconds; attempt++)); do
|
||||||
if docker info >/dev/null 2>&1; then
|
if docker info >/dev/null 2>&1; then
|
||||||
|
|||||||
Reference in New Issue
Block a user