1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fixing spacing after period

This commit is contained in:
Mary Anthony 2015-02-17 16:10:32 -08:00
parent 1b36272dc3
commit 112aa1e341

View file

@ -5,7 +5,7 @@ page_keywords: Docker, Docker documentation, requirements, boot2docker, VirtualB
# Install Docker on Mac OS X # Install Docker on Mac OS X
Because the Docker daemon uses Linux-specific kernel features, you can't run Because the Docker daemon uses Linux-specific kernel features, you can't run
Docker natively in OS X. Instead, you must install the Boot2Docker application. Docker natively in OS X. Instead, you must install the Boot2Docker application.
The application includes a VirtualBox Virtual Machine (VM), Docker itself, and the The application includes a VirtualBox Virtual Machine (VM), Docker itself, and the
Boot2Docker management tool. Boot2Docker management tool.
@ -37,8 +37,8 @@ machine provided by Boot2Docker.
![OSX Architecture Diagram](/installation/images/mac_docker_host.png) ![OSX Architecture Diagram](/installation/images/mac_docker_host.png)
In OS X, the Docker host address is the address of the Linux VM. In OS X, the Docker host address is the address of the Linux VM.
When you start the `boot2docker` process, the VM is assigned an IP address. Under When you start the `boot2docker` process, the VM is assigned an IP address. Under
`boot2docker` ports on a container map to ports on the VM. To see this in `boot2docker` ports on a container map to ports on the VM. To see this in
practice, work through the exercises on this page. practice, work through the exercises on this page.
@ -166,8 +166,8 @@ Work through this section to try some practical container tasks using `boot2dock
$ docker run -d -P --name web nginx $ docker run -d -P --name web nginx
Normally, the `docker run` commands starts a container, runs it, and then Normally, the `docker run` commands starts a container, runs it, and then
exits. The `-d` flag keeps the container running in the background exits. The `-d` flag keeps the container running in the background
after the `docker run` command completes. The `-P` flag publishes exposed ports from the after the `docker run` command completes. The `-P` flag publishes exposed ports from the
container to your local host; this lets you access them from your Mac. container to your local host; this lets you access them from your Mac.
2. Display your running container with `docker ps` command 2. Display your running container with `docker ps` command
@ -190,7 +190,7 @@ Work through this section to try some practical container tasks using `boot2dock
![Bad Address](/installation/images/bad_host.png) ![Bad Address](/installation/images/bad_host.png)
This didn't work. The reason it doesn't work is your `DOCKER_HOST` address is This didn't work. The reason it doesn't work is your `DOCKER_HOST` address is
not the localhost address (0.0.0.0) but is instead the address of the not the localhost address (0.0.0.0) but is instead the address of the
`boot2docker` VM. `boot2docker` VM.
@ -199,13 +199,13 @@ Work through this section to try some practical container tasks using `boot2dock
$ boot2docker ip $ boot2docker ip
192.168.59.103 192.168.59.103
6. Enter the `https://192.168.59.103:49157` address in your browser: 6. Enter the `https://192.168.59.103:49157` address in your browser:
![Correct Addressing](/installation/images/good_host.png) ![Correct Addressing](/installation/images/good_host.png)
Success! Success!
7. To stop and then remove your running `nginx` container, do the following: 7. To stop and then remove your running `nginx` container, do the following:
$ docker stop web $ docker stop web
$ docker rm web $ docker rm web
@ -216,15 +216,15 @@ When you start `boot2docker`, it automatically shares your `/Users` directory
with the VM. You can use this share point to mount directories onto your container. with the VM. You can use this share point to mount directories onto your container.
The next exercise demonstrates how to do this. The next exercise demonstrates how to do this.
1. Change to your user `$HOME` directory. 1. Change to your user `$HOME` directory.
$ cd $HOME $ cd $HOME
2. Make a new `site` directory. 2. Make a new `site` directory.
$ mkdir site $ mkdir site
3. Change into the `site` directory. 3. Change into the `site` directory.
$ cd site $ cd site
@ -254,7 +254,7 @@ The next exercise demonstrates how to do this.
![Cool page](/installation/images/cool_view.png) ![Cool page](/installation/images/cool_view.png)
9. Stop and then remove your running `mysite` container. 9. Stop and then remove your running `mysite` container.
$ docker stop mysite $ docker stop mysite
$ docker rm mysite $ docker rm mysite
@ -262,7 +262,7 @@ The next exercise demonstrates how to do this.
## Upgrade Boot2Docker ## Upgrade Boot2Docker
If you running Boot2Docker 1.4.1 or greater, you can upgrade Boot2Docker from If you running Boot2Docker 1.4.1 or greater, you can upgrade Boot2Docker from
the command line. If you are running an older version, you should use the the command line. If you are running an older version, you should use the
package provided by the `boot2docker` repository. package provided by the `boot2docker` repository.
### From the command line ### From the command line
@ -304,7 +304,7 @@ section.
## Learning more and Acknowledgement ## Learning more and Acknowledgement
Use `boot2docker help` to list the full command line reference. For more Use `boot2docker help` to list the full command line reference. For more
information about using SSH or SCP to access the Boot2Docker VM, see the README information about using SSH or SCP to access the Boot2Docker VM, see the README
at [Boot2Docker repository](https://github.com/boot2docker/boot2docker). at [Boot2Docker repository](https://github.com/boot2docker/boot2docker).