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

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 of the docker quickstart terminal is:

  • Why does `docker images` also show the base image?
  • Docker container not starting a second time (iptables)
  • Webpack, asp.net core, docker: building webpack with dotnet debug or release build
  • Dockerfile - Angular2
  • Connection refused on docker container
  • In which branch should I build a docker image?
  • #!/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?

  • Jenkins not able to access internet when running as docker container
  • Docker in Docker docker-compose daemon not running on host. Windows 10
  • Nginx with dockerized NodeJS
  • Docker will not attach to an image
  • How to stop power shell script on error?
  • Can't access to docker mongo without being root
  • One Solution collect form web for “How to use “Docker Quickstart Terminal” to start another docker-machine?”

    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
    
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.