Fix docker running test

This commit is contained in:
fortuna 2018-03-26 18:20:29 -04:00
parent d8d196e53d
commit 5c77acf983

View file

@ -82,10 +82,10 @@ function verify_docker_installed() {
}
function verify_docker_running() {
if ! docker info |> /dev/null; then
if ! docker info > /dev/null 2>&1 ; then
log_error "dockerd is not running."
exit 1
fi
fi
}
# Set trap which publishes error tag only if there is an error.