|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * assembly/registry |
| 4 | + |
| 5 | +[id='registry-viewing-contents-{context}'] |
| 6 | += Viewing the registry's contents |
| 7 | + |
| 8 | +Tag and image metadata is stored in {product-title}, but the registry stores |
| 9 | +layer and signature data in a volume that is mounted into the registry container |
| 10 | +at *_/registry_*. As `oc exec` does not work on privileged containers, to view a |
| 11 | +registry's contents you must manually SSH into the node housing the registry |
| 12 | +pod's container, then run `docker exec` on the container itself. |
| 13 | + |
| 14 | +.Procedure |
| 15 | + |
| 16 | +. List the current pods to find the pod name of your container image registry: |
| 17 | ++ |
| 18 | +---- |
| 19 | +# oc get pods |
| 20 | +---- |
| 21 | ++ |
| 22 | +Then, use `oc describe` to find the host name for the node running the |
| 23 | +container: |
| 24 | ++ |
| 25 | +---- |
| 26 | +# oc describe pod <pod_name> |
| 27 | +---- |
| 28 | + |
| 29 | +. Log into the desired node: |
| 30 | ++ |
| 31 | +---- |
| 32 | +# ssh node.example.com |
| 33 | +---- |
| 34 | + |
| 35 | +. List the running containers from the default project on the node host and identify the container ID for |
| 36 | +the container image registry: |
| 37 | ++ |
| 38 | +---- |
| 39 | +# docker ps --filter=name=registry_docker-registry.*_default_ |
| 40 | +---- |
| 41 | + |
| 42 | +. List the registry contents using the `oc rsh` command: |
| 43 | ++ |
| 44 | +---- |
| 45 | +# oc rsh dc/docker-registry find /registry |
| 46 | +/registry/docker |
| 47 | +/registry/docker/registry |
| 48 | +/registry/docker/registry/v2 |
| 49 | +/registry/docker/registry/v2/blobs <1> |
| 50 | +/registry/docker/registry/v2/blobs/sha256 |
| 51 | +/registry/docker/registry/v2/blobs/sha256/ed |
| 52 | +/registry/docker/registry/v2/blobs/sha256/ed/ede17b139a271d6b1331ca3d83c648c24f92cece5f89d95ac6c34ce751111810 |
| 53 | +/registry/docker/registry/v2/blobs/sha256/ed/ede17b139a271d6b1331ca3d83c648c24f92cece5f89d95ac6c34ce751111810/data <2> |
| 54 | +/registry/docker/registry/v2/blobs/sha256/a3 |
| 55 | +/registry/docker/registry/v2/blobs/sha256/a3/a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4 |
| 56 | +/registry/docker/registry/v2/blobs/sha256/a3/a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4/data |
| 57 | +/registry/docker/registry/v2/blobs/sha256/f7 |
| 58 | +/registry/docker/registry/v2/blobs/sha256/f7/f72a00a23f01987b42cb26f259582bb33502bdb0fcf5011e03c60577c4284845 |
| 59 | +/registry/docker/registry/v2/blobs/sha256/f7/f72a00a23f01987b42cb26f259582bb33502bdb0fcf5011e03c60577c4284845/data |
| 60 | +/registry/docker/registry/v2/repositories <3> |
| 61 | +/registry/docker/registry/v2/repositories/p1 |
| 62 | +/registry/docker/registry/v2/repositories/p1/pause <4> |
| 63 | +/registry/docker/registry/v2/repositories/p1/pause/_manifests |
| 64 | +/registry/docker/registry/v2/repositories/p1/pause/_manifests/revisions |
| 65 | +/registry/docker/registry/v2/repositories/p1/pause/_manifests/revisions/sha256 |
| 66 | +/registry/docker/registry/v2/repositories/p1/pause/_manifests/revisions/sha256/e9a2ac6418981897b399d3709f1b4a6d2723cd38a4909215ce2752a5c068b1cf |
| 67 | +/registry/docker/registry/v2/repositories/p1/pause/_manifests/revisions/sha256/e9a2ac6418981897b399d3709f1b4a6d2723cd38a4909215ce2752a5c068b1cf/signatures <5> |
| 68 | +/registry/docker/registry/v2/repositories/p1/pause/_manifests/revisions/sha256/e9a2ac6418981897b399d3709f1b4a6d2723cd38a4909215ce2752a5c068b1cf/signatures/sha256 |
| 69 | +/registry/docker/registry/v2/repositories/p1/pause/_manifests/revisions/sha256/e9a2ac6418981897b399d3709f1b4a6d2723cd38a4909215ce2752a5c068b1cf/signatures/sha256/ede17b139a271d6b1331ca3d83c648c24f92cece5f89d95ac6c34ce751111810 |
| 70 | +/registry/docker/registry/v2/repositories/p1/pause/_manifests/revisions/sha256/e9a2ac6418981897b399d3709f1b4a6d2723cd38a4909215ce2752a5c068b1cf/signatures/sha256/ede17b139a271d6b1331ca3d83c648c24f92cece5f89d95ac6c34ce751111810/link <6> |
| 71 | +/registry/docker/registry/v2/repositories/p1/pause/_uploads <7> |
| 72 | +/registry/docker/registry/v2/repositories/p1/pause/_layers <8> |
| 73 | +/registry/docker/registry/v2/repositories/p1/pause/_layers/sha256 |
| 74 | +/registry/docker/registry/v2/repositories/p1/pause/_layers/sha256/a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4 |
| 75 | +/registry/docker/registry/v2/repositories/p1/pause/_layers/sha256/a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4/link <9> |
| 76 | +/registry/docker/registry/v2/repositories/p1/pause/_layers/sha256/f72a00a23f01987b42cb26f259582bb33502bdb0fcf5011e03c60577c4284845 |
| 77 | +/registry/docker/registry/v2/repositories/p1/pause/_layers/sha256/f72a00a23f01987b42cb26f259582bb33502bdb0fcf5011e03c60577c4284845/link |
| 78 | +---- |
| 79 | +<1> This directory stores all layers and signatures as blobs. |
| 80 | +<2> This file contains the blob's contents. |
| 81 | +<3> This directory stores all the image repositories. |
| 82 | +<4> This directory is for a single image repository *p1/pause*. |
| 83 | +<5> This directory contains signatures for a particular image manifest revision. |
| 84 | +<6> This file contains a reference back to a blob (which contains the signature |
| 85 | +data). |
| 86 | +<7> This directory contains any layers that are currently being uploaded and |
| 87 | +staged for the given repository. |
| 88 | +<8> This directory contains links to all the layers this repository references. |
| 89 | +<9> This file contains a reference to a specific layer that has been linked into |
| 90 | +this repository via an image. |
0 commit comments