举例来说,我拉完 nextcloud 的镜像
验证 DIGEST 如下:
nextcloud latest sha256:33020e5c3643667427cc1b2369ff3847346b91d414b1e4bb4d879db93442efd9
但是在
hub.docker.com 上,latest 的 tag 的 DIGEST 为
nextcloud:latest
DIGEST:sha256:d59a37726e7d55c9cebb4ccf86756e78284d84d3ab063fe2035032a255da03c6
如果我强制拉
sudo docker pull nextcloud@sha256:d59a37726e7d55c9cebb4ccf86756e78284d84d3ab063fe2035032a255da03c6
就会出现两个相同的 IMAGE ID 的镜像,但是两个镜像的 DIGEST 却不同,可以排除被劫持之类的,有人知道这是咋肥事吗?