Linux/Docker: save/load container using tgz file (tar.gz)

PHOTO EMBED

Sun Aug 28 2022 23:09:31 GMT+0000 (UTC)

Saved by @marcopinero #bash

#for not running docker, use save:
docker save <dockernameortag> | gzip > mycontainer.tgz

#for running or paused docker, use export:
docker export <dockernameortag> | gzip > mycontainer.tgz

#load
gunzip -c mycontainer.tgz | docker load
content_copyCOPY

Deploying docker using tar.gz compression