mirror of
https://github.com/docker/compose.git
synced 2025-07-27 07:34:10 +02:00
Merge pull request #2005 from lnmunhoz/master
Fix error message and class name from Boot2Docker to DockerMachine
This commit is contained in:
commit
6f12224ec9
@ -41,7 +41,7 @@ class Command(DocoptCommand):
|
|||||||
else:
|
else:
|
||||||
raise errors.DockerNotFoundGeneric()
|
raise errors.DockerNotFoundGeneric()
|
||||||
elif call_silently(['which', 'boot2docker']) == 0:
|
elif call_silently(['which', 'boot2docker']) == 0:
|
||||||
raise errors.ConnectionErrorBoot2Docker()
|
raise errors.ConnectionErrorDockerMachine()
|
||||||
else:
|
else:
|
||||||
raise errors.ConnectionErrorGeneric(self.get_client().base_url)
|
raise errors.ConnectionErrorGeneric(self.get_client().base_url)
|
||||||
|
|
||||||
|
@ -40,10 +40,10 @@ class DockerNotFoundGeneric(UserError):
|
|||||||
""")
|
""")
|
||||||
|
|
||||||
|
|
||||||
class ConnectionErrorBoot2Docker(UserError):
|
class ConnectionErrorDockerMachine(UserError):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(ConnectionErrorBoot2Docker, self).__init__("""
|
super(ConnectionErrorDockerMachine, self).__init__("""
|
||||||
Couldn't connect to Docker daemon - you might need to run `boot2docker up`.
|
Couldn't connect to Docker daemon - you might need to run `docker-machine start default`.
|
||||||
""")
|
""")
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user