docker save/load image in tar.gz/zst

PHOTO EMBED

Thu Sep 28 2023 07:08:18 GMT+0000 (Coordinated Universal Time)

Saved by @huangxinyu #commandline

docker save <image>:<tag> | pigz > <image>.tar.gz
docker save <image>:<tag> | gzip > <image>.tar.gz
docker save <image>:<tag> | zstd > <image>.tar.zst

docker load -i <image>.tar.gz
docker load -i <image>.tar.zst
content_copyCOPY

https://www.cnblogs.com/yzpopulation/p/15865936.html