Skip to content

Instantly share code, notes, and snippets.

@kgrvamsi
Forked from tosone/docker.sh
Created March 23, 2020 18:49

Revisions

  1. @tosone tosone created this gist Oct 11, 2019.
    8 changes: 8 additions & 0 deletions docker.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    #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