Answers for "docker load and save"

3

docker pack image to file

docker save -o fedora-all.tar fedora
Posted by: Guest on May-08-2020
0

docker image load

$ docker load --input fedora.tar
$ docker load -i fedora.tar
Posted by: Guest on October-10-2020
0

docker create image from tar file

$ docker image ls

REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE

$ docker load < busybox.tar.gz

Loaded image: busybox:latest
$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
busybox             latest              769b9341d937        7 weeks ago         2.489 MB

$ docker load --input fedora.tar

Loaded image: fedora:rawhide

Loaded image: fedora:20

$ docker images

REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
busybox             latest              769b9341d937        7 weeks ago         2.489 MB
fedora              rawhide             0d20aec6529d        7 weeks ago         387 MB
fedora              20                  58394af37342        7 weeks ago         385.5 MB
fedora              heisenbug           58394af37342        7 weeks ago         385.5 MB
fedora              latest              58394af37342        7 weeks ago         385.5 MB
Posted by: Guest on June-26-2020
0

docker load and save

You will need to save the Docker image as a tar file:

docker save -o <path for generated tar file> <image name>
T
hen copy your image to a new system with regular file transfer tools such as cp, scp or rsync(preferred for big files). After that you will have to load the image into Docker:

docker load -i <path to image tar file>
Posted by: Guest on July-28-2021

Browse Popular Code Answers by Language