Docker Community Forums

Share and learn in the Docker community.

Pull from any image digest available by the docker inspect command

Hi Team,

I would like to know if it is possible to pull image from an image digest available through the docker inspect command

eg:

docker inspect <some_image_name>


“RootFS”: {
“Type”: “layers”,
“Layers”: [
“sha256:1618a71a1198ec75e6bb3b664e5a6f1da9037f96d912f06448c4679cbacbb280”,
“sha256:d7ed640784f1a381558346061bdf4e782887d0070fd92bca6b584401e62af5ee”,
“sha256:fd6060e25706e91e5abd0c256fa1e4f36d3d7675cd9c2ef2fe2e82c54e881047”,
“sha256:d714f65bc280978ff4691c5833f314e571c6caf300deb245a5e29284f2ad1bfe”,
“sha256:138d1921c15b49a7d46f3a8148840e91e6f7ec5fd45558c7d4d64dfe0f3659bb”,
“sha256:09e3fd9cf3572a1cb6cd07935de99830867ef42edb98cedcd9aae26cf5006b06”,
“sha256:1dc1b82fa010f46e6d5f5179dcec6fc60985ad13d2144001a2ec72fd22bfc02a”,
“sha256:fc88d2431f4dd6f19dc2ee498ca9081a62bbf8fcadf6e47d242c1c230c07f8c7”,
“sha256:29778035860f67abd5c31321ea5f6b0d1c263385421a185c4cdf800c41ae9b81”
]
},

Is it possible to pull an image like this from any of the specified digests?

docker pull <repo_name>@sha256:digest_id

or with any similar command?