Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 75c5bdb

Browse files
committed
Fixed typo and removed inconsistent sudo's
In the introduction it is mentioned that sudo won't be used, but all commands were prepended with sudo. This fixes that.
1 parent 1746dd5 commit 75c5bdb

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

security/trust/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ You will need all of the following to complete this lab:
2424

2525
# <a name="tag"></a>Step 1: Pulling images by tag
2626

27-
The most common and basic way to pull Docker iamges is by `tag`. The is where you specify an image name followed by an alphanumeric tag. The image name and tag are separated by a colon `:`. For example:
27+
The most common and basic way to pull Docker images is by `tag`. The is where you specify an image name followed by an alphanumeric tag. The image name and tag are separated by a colon `:`. For example:
2828

2929
```
30-
$ sudo docker pull alpine:edge
30+
$ docker pull alpine:edge
3131
```
3232

3333
This command will pull the Alpine image tagged as `edge`. The corresponding image can be found [here on Docker Store](https://store.docker.com/images/alpine).
@@ -37,7 +37,7 @@ If no tag is specified, Docker will pull the image with the `latest` tag.
3737
1. Pull the Alpine image with the `edge` tag.
3838

3939
```
40-
$ sudo docker pull alpine:edge
40+
$ docker pull alpine:edge
4141
4242
edge: Pulling from library/alpine
4343
e587fa4f6e1f: Pull complete
@@ -48,7 +48,7 @@ If no tag is specified, Docker will pull the image with the `latest` tag.
4848
2. Confirm that the pull was successful.
4949

5050
```
51-
$ sudo docker images
51+
$ docker images
5252
5353
REPOSITORY TAG IMAGE ID CREATED SIZE
5454
alpine edge 3fc33d6d5e74 4 weeks ago 4.799 MB
@@ -57,7 +57,7 @@ If no tag is specified, Docker will pull the image with the `latest` tag.
5757
3. Run a new container from the image and ping www.docker.com.
5858

5959
```
60-
$ sudo docker run --rm -it alpine:edge sh
60+
$ docker run --rm -it alpine:edge sh
6161
6262
/ # ping www.docker.com
6363
PING www.docker.com (104.239.220.248): 56 data bytes
@@ -80,7 +80,7 @@ This is why pulling by digest is such a powerful operation. Thanks to the conten
8080
1. Pull the Alpine image with the `sha256:b7233dafbed64e3738630b69382a8b231726aa1014ccaabc1947c5308a8910a7` digest.
8181

8282
```
83-
$ sudo docker pull alpine@sha256:b7233dafbed64e3738630b69382a8b231726aa1014ccaabc1947c5308a8910a7
83+
$ docker pull alpine@sha256:b7233dafbed64e3738630b69382a8b231726aa1014ccaabc1947c5308a8910a7
8484
8585
sha256:b7233dafbed64e3738630b69382a8b231726aa1014ccaabc1947c5308a8910a7: Pulling from library/alpine
8686
6589332ef57c: Pull complete
@@ -91,7 +91,7 @@ This is why pulling by digest is such a powerful operation. Thanks to the conten
9191
2. Check that the pull succeeded.
9292

9393
```
94-
$ sudo docker images --digests alpine
94+
$ docker images --digests alpine
9595
9696
REPOSITORY TAG DIGEST IMAGE ID CREATED SIZE
9797
alpine edge <none> 3fc33d6d5e74 4 weeks ago 4.799 MB
@@ -127,7 +127,7 @@ In this step you will enable Docker Content Trust, sign images as you push them,
127127
2. Pull the `riyaz/dockercon:trust` signed image.
128128

129129
```
130-
$ sudo docker pull riyaz/dockercon:trust
130+
$ docker pull riyaz/dockercon:trust
131131
132132
Pull (1 of 1): riyaz/dockercon:trust@sha256:88a7163227a54bf0343aae9e7a4404fdcdcfef8cc777daf9686714f4376ede46
133133
sha256:88a7163227a54bf0343aae9e7a4404fdcdcfef8cc777daf9686714f4376ede46: Pulling from riyaz/dockercon
@@ -146,7 +146,7 @@ In this step you will enable Docker Content Trust, sign images as you push them,
146146
3. Pull and unsigned image.
147147

148148
```
149-
$ sudo docker pull riyaz/dockercon:untrusted
149+
$ docker pull riyaz/dockercon:untrusted
150150
151151
No trust data for untrusted
152152
```
@@ -156,8 +156,8 @@ In this step you will enable Docker Content Trust, sign images as you push them,
156156
4. Tag and push your own signed image with Docker Content Trust.
157157

158158
```
159-
$ sudo docker tag alpine:edge <your-docker-id>/alpine:trusted
160-
$ sudo docker push <your-docker-id>/alpine:trusted
159+
$ docker tag alpine:edge <your-docker-id>/alpine:trusted
160+
$ docker push <your-docker-id>/alpine:trusted
161161
162162
The push refers to a repository [docker.io/nigelpoulton/alpine]
163163
4fe15f8d0ae6: Pushed
@@ -194,7 +194,7 @@ In this step you will enable Docker Content Trust, sign images as you push them,
194194
6. Pull the image you just pushed in the previous step.
195195

196196
```
197-
$ sudo docker pull <your-docker-id>/alpine:trusted
197+
$ docker pull <your-docker-id>/alpine:trusted
198198
199199
trusted: Pulling from nigelpoulton/alpine
200200
Digest: sha256:dc89ce8401da81f24f7ba3f0ab2914ed9013608bdba0b7e7e5d964817067dc06
@@ -210,7 +210,7 @@ In this step you will enable Docker Content Trust, sign images as you push them,
210210
8. Pull the same image again.
211211

212212
```
213-
$ sudo docker pull <your-docker-id>/alpine:trusted
213+
$ docker pull <your-docker-id>/alpine:trusted
214214
215215
Pull (1 of 1): nigelpoulton/alpine:trusted@sha256:dc89ce8401da81f24f7ba3f0ab2914ed9013608bdba0b7e7e5d964817067dc06
216216
sha256:dc89ce8401da81f24f7ba3f0ab2914ed9013608bdba0b7e7e5d964817067dc06: Pulling from nigelpoulton/alpine

0 commit comments

Comments
 (0)