Rails, Docker: Host does not exist: “default”

前端 未结 4 1194
耶瑟儿~
耶瑟儿~ 2021-01-30 08:42

When I try to run docker-machine start default , I get Host does not exist: \"default\", I tried eval \"$(docker-machine env default)\", b

4条回答
  •  有刺的猬
    2021-01-30 09:11

    you may try:

    docker-machine create -d virtualbox default
    

    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 :

    docker-machine create --driver hyperv vm
    

    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/

提交回复
热议问题