Last active
May 27, 2024 15:50
-
-
Save up1/cf92e2ee7e2739332cffadc33f10f799 to your computer and use it in GitHub Desktop.
Docker image digest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$docker image ls --digests | |
REPOSITORY TAG DIGEST IMAGE ID CREATED SIZE | |
nginx 1.25.5 sha256:a484819eb60211f5299034ac80f6a681b06f89e65866ce91f356ed7c72af059c 8dd77ef2d82e 3 weeks ago 193MB | |
nginx latest sha256:a484819eb60211f5299034ac80f6a681b06f89e65866ce91f356ed7c72af059c 8dd77ef2d82e 3 weeks ago 193MB | |
$docker image inspect nginx:1.25.5 --format '{{.RepoDigests}}' | |
[nginx@sha256:a484819eb60211f5299034ac80f6a681b06f89e65866ce91f356ed7c72af059c] | |
$docker manifest inspect nginx:1.25.5 | |
{ | |
"schemaVersion": 2, | |
"mediaType": "application/vnd.oci.image.index.v1+json", | |
"manifests": [ | |
{ | |
"mediaType": "application/vnd.oci.image.manifest.v1+json", | |
"size": 2295, | |
"digest": "sha256:e688fed0b0c7513a63364959e7d389c37ac8ecac7a6c6a31455eca2f5a71ab8b", | |
"platform": { | |
"architecture": "amd64", | |
"os": "linux" | |
} | |
}, | |
{ | |
"mediaType": "application/vnd.oci.image.manifest.v1+json", | |
"size": 841, | |
"digest": "sha256:6f66f24cf574338e2e9468d63ae718203af66e5a35cc7c4af4772fc7c12884fe", | |
"platform": { | |
"architecture": "unknown", | |
"os": "unknown" | |
} | |
}, | |
{ | |
"mediaType": "application/vnd.oci.image.manifest.v1+json", | |
"size": 2297, | |
"digest": "sha256:712bcddd8580f5a3e222b1d9fe2223cbaf3adc67ff8e41e8b2e9dd219cd922e4", | |
"platform": { | |
"architecture": "arm", | |
"os": "linux", | |
"variant": "v5" | |
} | |
}, | |
{ | |
"mediaType": "application/vnd.oci.image.manifest.v1+json", | |
"size": 841, | |
"digest": "sha256:220a9bf1d8259c50dc71e8b5707da5940f28dd8c4f3464309f752029236cc54a", | |
"platform": { | |
"architecture": "unknown", | |
"os": "unknown" | |
} | |
}, | |
{ | |
"mediaType": "application/vnd.oci.image.manifest.v1+json", | |
"size": 2297, | |
"digest": "sha256:923e07a43e42f56c2143184e04ed230fa2d0d2b12875cb4604e2db7a31d4e4bf", | |
"platform": { | |
"architecture": "arm", | |
"os": "linux", | |
"variant": "v7" | |
} | |
}, | |
... | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM nginx@sha256:a484819eb60211f5299034ac80f6a681b06f89e65866ce91f356ed7c72af059c | |
หรือ | |
FROM nginx:1.25.5@sha256:a484819eb60211f5299034ac80f6a681b06f89e65866ce91f356ed7c72af059c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment