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:

  • Docker vs Vagrant
  • Hyperledger on mac using Docker images cannot find Docker daemon?
  • How is the execution order of docker run command' options (such as “-v” )?Which first execute?
  • Where mongoimport store the document in a Docker container
  • How do I run mysqld as root in the official MySql docker image?
  • Jenkins - Cannot run program “docker”
  • #!/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?

  • Cannot read file within jar file
  • NGINX as reverse proxy on another container - how to configure the config files
  • Docker set up - cannot run hello-world
  • How do I use the git commit id as a docker image tag in maven?
  • how to mount the nginx docker container into host using Ansible Playbook?
  • How do i bind Docker container to a specific external IP address, if i need to allocate many ports?
  • 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.