From 1e577a8c6fbb873dcf829c0c4ed34efc2f04d1e6 Mon Sep 17 00:00:00 2001 From: Kang Huaishuai Date: Sun, 14 Mar 2021 21:42:50 +0800 Subject: [PATCH] Update hello-world example Signed-off-by: Kang Huaishuai --- install/centos.md | 6 +++--- install/debian.md | 6 +++--- install/fedora.md | 6 +++--- install/raspberry-pi.md | 8 ++++---- install/ubuntu.md | 6 +++--- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/install/centos.md b/install/centos.md index e424f4b..690cb99 100644 --- a/install/centos.md +++ b/install/centos.md @@ -126,12 +126,12 @@ $ sudo usermod -aG docker $USER ## 测试 Docker 是否安装正确 ```bash -$ docker run hello-world +$ docker run --rm hello-world Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world -d1725b59e92d: Pull complete -Digest: sha256:0add3ace90ecb4adbf7777e9aacf18357296e799f81cabc9fde470971e499788 +b8dfde127a29: Pull complete +Digest: sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24 Status: Downloaded newer image for hello-world:latest Hello from Docker! diff --git a/install/debian.md b/install/debian.md index 5b43396..a61753f 100644 --- a/install/debian.md +++ b/install/debian.md @@ -120,12 +120,12 @@ $ sudo usermod -aG docker $USER ## 测试 Docker 是否安装正确 ```bash -$ docker run hello-world +$ docker run --rm hello-world Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world -d1725b59e92d: Pull complete -Digest: sha256:0add3ace90ecb4adbf7777e9aacf18357296e799f81cabc9fde470971e499788 +b8dfde127a29: Pull complete +Digest: sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24 Status: Downloaded newer image for hello-world:latest Hello from Docker! diff --git a/install/fedora.md b/install/fedora.md index fc72d65..2a07e0b 100644 --- a/install/fedora.md +++ b/install/fedora.md @@ -128,12 +128,12 @@ $ sudo usermod -aG docker $USER ## 测试 Docker 是否安装正确 ```bash -$ docker run hello-world +$ docker run --rm hello-world Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world -d1725b59e92d: Pull complete -Digest: sha256:0add3ace90ecb4adbf7777e9aacf18357296e799f81cabc9fde470971e499788 +b8dfde127a29: Pull complete +Digest: sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24 Status: Downloaded newer image for hello-world:latest Hello from Docker! diff --git a/install/raspberry-pi.md b/install/raspberry-pi.md index 7726704..ccbd2c0 100644 --- a/install/raspberry-pi.md +++ b/install/raspberry-pi.md @@ -111,12 +111,12 @@ $ sudo usermod -aG docker $USER ## 测试 Docker 是否安装正确 ```bash -$ docker run arm32v7/hello-world +$ docker run --rm hello-world Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world -d1725b59e92d: Pull complete -Digest: sha256:0add3ace90ecb4adbf7777e9aacf18357296e799f81cabc9fde470971e499788 +4ee5c797bcd7: Pull complete +Digest: sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24 Status: Downloaded newer image for hello-world:latest Hello from Docker! @@ -125,7 +125,7 @@ This message shows that your installation appears to be working correctly. To generate this message, Docker took the following steps: 1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the "hello-world" image from the Docker Hub. - (amd64) + (arm32v7) 3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading. 4. The Docker daemon streamed that output to the Docker client, which sent it diff --git a/install/ubuntu.md b/install/ubuntu.md index 717ba1e..60af93e 100644 --- a/install/ubuntu.md +++ b/install/ubuntu.md @@ -121,12 +121,12 @@ $ sudo usermod -aG docker $USER ## 测试 Docker 是否安装正确 ```bash -$ docker run hello-world +$ docker run --rm hello-world Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world -d1725b59e92d: Pull complete -Digest: sha256:0add3ace90ecb4adbf7777e9aacf18357296e799f81cabc9fde470971e499788 +b8dfde127a29: Pull complete +Digest: sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24 Status: Downloaded newer image for hello-world:latest Hello from Docker!