mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fix typo and cleanup docs for installation.
Signed-off-by: Jackson Geller <jacksongeller@gmail.com>
This commit is contained in:
parent
db54c79d7c
commit
9746021f1a
2 changed files with 73 additions and 73 deletions
|
|
@ -21,7 +21,7 @@ You install Docker using Docker Toolbox. Docker Toolbox includes the following D
|
|||
* Docker Compose for running the `docker-compose` binary
|
||||
* Kitematic, the Docker GUI
|
||||
* a shell preconfigured for a Docker command-line environment
|
||||
* Oracle VM VirtualBox
|
||||
* Oracle VM VirtualBox
|
||||
|
||||
Because the Docker daemon uses Linux-specific kernel features, you can't run
|
||||
Docker natively in OS X. Instead, you must use `docker-machine` to create and
|
||||
|
|
@ -62,7 +62,7 @@ practice, work through the exercises on this page.
|
|||
### Installation
|
||||
|
||||
If you have VirtualBox running, you must shut it down before running the
|
||||
installer.
|
||||
installer.
|
||||
|
||||
1. Go to the [Docker Toolbox](https://www.docker.com/toolbox) page.
|
||||
|
||||
|
|
@ -72,38 +72,38 @@ installer.
|
|||
and choosing "Open" from the pop-up menu.
|
||||
|
||||
The installer launches the "Install Docker Toolbox" dialog.
|
||||
|
||||
|
||||

|
||||
|
||||
4. Press "Continue" to install the toolbox.
|
||||
|
||||
The installer presents you with options to customize the standard
|
||||
installation.
|
||||
|
||||
installation.
|
||||
|
||||

|
||||
|
||||
|
||||
By default, the standard Docker Toolbox installation:
|
||||
|
||||
* installs binaries for the Docker tools in `/usr/local/bin`
|
||||
* makes these binaries available to all users
|
||||
|
||||
* installs binaries for the Docker tools in `/usr/local/bin`
|
||||
* makes these binaries available to all users
|
||||
* installs VirtualBox; or updates any existing installation
|
||||
|
||||
|
||||
Change these defaults by pressing "Customize" or "Change
|
||||
Install Location."
|
||||
Install Location."
|
||||
|
||||
5. Press "Install" to perform the standard installation.
|
||||
|
||||
The system prompts you for your password.
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
6. Provide your password to continue with the installation.
|
||||
|
||||
When it completes, the installer provides you with some information you can
|
||||
use to complete some common tasks.
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
7. Press "Close" to exit.
|
||||
|
||||
|
||||
|
|
@ -111,7 +111,7 @@ and choosing "Open" from the pop-up menu.
|
|||
|
||||
To run a Docker container, you:
|
||||
|
||||
* create a new (or start an existing) Docker virtual machine
|
||||
* create a new (or start an existing) Docker virtual machine
|
||||
* switch your environment to your new VM
|
||||
* use the `docker` client to create, load, and manage containers
|
||||
|
||||
|
|
@ -134,10 +134,10 @@ There are two ways to use the installed tools, from the Docker Quickstart Termin
|
|||
* points the terminal environment to this VM
|
||||
|
||||
Once the launch completes, the Docker Quickstart Terminal reports:
|
||||
|
||||
|
||||

|
||||
|
||||
Now, you can run `docker` commands.
|
||||
|
||||
Now, you can run `docker` commands.
|
||||
|
||||
3. Verify your setup succeeded by running the `hello-world` container.
|
||||
|
||||
|
|
@ -186,20 +186,20 @@ different shell such as C Shell but the commands are the same.
|
|||
To see how to connect Docker to this machine, run: docker-machine env default
|
||||
|
||||
This creates a new `default` VM in VirtualBox.
|
||||
|
||||
|
||||

|
||||
|
||||
The command also creates a machine configuration in the
|
||||
`~/.docker/machine/machines/default` directory. You only need to run the
|
||||
`create` command once. Then, you can use `docker-machine` to start, stop,
|
||||
query, and otherwise manage the VM from the command line.
|
||||
|
||||
|
||||
2. List your available machines.
|
||||
|
||||
$ docker-machine ls
|
||||
NAME ACTIVE DRIVER STATE URL SWARM
|
||||
default * virtualbox Running tcp://192.168.99.101:2376
|
||||
|
||||
default * virtualbox Running tcp://192.168.99.101:2376
|
||||
|
||||
If you have previously installed the deprecated Boot2Docker application or
|
||||
run the Docker Quickstart Terminal, you may have a `dev` VM as well. When you
|
||||
created `default` VM, the `docker-machine` command provided instructions
|
||||
|
|
@ -212,9 +212,9 @@ different shell such as C Shell but the commands are the same.
|
|||
export DOCKER_HOST="tcp://192.168.99.101:2376"
|
||||
export DOCKER_CERT_PATH="/Users/mary/.docker/machine/machines/default"
|
||||
export DOCKER_MACHINE_NAME="default"
|
||||
# Run this command to configure your shell:
|
||||
# Run this command to configure your shell:
|
||||
# eval "$(docker-machine env default)"
|
||||
|
||||
|
||||
4. Connect your shell to the `default` machine.
|
||||
|
||||
$ eval "$(docker-machine env default)"
|
||||
|
|
@ -246,9 +246,9 @@ this older VM, you can migrate it.
|
|||
2. Type the following command.
|
||||
|
||||
$ docker-machine create -d virtualbox --virtualbox-import-boot2docker-vm boot2docker-vm docker-vm
|
||||
|
||||
3. Use the `docker-machine` command to interact with the migrated VM.
|
||||
|
||||
|
||||
3. Use the `docker-machine` command to interact with the migrated VM.
|
||||
|
||||
The `docker-machine` subcommands are slightly different than the `boot2docker`
|
||||
subcommands. The table below lists the equivalent `docker-machine` subcommand
|
||||
and what it does:
|
||||
|
|
@ -280,7 +280,7 @@ To verify this, run the following commands:
|
|||
|
||||
$ docker-machine ls
|
||||
NAME ACTIVE DRIVER STATE URL SWARM
|
||||
default * virtualbox Running tcp://192.168.99.100:2376
|
||||
default * virtualbox Running tcp://192.168.99.100:2376
|
||||
|
||||
The `ACTIVE` machine, in this case `default`, is the one your environment is pointing to.
|
||||
|
||||
|
|
@ -298,7 +298,7 @@ The `ACTIVE` machine, in this case `default`, is the one your environment is poi
|
|||
2. Display your running container with `docker ps` command
|
||||
|
||||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||
5fb65ff765e9 nginx:latest "nginx -g 'daemon of 3 minutes ago Up 3 minutes 0.0.0.0:49156->443/tcp, 0.0.0.0:49157->80/tcp web
|
||||
5fb65ff765e9 nginx:latest "nginx -g 'daemon of 3 minutes ago Up 3 minutes 0.0.0.0:49156->443/tcp, 0.0.0.0:49157->80/tcp web
|
||||
|
||||
At this point, you can see `nginx` is running as a daemon.
|
||||
|
||||
|
|
@ -392,7 +392,7 @@ To upgrade Docker Toolbox, download an re-run [the Docker Toolbox
|
|||
installer](https://docker.com/toolbox/).
|
||||
|
||||
|
||||
## Uninstall Docker Toolbox
|
||||
## Uninstall Docker Toolbox
|
||||
|
||||
To uninstall, do the following:
|
||||
|
||||
|
|
@ -400,15 +400,15 @@ To uninstall, do the following:
|
|||
|
||||
$ docker-machine ls
|
||||
NAME ACTIVE DRIVER STATE URL SWARM
|
||||
dev * virtualbox Running tcp://192.168.99.100:2376
|
||||
my-docker-machine virtualbox Stopped
|
||||
default virtualbox Stopped
|
||||
dev * virtualbox Running tcp://192.168.99.100:2376
|
||||
my-docker-machine virtualbox Stopped
|
||||
default virtualbox Stopped
|
||||
|
||||
2. Remove each machine.
|
||||
|
||||
$ docker-machine rm dev
|
||||
Successfully removed dev
|
||||
|
||||
|
||||
Removing a machine deletes its VM from VirtualBox and from the
|
||||
`~/.docker/machine/machines` directory.
|
||||
|
||||
|
|
@ -417,16 +417,16 @@ To uninstall, do the following:
|
|||
4. Remove the `docker`, `docker-compose`, and `docker-machine` commands from the `/usr/local/bin` folder.
|
||||
|
||||
$ rm /usr/local/bin/docker
|
||||
|
||||
|
||||
5. Delete the `~/.docker` folder from your system.
|
||||
|
||||
|
||||
## Learning more
|
||||
## Learning more
|
||||
|
||||
Use `docker-machine help` to list the full command line reference for Docker Machine. For more
|
||||
information about using SSH or SCP to access a VM, see [the Docker Machine
|
||||
documentation](https://docs.docker.com/machine/).
|
||||
|
||||
You can continue with the [Docker User Guide](/userguide). If you are
|
||||
interested in using the Kitematic GUI, see the [Kitermatic user
|
||||
interested in using the Kitematic GUI, see the [Kitematic user
|
||||
guide](/kitematic/userguide/).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue