Skip to content

Commit 1e577a8

Browse files
committed
Update hello-world example
Signed-off-by: Kang Huaishuai <khs1994@khs1994.com>
1 parent 9fe6c35 commit 1e577a8

5 files changed

Lines changed: 16 additions & 16 deletions

File tree

install/centos.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,12 @@ $ sudo usermod -aG docker $USER
126126
## 测试 Docker 是否安装正确
127127

128128
```bash
129-
$ docker run hello-world
129+
$ docker run --rm hello-world
130130

131131
Unable to find image 'hello-world:latest' locally
132132
latest: Pulling from library/hello-world
133-
d1725b59e92d: Pull complete
134-
Digest: sha256:0add3ace90ecb4adbf7777e9aacf18357296e799f81cabc9fde470971e499788
133+
b8dfde127a29: Pull complete
134+
Digest: sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24
135135
Status: Downloaded newer image for hello-world:latest
136136

137137
Hello from Docker!

install/debian.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,12 @@ $ sudo usermod -aG docker $USER
120120
## 测试 Docker 是否安装正确
121121

122122
```bash
123-
$ docker run hello-world
123+
$ docker run --rm hello-world
124124

125125
Unable to find image 'hello-world:latest' locally
126126
latest: Pulling from library/hello-world
127-
d1725b59e92d: Pull complete
128-
Digest: sha256:0add3ace90ecb4adbf7777e9aacf18357296e799f81cabc9fde470971e499788
127+
b8dfde127a29: Pull complete
128+
Digest: sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24
129129
Status: Downloaded newer image for hello-world:latest
130130

131131
Hello from Docker!

install/fedora.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,12 @@ $ sudo usermod -aG docker $USER
128128
## 测试 Docker 是否安装正确
129129

130130
```bash
131-
$ docker run hello-world
131+
$ docker run --rm hello-world
132132

133133
Unable to find image 'hello-world:latest' locally
134134
latest: Pulling from library/hello-world
135-
d1725b59e92d: Pull complete
136-
Digest: sha256:0add3ace90ecb4adbf7777e9aacf18357296e799f81cabc9fde470971e499788
135+
b8dfde127a29: Pull complete
136+
Digest: sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24
137137
Status: Downloaded newer image for hello-world:latest
138138

139139
Hello from Docker!

install/raspberry-pi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ $ sudo usermod -aG docker $USER
111111
## 测试 Docker 是否安装正确
112112

113113
```bash
114-
$ docker run arm32v7/hello-world
114+
$ docker run --rm hello-world
115115

116116
Unable to find image 'hello-world:latest' locally
117117
latest: Pulling from library/hello-world
118-
d1725b59e92d: Pull complete
119-
Digest: sha256:0add3ace90ecb4adbf7777e9aacf18357296e799f81cabc9fde470971e499788
118+
4ee5c797bcd7: Pull complete
119+
Digest: sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24
120120
Status: Downloaded newer image for hello-world:latest
121121

122122
Hello from Docker!
@@ -125,7 +125,7 @@ This message shows that your installation appears to be working correctly.
125125
To generate this message, Docker took the following steps:
126126
1. The Docker client contacted the Docker daemon.
127127
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
128-
(amd64)
128+
(arm32v7)
129129
3. The Docker daemon created a new container from that image which runs the
130130
executable that produces the output you are currently reading.
131131
4. The Docker daemon streamed that output to the Docker client, which sent it

install/ubuntu.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,12 @@ $ sudo usermod -aG docker $USER
121121
## 测试 Docker 是否安装正确
122122

123123
```bash
124-
$ docker run hello-world
124+
$ docker run --rm hello-world
125125

126126
Unable to find image 'hello-world:latest' locally
127127
latest: Pulling from library/hello-world
128-
d1725b59e92d: Pull complete
129-
Digest: sha256:0add3ace90ecb4adbf7777e9aacf18357296e799f81cabc9fde470971e499788
128+
b8dfde127a29: Pull complete
129+
Digest: sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24
130130
Status: Downloaded newer image for hello-world:latest
131131

132132
Hello from Docker!

0 commit comments

Comments
 (0)