Skip to content

Instantly share code, notes, and snippets.

@monkeym4ster
Created July 6, 2017 06:04
Show Gist options
  • Save monkeym4ster/492af14ad078d005c8349bf1c97fdac5 to your computer and use it in GitHub Desktop.
Save monkeym4ster/492af14ad078d005c8349bf1c97fdac5 to your computer and use it in GitHub Desktop.
Docker: save/load container using tgz file (tar.gz)
#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
@scue
Copy link

scue commented Jul 21, 2019

docker load -i mycontainer.tgz

@bogdal1993
Copy link

docker import mycontainer.tgz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment