diff options
author | Joffrey F <f.joffrey@gmail.com> | 2018-10-31 14:56:08 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-31 14:56:08 -0700 |
commit | fb8cd7d813735386c14c30533198f56de67f170b (patch) | |
tree | 58c8d772ab6cc84c4e9c4921639e1da80a44d496 /compose/cli/errors.py | |
parent | 9b12f489aab49cfb5d436f207a07d70dec745367 (diff) | |
parent | abf67565f63a7dad1c0e51ceb55d203b9d18d069 (diff) |
Merge pull request #6244 from Cyral/windows-conn-err-msg
Show more helpful error message when Docker is not running. Fixes #6175
Diffstat (limited to 'compose/cli/errors.py')
-rw-r--r-- | compose/cli/errors.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compose/cli/errors.py b/compose/cli/errors.py index 8c89da6c..189b67fa 100644 --- a/compose/cli/errors.py +++ b/compose/cli/errors.py @@ -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 " |