Merge pull request #6244 from Cyral/windows-conn-err-msg

Show more helpful error message when Docker is not running. Fixes #6175
This commit is contained in:
Joffrey F 2018-10-31 14:56:08 -07:00 committed by GitHub
commit fb8cd7d813
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -67,7 +67,9 @@ def handle_connection_errors(client):
def log_windows_pipe_error(exc):
if exc.winerror == 232: # https://github.com/docker/compose/issues/5005
if exc.winerror == 2:
log.error("Couldn't connect to Docker daemon. You might need to start Docker for Windows.")
elif exc.winerror == 232: # https://github.com/docker/compose/issues/5005
log.error(
"The current Compose file version is not compatible with your engine version. "
"Please upgrade your Compose file to a more recent version, or set "