Improvements to Getting Started content for Compose (#4617)

This commit is contained in:
Gwendolynne Barr 2017-09-13 16:55:51 -07:00 committed by Misty Stanley-Jones
parent c3dd3ca01b
commit 34cd249844
2 changed files with 13 additions and 31 deletions

View File

@ -17,6 +17,8 @@ provided by Docker images.
## Step 1: Setup ## Step 1: Setup
Define the application dependencies.
1. Create a directory for the project: 1. Create a directory for the project:
$ mkdir composetest $ mkdir composetest
@ -46,9 +48,6 @@ provided by Docker images.
flask flask
redis redis
These define the application's dependencies.
## Step 2: Create a Dockerfile ## Step 2: Create a Dockerfile
In this step, you write a Dockerfile that builds a Docker image. The image In this step, you write a Dockerfile that builds a Docker image. The image
@ -132,12 +131,13 @@ Hub registry.
2. Enter `http://0.0.0.0:5000/` in a browser to see the application running. 2. Enter `http://0.0.0.0:5000/` in a browser to see the application running.
If you're using Docker natively on Linux, Docker for Mac, or Docker If you're using Docker natively on Linux, Docker for Mac, or Docker for
for Windows, then the web app should now be listening on port 5000 Windows, then the web app should now be listening on port 5000 on your
on your Docker daemon host. Point your web browser to `http://localhost:5000` to find the `Hello World` message. If this Docker daemon host. Point your web browser to `http://localhost:5000` to
doesn't resolve, you can also try `http://0.0.0.0:5000`. find the `Hello World` message. If this doesn't resolve, you can also try
`http://0.0.0.0:5000`.
If you're using Docker Machine on a Mac, use `docker-machine ip If you're using Docker Machine on a Mac or Windows, use `docker-machine ip
MACHINE_VM` to get the IP address of your Docker host. Then, open MACHINE_VM` to get the IP address of your Docker host. Then, open
`http://MACHINE_VM_IP:5000` in a browser. `http://MACHINE_VM_IP:5000` in a browser.

View File

@ -103,33 +103,15 @@ target="_blank" class="_"}. Follow the instructions from the link, which involve
running the `curl` command in your terminal to download the binaries. These step running the `curl` command in your terminal to download the binaries. These step
by step instructions are also included below. by step instructions are also included below.
1. Run this command to download Docker Compose, replacing 1. Run this command to download the latest version of Docker Compose:
`$dockerComposeVersion` with the specific version of Compose you want to use:
```bash ```bash
sudo -i sudo curl -L https://github.com/docker/compose/releases/download/{{composeversion}}/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
curl -L
https://github.com/docker/compose/releases/download/$dockerComposeVersion/docker-compose-`uname
-s`-`uname -m` -o /usr/local/bin/docker-compose
```
For example, to download Compose version {{composeversion}}, the command
is:
```bash
sudo -i
curl -L https://github.com/docker/compose/releases/download/{{composeversion}}/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
``` ```
> Use the latest Compose release number in the download command. > Use the latest Compose release number in the download command.
> >
The above command is an _example_, and it may become out-of-date once The above command is an _example_, and it may become out-of-date. To ensure you have the latest version, check the [Compose repository release page on GitHub](https://github.com/docker/compose/releases){: target="_blank" class="_"}.
in a while. Always follow the command pattern shown above it. If
you cut-and-paste an example, check which release it specifies and,
if needed, replace `$dockerComposeVersion` with the release number that
you want. Compose releases are also available for direct download on
the [Compose repository release page on GitHub](https://github.com/docker/compose/releases){: target="_blank"
class="_"}.
{: .important} {: .important}
If you have problems installing with `curl`, see If you have problems installing with `curl`, see