Always check ischroot to be sure docker is started

This commit is contained in:
nicolas.dorier
2019-06-25 15:40:23 +09:00
parent dc5cdf27a9
commit 36e0ea5b2b

View File

@@ -372,7 +372,7 @@ if ! [[ -x "$(command -v docker-compose)" ]]; then
return
fi
if $START && [[ -x "$(command -v ischroot)" ]] && ischroot; then
if [[ -x "$(command -v ischroot)" ]] && ischroot; then
echo "chroot detected, running dockerd in background..."
dockerd &
echo "Waiting /var/run/docker.sock to be created..."