上传到 hub 上的镜像的体积显著小于本地的镜像(1:3),不知道是怎么做到的。
二、原因是因为把镜像用 gzip进行了压缩,在 hub 上存储的是压缩后的包
https://stackoverflow.com/questions/58028894/docker-image-size-discrepency-between-local-and-remote
https://docs.docker.com/engine/reference/commandline/save/
三、 实验本地使用 docker images 查看是 5.1GB 大小的镜像,
经过以下的压缩命令,压缩后得到一个 1.6GB 的压缩包
docker save your_image | gzip > your_image.tar.gz其他



