mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Minor typos found while reading docs
This commit is contained in:
parent
a37b42b57c
commit
ce97a71adf
1 changed files with 4 additions and 4 deletions
|
@ -42,7 +42,7 @@ We attach to the new container to see what is going on. Ctrl-C to disconnect
|
||||||
|
|
||||||
BUILD_IMG=$(docker commit $BUILD_JOB _/builds/github.com/shykes/helloflask/master)
|
BUILD_IMG=$(docker commit $BUILD_JOB _/builds/github.com/shykes/helloflask/master)
|
||||||
|
|
||||||
Save the changed we just made in the container to a new image called "_/builds/github.com/hykes/helloflask/master" and save the image id in the BUILD_IMG variable name.
|
Save the changes we just made in the container to a new image called "_/builds/github.com/hykes/helloflask/master" and save the image id in the BUILD_IMG variable name.
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
|
@ -60,13 +60,13 @@ Use the new image we just created and create a new container with network port 5
|
||||||
docker logs $WEB_WORKER
|
docker logs $WEB_WORKER
|
||||||
* Running on http://0.0.0.0:5000/
|
* Running on http://0.0.0.0:5000/
|
||||||
|
|
||||||
view the logs for the new container using the WEB_WORKER variable, and if everything worked as planned you should see the line "Running on http://0.0.0.0:5000/" in the log output.
|
View the logs for the new container using the WEB_WORKER variable, and if everything worked as planned you should see the line "Running on http://0.0.0.0:5000/" in the log output.
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
WEB_PORT=$(docker port $WEB_WORKER 5000)
|
WEB_PORT=$(docker port $WEB_WORKER 5000)
|
||||||
|
|
||||||
lookup the public-facing port which is NAT-ed store the private port used by the container and store it inside of the WEB_PORT variable.
|
Look up the public-facing port which is NAT-ed. Find the private port used by the container and store it inside of the WEB_PORT variable.
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ lookup the public-facing port which is NAT-ed store the private port used by the
|
||||||
curl http://127.0.0.1:$WEB_PORT
|
curl http://127.0.0.1:$WEB_PORT
|
||||||
Hello world!
|
Hello world!
|
||||||
|
|
||||||
access the web app using curl. If everything worked as planned you should see the line "Hello world!" inside of your console.
|
Access the web app using curl. If everything worked as planned you should see the line "Hello world!" inside of your console.
|
||||||
|
|
||||||
**Video:**
|
**Video:**
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue