Source repo for Docker's Documentation
Go to file
Nathan LeClaire 2a15d98575 First steps to make ssh command smoother
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2015-09-21 12:16:47 -07:00
Godeps Updating to Go 1.5 2015-08-23 15:12:59 -04:00
commands First steps to make ssh command smoother 2015-09-21 12:16:47 -07:00
docs First steps to make ssh command smoother 2015-09-21 12:16:47 -07:00
drivers Rehauled build system and integration testing 2015-09-18 15:47:00 -07:00
experimental Tooling for release build 2015-06-14 16:05:57 -07:00
libmachine Fix vet errors and enforce vet on travis 2015-09-19 16:09:44 -07:00
log Merge pull request #1810 from xiaohui/cleanup 2015-09-16 16:38:40 -07:00
mk Rehauled build system and integration testing 2015-09-18 15:47:00 -07:00
script Rehauled build system and integration testing 2015-09-18 15:47:00 -07:00
ssh First steps to make ssh command smoother 2015-09-21 12:16:47 -07:00
state Add Timeout state to ls command 2015-07-30 13:44:40 -07:00
test/integration First steps to make ssh command smoother 2015-09-21 12:16:47 -07:00
utils Fix vet errors and enforce vet on travis 2015-09-19 16:09:44 -07:00
version bump dev version 2015-08-11 11:44:48 -04:00
.dockerignore Rehauled build system and integration testing 2015-09-18 15:47:00 -07:00
.gitignore Rehauled build system and integration testing 2015-09-18 15:47:00 -07:00
.godir Initial commit 2014-12-04 15:05:11 +01:00
.travis.yml Fix vet errors and enforce vet on travis 2015-09-19 16:09:44 -07:00
CHANGELOG.md do not time travel and learn to spell 2015-08-10 13:44:07 -04:00
CONTRIBUTING.md Rehauled build system and integration testing 2015-09-18 15:47:00 -07:00
Dockerfile Rehauled build system and integration testing 2015-09-18 15:47:00 -07:00
LICENSE Initial commit 2014-12-04 15:05:11 +01:00
MAINTAINERS add nathan to maintainers 2015-06-04 17:43:48 -04:00
Makefile Rehauled build system and integration testing 2015-09-18 15:47:00 -07:00
Makefile.inc Fix vet errors and enforce vet on travis 2015-09-19 16:09:44 -07:00
README.md Add logo to docs 2015-06-25 12:09:22 -07:00
ROADMAP.md Update ROADMAP.md 2015-06-08 14:14:13 -07:00
circle.yml Fix missing dep on circle 2015-09-19 12:03:32 -07:00
main.go change debug env var to MACHINE_DEBUG 2015-09-05 08:57:03 -04:00
main_test.go Refactoring commands.go into new commands package, with separate file for each subcommand 2015-04-15 19:04:44 -04:00
vendor Rehauled build system and integration testing 2015-09-18 15:47:00 -07:00

README.md

Docker Machine

Machine lets you create Docker hosts on your computer, on cloud providers, and inside your own data center. It creates servers, installs Docker on them, then configures the Docker client to talk to them.

It works a bit like this:

$ docker-machine create -d virtualbox dev
Creating CA: /home/username/.docker/machine/certs/ca.pem
Creating client certificate: /home/username/.docker/machine/certs/cert.pem
Image cache does not exist, creating it at /home/username/.docker/machine/cache...
No default boot2docker iso found locally, downloading the latest release...
Downloading https://github.com/boot2docker/boot2docker/releases/download/v1.6.2/boot2docker.iso to /home/username/.docker/machine/cache/boot2docker.iso...
Creating VirtualBox VM...
Creating SSH key...
Starting VirtualBox VM...
Starting VM...
To see how to connect Docker to this machine, run: docker-machine env dev

$ docker-machine ls
NAME   ACTIVE   DRIVER       STATE     URL                         SWARM
dev    *        virtualbox   Running   tcp://192.168.99.127:2376

$ eval "$(docker-machine env dev)"

$ docker run busybox echo hello world
Unable to find image 'busybox:latest' locally
511136ea3c5a: Pull complete
df7546f9f060: Pull complete
ea13149945cb: Pull complete
4986bf8c1536: Pull complete
hello world

$ docker-machine create -d digitalocean --digitalocean-access-token=secret staging
Creating SSH key...
Creating Digital Ocean droplet...
To see how to connect Docker to this machine, run: docker-machine env staging

$ docker-machine ls
NAME      ACTIVE   DRIVER         STATE     URL                          SWARM
dev                virtualbox     Running   tcp://192.168.99.127:2376
staging   *        digitalocean   Running   tcp://104.236.253.181:2376

Installation and documentation

Full documentation is available here.

Contributing

Want to hack on Machine? Please start with the Contributing Guide.