How to use "Docker Quickstart Terminal" to start another docker machine?

On my mac, when I launch docker by running the “Docker quick launch terminal”, it will launch the default docking machine.

I see in start.sh docker quick launch terminal:

 #!/bin/bash VM=default DOCKER_MACHINE=/usr/local/bin/docker-machine VBOXMANAGE=/Applications/VirtualBox.app/Contents/MacOS/VBoxManage BLUE='\033[0;34m' GREEN='\033[0;32m' NC='\033[0m' ... more 

How can I start another docker machine without modifying this shell file?

+7
docker docker-machine
source share
1 answer

You can just create a new docker machine e:

 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 
+4
source share

All Articles