How do I create a docker machine with a specific URL using docker-machine and VirtualBox?

后端 未结 3 1095
离开以前
离开以前 2021-02-07 12:37

I can create a Docker instance with the VirtualBox driver, but I cannot figure out how to specify the URL.

Create Command:

docker-machi         


        
3条回答
  •  一个人的身影
    2021-02-07 13:23

    Based on the discussion at the docker/machine feature request thread we wrote the following script:

    Usage: docker-machine-ipconfig  args...
    
    Commands:
        ls                             List running docker-machines' ip addresses
    
        static  [ip-address]  Configure  to use a static IP address
                                       (default is current address)
    
        dhcp                  Configure  to use DHCP client to gather IP address
    
        hosts                          Update /etc/hosts file
    

提交回复
热议问题