Created
January 5, 2016 14:41
-
-
Save tanish-kr/aef2bfc9d8f6990cfd8e to your computer and use it in GitHub Desktop.
boot2dockerのイメージからdocker-machineへmigrateする ref: http://qiita.com/kitaro_tn/items/17b5394f7386c624d6c1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker-machine create -d virtualbox --virtualbox-import-boot2docker-vm boot2docker-vm docker-vm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker build -t my_docker:0.0.1 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker-machine env docker-vm | |
export DOCKER_TLS_VERIFY="1" | |
export DOCKER_HOST="tcp://192.168.xx.xx:xxxx" | |
export DOCKER_CERT_PATH="docker-vm cert path" | |
export DOCKER_MACHINE_NAME="docker-vm" | |
# Run this command to configure your shell: | |
# eval $(docker-machie env docker-vm) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker-machine restart docker-vm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment