Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@docker.com> (github: SvenDowideit)
| ... | ... |
@@ -27,8 +27,10 @@ page_keywords: Docker, Docker documentation, installation, google, Google Comput |
| 27 | 27 |
4. Connect to the instance using SSH: |
| 28 | 28 |
|
| 29 | 29 |
$ gcloud compute ssh --zone us-central1-a docker-playground |
| 30 |
- docker-playground:~$ sudo docker run busybox echo 'docker on GCE \o/' |
|
| 31 |
- docker on GCE \o/ |
|
| 30 |
+ $$ docker-playground:~$ sudo docker run hello-world |
|
| 31 |
+ Hello from Docker. |
|
| 32 |
+ This message shows that your installation appears to be working correctly. |
|
| 33 |
+ ... |
|
| 32 | 34 |
|
| 33 | 35 |
Read more about [deploying Containers on Google Cloud Platform][5]. |
| 34 | 36 |
|
| ... | ... |
@@ -56,12 +56,12 @@ and `boot2docker start`. |
| 56 | 56 |
|
| 57 | 57 |
## Running Docker |
| 58 | 58 |
|
| 59 |
-From your terminal, you can test that Docker is running with a “hello world” example. |
|
| 59 |
+From your terminal, you can test that Docker is running with the small `hello-world` example image. |
|
| 60 | 60 |
Start the vm and then run: |
| 61 | 61 |
|
| 62 |
- $ docker run ubuntu echo hello world |
|
| 62 |
+ $ docker run hello-world |
|
| 63 | 63 |
|
| 64 |
-This should download the `ubuntu` image and print `hello world`. |
|
| 64 |
+This should download the very small `hello-world` image and print a `Hello from Docker.` message. |
|
| 65 | 65 |
|
| 66 | 66 |
## Container port redirection |
| 67 | 67 |
|
| ... | ... |
@@ -51,11 +51,11 @@ and the Boot2Docker management tool. |
| 51 | 51 |
|
| 52 | 52 |
Boot2Docker will log you in automatically so you can start using Docker right away. |
| 53 | 53 |
|
| 54 |
-Let's try the “hello world” example. Run |
|
| 54 |
+Let's try the `hello-world` example image. Run |
|
| 55 | 55 |
|
| 56 |
- $ docker run busybox echo hello world |
|
| 56 |
+ $ docker run hello-world |
|
| 57 | 57 |
|
| 58 |
-This will download the small busybox image and print "hello world". |
|
| 58 |
+This should download the very small `hello-world` image and print a `Hello from Docker.` message. |
|
| 59 | 59 |
|
| 60 | 60 |
|
| 61 | 61 |
# Further Details |
| ... | ... |
@@ -85,7 +85,7 @@ case "$lsb_dist" in |
| 85 | 85 |
if command_exists docker && [ -e /var/run/docker.sock ]; then |
| 86 | 86 |
( |
| 87 | 87 |
set -x |
| 88 |
- $sh_c 'docker run busybox echo "Docker has been successfully installed!"' |
|
| 88 |
+ $sh_c 'docker run hello-world' |
|
| 89 | 89 |
) || true |
| 90 | 90 |
fi |
| 91 | 91 |
your_user=your-user |
| ... | ... |
@@ -150,7 +150,7 @@ case "$lsb_dist" in |
| 150 | 150 |
if command_exists docker && [ -e /var/run/docker.sock ]; then |
| 151 | 151 |
( |
| 152 | 152 |
set -x |
| 153 |
- $sh_c 'docker run busybox echo "Docker has been successfully installed!"' |
|
| 153 |
+ $sh_c 'docker run hello-world' |
|
| 154 | 154 |
) || true |
| 155 | 155 |
fi |
| 156 | 156 |
your_user=your-user |