When I try to run docker-machine start default
, I get Host does not exist: "default"
, I tried eval "$(docker-machine env default)"
, but still getting the same message. Where is the error ?
相关问题
- Question marks after images and js/css files in ra
- Docker task in Azure devops won't accept "$(pw
- Using :remote => true with hover event
- Eager-loading association count with Arel (Rails 3
- Unable to run mariadb when mount volume
you may try:
UPDATE 2016/10/19
The old answer may only work on mac with virtualbox installed.
If you are running docker-machine on windows, you should use Hyper-V :
see detail here:https://docs.docker.com/machine/drivers/hyper-v/
And if you are using Docker Machine to provision hosts on cloud providers, you may need other driver such as amazonec2 . More detail:https://docs.docker.com/machine/get-started-cloud/
Sometimes,
docker-machine start default
might misbehave and require you to rerun the command again. In that case, runningeval "$(docker-machine env default)"
will bring back joy :)Try simply to check what machine has been created (
docker-machine ls
):Then you can pick one and try your commands with it.
If there is none, you can create one first (
docker-machine create
).In the case of the OP:
Since the error message was:
One of the answers of "Docker command can't connect to docker daemon" should work: