How is a Docker Machine marked as active?

后端 未结 3 745
一生所求
一生所求 2021-02-01 05:20

I am working through the Docker Machine User Guide over at https://docs.docker.com/v1.5/machine/.

It says:

You can see the machine you have created by r         


        
3条回答
  •  名媛妹妹
    2021-02-01 06:00

    I think just running the following command should work:

    $ eval $(docker-machine env default)
    

    (Where default is the name of the machine).

    The reason for the * is to tell you which machine you're currently connected to e.g. if you run docker ps which Docker engine will it talk to?

    In the current version of Docker machine, I believe you have to always specify the name.

提交回复
热议问题