Docker-DCO-1.1-Signed-off-by: SvenDowideit <SvenDowideit@home.org.au> (github: SvenDowideit)
| ... | ... |
@@ -65,7 +65,7 @@ Your Docker Hub account is now active and ready for you to use! |
| 65 | 65 |
|
| 66 | 66 |
## Next steps |
| 67 | 67 |
|
| 68 |
-Next, let's start learning how to Dockerize applications with our "Hello World!" |
|
| 68 |
+Next, let's start learning how to Dockerize applications with our "Hello World" |
|
| 69 | 69 |
exercise. |
| 70 | 70 |
|
| 71 | 71 |
Go to [Dockerizing Applications](/userguide/dockerizing). |
| ... | ... |
@@ -1,20 +1,20 @@ |
| 1 |
-page_title: Dockerizing Applications: A "Hello World!" |
|
| 2 |
-page_description: A simple "Hello World!" exercise that introduced you to Docker. |
|
| 1 |
+page_title: Dockerizing Applications: A "Hello World" |
|
| 2 |
+page_description: A simple "Hello World" exercise that introduced you to Docker. |
|
| 3 | 3 |
page_keywords: docker guide, docker, docker platform, virtualization framework, how to, dockerize, dockerizing apps, dockerizing applications, container, containers |
| 4 | 4 |
|
| 5 |
-# Dockerizing Applications: A "Hello World!" |
|
| 5 |
+# Dockerizing Applications: A "Hello World" |
|
| 6 | 6 |
|
| 7 | 7 |
*So what's this Docker thing all about?* |
| 8 | 8 |
|
| 9 | 9 |
Docker allows you to run applications inside containers. Running an |
| 10 | 10 |
application inside a container takes a single command: `docker run`. |
| 11 | 11 |
|
| 12 |
-## Hello World! |
|
| 12 |
+## Hello World |
|
| 13 | 13 |
|
| 14 | 14 |
Let's try it now. |
| 15 | 15 |
|
| 16 | 16 |
$ sudo docker run ubuntu:14.04 /bin/echo 'Hello World' |
| 17 |
- Hello World! |
|
| 17 |
+ Hello World |
|
| 18 | 18 |
|
| 19 | 19 |
And you just launched your first container! |
| 20 | 20 |
|
| ... | ... |
@@ -34,17 +34,17 @@ image registry: [Docker Hub](https://hub.docker.com). |
| 34 | 34 |
|
| 35 | 35 |
Next we told Docker what command to run inside our new container: |
| 36 | 36 |
|
| 37 |
- /bin/echo 'Hello World!' |
|
| 37 |
+ /bin/echo 'Hello World' |
|
| 38 | 38 |
|
| 39 | 39 |
When our container was launched Docker created a new Ubuntu 14.04 |
| 40 | 40 |
environment and then executed the `/bin/echo` command inside it. We saw |
| 41 | 41 |
the result on the command line: |
| 42 | 42 |
|
| 43 |
- Hello World! |
|
| 43 |
+ Hello World |
|
| 44 | 44 |
|
| 45 | 45 |
So what happened to our container after that? Well Docker containers |
| 46 | 46 |
only run as long as the command you specify is active. Here, as soon as |
| 47 |
-`Hello World!` was echoed, the container stopped. |
|
| 47 |
+`Hello World` was echoed, the container stopped. |
|
| 48 | 48 |
|
| 49 | 49 |
## An Interactive Container |
| 50 | 50 |
|
| ... | ... |
@@ -88,7 +88,7 @@ use the `exit` command to finish. |
| 88 | 88 |
As with our previous container, once the Bash shell process has |
| 89 | 89 |
finished, the container is stopped. |
| 90 | 90 |
|
| 91 |
-## A Daemonized Hello World! |
|
| 91 |
+## A Daemonized Hello World |
|
| 92 | 92 |
|
| 93 | 93 |
Now a container that runs a command and then exits has some uses but |
| 94 | 94 |
it's not overly helpful. Let's create a container that runs as a daemon, |
| ... | ... |
@@ -99,7 +99,7 @@ Again we can do this with the `docker run` command: |
| 99 | 99 |
$ sudo docker run -d ubuntu:14.04 /bin/sh -c "while true; do echo hello world; sleep 1; done" |
| 100 | 100 |
1e5535038e285177d5214659a068137486f96ee5c2e85a4ac52dc83f2ebe4147 |
| 101 | 101 |
|
| 102 |
-Wait what? Where's our "Hello World!" Let's look at what we've run here. |
|
| 102 |
+Wait what? Where's our "Hello World" Let's look at what we've run here. |
|
| 103 | 103 |
It should look pretty familiar. We ran `docker run` but this time we |
| 104 | 104 |
specified a flag: `-d`. The `-d` flag tells Docker to run the container |
| 105 | 105 |
and put it in the background, to daemonize it. |