Last active
August 29, 2015 14:11
-
-
Save phstudy/02a33c9d295e24eca8c8 to your computer and use it in GitHub Desktop.
docker machine on azure
This file contains hidden or 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
14:11:09 study-mbpr: Downloads$ ./darwin create -d azure --azure-publish-settings-file="Study Lab.-12-9-2014-credentials.publishsettings" --azure-password="------------" --azure-username="study" study-docker | |
INFO[0000] Creating Azure host... | |
INFO[0058] Waiting for SSH... | |
INFO[0143] Waiting for docker daemon on host to be available... | |
INFO[0194] "study-docker" has been created and is now the active machine. Docker commands will now run against that machine. | |
14:14:55 study-mbpr: Downloads$ ./darwin ls | |
NAME ACTIVE DRIVER STATE URL | |
study-docker * azure Running tcp://docker-host-87211309ea05.cloudapp.net:4243 | |
14:15:35 study-mbpr: Downloads$ export DOCKER_HOST=`./darwin url` DOCKER_AUTH=identity # not support DOCKER_AUTH=identity now, ref: https://github.com/docker/machine/issues/26 | |
14:16:26 study-mbpr: Downloads$ echo $DOCKER_HOST | |
tcp://docker-host-87211309ea05.cloudapp.net:4243 | |
14:16:29 study-mbpr: Downloads$ docker run busybox echo hello world | |
Unable to find image 'busybox' locally | |
busybox:latest: The image you are pulling has been verified | |
511136ea3c5a: Pull complete | |
df7546f9f060: Pull complete | |
e433a6c5b276: Pull complete | |
e72ac664f4f0: Pull complete | |
Status: Downloaded newer image for busybox:latest | |
hello world | |
14:22:58 study-mbpr: Downloads$ docker ps -a | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
be0db05f4bf2 busybox:latest "echo hello world" 5 seconds ago Exited (0) 4 seconds ago focused_pike | |
14:29:08 study-mbpr: Downloads$ ./darwin rm study-docker | |
ERRO[0015] Error removing machine study-docker: Code: ConflictError, Message: Windows Azure is currently performing an operation on deployment 'docker-host-87211309ea05' that requires exclusive access. Please try again later for operation on disk or image 'docker-host-87211309ea05-docker-host-87211309ea05-0-201412090612140602' associated with the deployment. | |
FATA[0015] There was an error removing a machine. To force remove it, pass the -f option. Warning: this might leave it running on the provider. | |
14:29:31 study-mbpr: Downloads$ ./darwin rm -f study-docker | |
14:30:01 study-mbpr: Downloads$ ./darwin ls | |
NAME ACTIVE DRIVER STATE URL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment