1
0
mirror of https://github.com/docker/docs.git synced 2026-11-14 04:50:52 +03:00
Mike Fiedler cd049cb4b9 Convert vmwarefusion bats tests back to machine
In #615, the helper function `machine()` was created and used within the
vmwarefusion test suite (amongst others) to wrap a platform-specfic
binary during the test suite.

In #1034, it appears that this name was changed to the normal
docker-machine binary, which can incoke the system-installed one, not
the recently compiled one, potentially testing the incorrect binary.

See:
- https://github.com/docker/machine/pull/615#discussion_r25643553
- https://github.com/docker/machine/pull/1034/files#diff-62c88a2fede921556dbdeead731596b2R14

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
2015-05-20 23:40:01 -04:00
2015-04-30 22:32:02 +02:00
2015-03-10 00:44:57 -04:00
2015-05-15 10:39:39 -07:00
2015-05-07 13:46:25 -07:00
2015-05-04 18:16:58 -07:00
2015-01-22 12:01:40 -08:00
2014-12-04 15:05:11 +01:00
2014-12-04 15:05:11 +01:00
2015-05-07 10:12:21 -07:00
2014-12-17 16:57:09 -08:00
2015-02-20 13:20:54 +10:00
2015-03-29 01:02:23 -04:00

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
INFO[0000] Creating SSH key...
INFO[0000] Creating VirtualBox VM...
INFO[0007] Starting VirtualBox VM...
INFO[0007] Waiting for VM to start...
INFO[0041] "dev" has been created and is now the active machine.
INFO[0041] To point your Docker client at it, run this in your shell: eval "$(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
INFO[0000] Creating SSH key...
INFO[0001] Creating Digital Ocean droplet...
INFO[0002] Waiting for SSH...
INFO[0070] Configuring Machine...
INFO[0109] "staging" has been created and is now the active machine.
INFO[0109] To point your Docker client at it, run this in your shell: eval "$(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.

Description
Репозиторий с исходным кодом для документации Docker
Readme Apache-2.0 945 MiB
Languages
Markdown 94.9%
HTML 2.4%
JavaScript 0.8%
CSS 0.7%
Go 0.7%
Other 0.2%