docker save is used to save image and docker export is used to export container

This commit is contained in:
aisensiy 2014-09-24 12:27:00 +08:00
parent 26620cb3d5
commit 08ed01831a

View File

@ -8,7 +8,7 @@ REPOSITORY TAG IMAGE ID CREATED
ubuntu latest 826544226fdc 2 weeks ago 194.2 MB ubuntu latest 826544226fdc 2 weeks ago 194.2 MB
ouruser/sinatra v2 51619aaca804 2 weeks ago 373.3 MB ouruser/sinatra v2 51619aaca804 2 weeks ago 373.3 MB
ubuntu 14.04 c4ff7513909d 5 weeks ago 225.4 MB ubuntu 14.04 c4ff7513909d 5 weeks ago 225.4 MB
$sudo docker export ubuntu:14.04 > ubuntu_14.04.tar $sudo docker save -o ubuntu_14.04.tar ubuntu:14.04
``` ```