How to use “Docker Quickstart Terminal” to start another docker-machine?

后端 未结 1 2057
无人共我
无人共我 2021-01-05 09:00

On my mac, when I start docker by running \"Docker quickstart terminal\", it will start the default docker machine.

I see in the start.sh o

相关标签:
1条回答
  • 2021-01-05 09:16

    You simply can create a new docker machine:

    docker-machine create -d virtualbox --virtualbox-memory 2048 --virtualbox-disk-size 204800 my_new_machine
    

    (replace my_new_machine)

    Then you can ssh to it:

    docker-machine start my_new_container
    eval $($DOCKER_MACHINE env my_new_container --shell=bash)
    docker-machine ssh my_new_container
    
    0 讨论(0)
提交回复
热议问题