Skip to content

Instantly share code, notes, and snippets.

@haisi
Created March 23, 2020 20:55
Show Gist options
  • Select an option

  • Save haisi/02c2ef35f793572ef93172df69f1b0c9 to your computer and use it in GitHub Desktop.

Select an option

Save haisi/02c2ef35f793572ef93172df69f1b0c9 to your computer and use it in GitHub Desktop.

Revisions

  1. haisi created this gist Mar 23, 2020.
    10 changes: 10 additions & 0 deletions commands.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    # Create the VirtualBox VM running a mini Linux with Docker (name 'default')
    docker-machine create --driver=virtualbox
    docker-machine create --driver virtualbox --virtualbox-hostonly-cidr "10.0.0.1/24" default

    # See all machines
    docker-machine ls

    docker-machine env default

    eval "$(docker-machine env default)"