Skip to content

Instantly share code, notes, and snippets.

@wlonkly
Created December 8, 2014 00:38
Show Gist options
  • Save wlonkly/748d163bb8736c194890 to your computer and use it in GitHub Desktop.
Save wlonkly/748d163bb8736c194890 to your computer and use it in GitHub Desktop.
docker machine
:) flounder$ ./machine -D create -d digitalocean --digitalocean-access-token='token' dockertest
INFO[0000] Creating SSH key...
INFO[0000] Creating Digital Ocean droplet...
INFO[0002] Waiting for SSH...
INFO[0083] "dockertest" has been created and is now the active machine. Docker commands will now run against that machine.
:) flounder$ ./machine ls
NAME ACTIVE DRIVER STATE URL
dockertest * digitalocean Running tcp://104.236.23.196:2376
:) flounder$ export DOCKER_HOST=tcp://104.236.23.196:2376
:( flounder$ export DOCKER_AUTH=identity
:) flounder$ ./docker-1.3.1-dev-identity-auth ps
The authenticity of host "104.236.23.196:2376" can't be established.
Remote key ID XXUB:576L:QS32:VCJN:QCHU:CJBM:FVMY:QRW7:RMMN:TPV2:AFFR:3THD
Are you sure you want to continue connecting (yes/no)? yes
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
:) flounder$ ./docker-1.3.1-dev-identity-auth run -it busybox
Unable to find image 'busybox:latest' 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
/ # uname -a
Linux a6282f5ae87e 3.13.0-36-generic #63-Ubuntu SMP Wed Sep 3 21:30:07 UTC 2014 x86_64 GNU/Linux
/ #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment