docker load and save
docker save -o fedora-all.tar fedora
0
0
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>
Thank you!
0
0
3.88
8
$ docker load --input fedora.tar
$ docker load -i fedora.tar
Thank you!
8
0
4.25
4
$ 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
Thank you!
4
0
Are there any code examples left?
New code examples in category Other
-
Other 2023-03-28 00:50:10 how to select the whole line in vscode with keyboard shortcut
-
Other 2022-03-28 00:45:24 income of a web developer
-
Other 2022-03-28 00:35:01 \pyrcc_main.py: File does not exist 'resources.qrc'
-
Other 2022-03-28 00:30:45 rick roll embed code
-
Other 2022-03-28 00:20:08 Circuit_04_Potentiometer
-
Other 2022-03-28 00:20:05 iterative power
-
Other 2022-03-28 00:15:11 flutter run all
-
Other 2022-03-28 00:10:05 when is karlson release
-
Other 2022-03-28 00:10:02 wp .htaccess example
-
Other 2022-03-28 00:00:08 bash pause in file read line by line