What's the difference between a Docker image's Image ID and its Digest?

前端 未结 1 1571
情话喂你
情话喂你 2021-02-03 21:16

This has been surprisingly confusing for me. I thought Docker\'s Image ID is its SHA256 hash. However, apparently the result from docker image ls --digests (listed

1条回答
  •  悲哀的现实
    2021-02-03 22:20

    Thanks for michalk's comment. The short answer is:

    • The "digest" is a hash of the manifest, introduced in Docker registry v2.
    • The image ID is a hash of the local image JSON configuration.

    0 讨论(0)
提交回复
热议问题