Update error message with docker group instructions

This commit is contained in:
Daniel Borkan 2018-03-30 14:32:16 -04:00
parent 29e63b1d9a
commit 4da1765b95

View file

@ -81,14 +81,16 @@ function log_for_sentry() {
# Check to see if docker is installed.
function verify_docker_installed() {
if ! command_exists docker; then
log_error "Docker CE must be installed, please run \"curl -sS https://get.docker.com/ | sh\" or visit https://docs.docker.com/install/"
log_error "\
Docker CE must be installed, please run \"curl -sS https://get.docker.com/ | sh\" or visit https://docs.docker.com/install/
After installing Docker you will need to add your user to the docker group, for example by running \"sudo usermod -a -G docker \$USER && newgrp docker\""
exit 1
fi
}
function verify_docker_running() {
if ! docker info > /dev/null 2>&1 ; then
log_error "dockerd is not running."
log_error "dockerd is not running. You may need to add your user to the docker group, for example by running \"sudo usermod -a -G docker \$USER && newgrp docker\""
exit 1
fi
}