You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: remote trust data does not exist for sandboxregistry:5000/test/trusttest: notaryserver:4443 does not have trust data for sandboxregistry:5000/test/trusttest
Error: remote trust data does not exist for sandboxregistry:5000/test/trusttest: notaryserver:4443 does not have trust data for sandboxregistry:5000/test/trusttest
186
+
```
170
187
You see an error, because this content doesn't exist on the `notaryserver` yet.
Status: Downloaded newer image for sandboxregistry:5000/test/trusttest@sha256:ebf59c538accdf160ef435f1a19938ab8c0d6bd96aef8d4ddd1b379edf15a926
206
-
Tagging sandboxregistry:5000/test/trusttest@sha256:ebf59c538accdf160ef435f1a19938ab8c0d6bd96aef8d4ddd1b379edf15a926 as sandboxregistry:5000/test/trusttest:latest
Status: Downloaded newer image for sandboxregistry:5000/test/trusttest@sha256:ebf59c538accdf160ef435f1a19938ab8c0d6bd96aef8d4ddd1b379edf15a926
225
+
Tagging sandboxregistry:5000/test/trusttest@sha256:ebf59c538accdf160ef435f1a19938ab8c0d6bd96aef8d4ddd1b379edf15a926 as sandboxregistry:5000 test/trusttest:latest
226
+
```
207
227
208
228
209
229
### Test with malicious images
@@ -212,15 +232,17 @@ What happens when data is corrupted and you try to pull it when trust is
212
232
enabled? In this section, you go into the `sandboxregistry` and tamper with some
213
233
data. Then, you try and pull it.
214
234
215
-
1.Leave the `trustsandbox` shell and container running.
235
+
1. Leave the `trustsandbox` shell and container running.
216
236
217
-
2.Open a new interactive terminal from your host, and obtain a shell into the
218
-
`sandboxregistry` container.
237
+
2. Open a new interactive terminal from your host, and obtain a shell into the
238
+
`sandboxregistry` container.
219
239
220
-
$ docker container exec -it sandboxregistry bash
221
-
root@65084fc6f047:/#
240
+
```console
241
+
$ docker container exec -it sandboxregistry bash
242
+
root@65084fc6f047:/#
243
+
```
222
244
223
-
3.List the layers for the `test/trusttest` image you pushed:
245
+
3. List the layers for the `test/trusttest` image you pushed:
224
246
225
247
```console
226
248
root@65084fc6f047:/# ls -l /var/lib/registry/docker/registry/v2/repositories/test/trusttest/_layers/sha256
@@ -230,51 +252,61 @@ data. Then, you try and pull it.
230
252
drwxr-xr-x 2 root root 4096 Jun 10 17:26 cc7629d1331a7362b5e5126beb5bf15ca0bf67eb41eab994c719a45de53255cd
231
253
```
232
254
233
-
4. Change into the registry storage for one of those layers (this is in a different directory):
255
+
4. Change into the registry storage for one of those layers (this is in a different directory):
234
256
235
-
root@65084fc6f047:/# cd /var/lib/registry/docker/registry/v2/blobs/sha256/aa/aac0c133338db2b18ff054943cee3267fe50c75cdee969aed88b1992539ed042
257
+
```console
258
+
root@65084fc6f047:/# cd /var/lib/registry/docker/registry/v2/blobs/sha256/aa/aac0c133338db2b18ff054943cee3267fe50c75cdee969aed88b1992539ed042
259
+
```
236
260
237
-
5. Add malicious data to one of the `trusttest` layers:
261
+
5. Add malicious data to one of the `trusttest` layers:
238
262
239
-
root@65084fc6f047:/# echo "Malicious data" > data
263
+
```console
264
+
root@65084fc6f047:/# echo "Malicious data" > data
265
+
```
240
266
241
-
6. Go back to your `trustsandbox` terminal.
267
+
6. Go back to your `trustsandbox` terminal.
242
268
243
-
7. List the `trusttest` image.
269
+
7. List the `trusttest` image.
244
270
245
-
/ # docker image ls | grep trusttest
246
-
REPOSITORY TAG IMAGE ID CREATED SIZE
247
-
docker/trusttest latest cc7629d1331a 11 months ago 5.025 MB
248
-
sandboxregistry:5000/test/trusttest latest cc7629d1331a 11 months ago 5.025 MB
249
-
sandboxregistry:5000/test/trusttest <none> cc7629d1331a 11 months ago 5.025 MB
271
+
```console
272
+
/ # docker image ls | grep trusttest
273
+
REPOSITORY TAG IMAGE ID CREATED SIZE
274
+
docker/trusttest latest cc7629d1331a 11 months ago 5.025 MB
275
+
sandboxregistry:5000/test/trusttest latest cc7629d1331a 11 months ago 5.025 MB
276
+
sandboxregistry:5000/test/trusttest <none> cc7629d1331a 11 months ago 5.025 MB
277
+
```
250
278
251
-
8. Remove the `trusttest:latest` image from our local cache.
279
+
8. Remove the `trusttest:latest` image from your local cache.
0 commit comments