Difference between revisions of "Docker load"
Jump to navigation
Jump to search
↑ https://www.baculasystems.com/blog/docker-backup-containers/
↑ https://www.baculasystems.com/blog/docker-backup-containers/
(Created page with " docker commit -p [container-id] backup01<ref>https://www.baculasystems.com/blog/docker-backup-containers/</ref> docker save -o backup01.tar backup01 To restore: <...") |
|||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{lc}} | |
[[docker commit]] -p [container-id] backup01<ref>https://www.baculasystems.com/blog/docker-backup-containers/</ref> | [[docker commit]] -p [container-id] backup01<ref>https://www.baculasystems.com/blog/docker-backup-containers/</ref> | ||
[[docker save]] -o backup01.tar backup01 | [[docker save]] -o backup01.tar backup01 | ||
− | + | * To restore: <code>[[docker load]] -i /tmp/backup01.tar</code><ref>https://www.baculasystems.com/blog/docker-backup-containers/</ref> | |
+ | |||
+ | |||
+ | |||
+ | docker load -i /tmp/backup01.tar | ||
+ | 531743b7098c: Loading layer [==================================================>] 5.819MB/5.819MB | ||
+ | 782a99e956c8: Loading layer [==================================================>] 333.9MB/333.9MB | ||
+ | f5e4d0e4706d: Loading layer [==================================================>] 49.71MB/49.71MB | ||
+ | 3d33688681eb: Loading layer [==================================================>] 9.216kB/9.216kB | ||
+ | e63cc85261d6: Loading layer [==================================================>] 4.608kB/4.608kB | ||
+ | 18a794892afa: Loading layer [==================================================>] 5.632kB/5.632kB | ||
+ | fe3c75bbc7a6: Loading layer [==================================================>] 4.096kB/4.096kB | ||
+ | 3db6a7b96493: Loading layer [==================================================>] 4.608kB/4.608kB | ||
+ | eb870aba6d2e: Loading layer [==================================================>] 25.6kB/25.6kB | ||
+ | 0ac55b2ba6c4: Loading layer [==================================================>] 3.584kB/3.584kB | ||
+ | 53c1b8a8c532: Loading layer [==================================================>] 3.072kB/3.072kB | ||
+ | 5182359485bd: Loading layer [==================================================>] 3.584kB/3.584kB | ||
+ | cb47a1c328c9: Loading layer [==================================================>] 47.62kB/47.62kB | ||
+ | e034efc5d775: Loading layer [==================================================>] 112.6kB/112.6kB | ||
+ | Loaded image: IMAGE_NAME:latest | ||
+ | |||
Line 9: | Line 29: | ||
* <code>[[docker export]]</code> | * <code>[[docker export]]</code> | ||
* <code>[[docker load]] -i /tmp/backup01.tar</code> | * <code>[[docker load]] -i /tmp/backup01.tar</code> | ||
+ | * [[Backup docker containers]] | ||
== See also == | == See also == | ||
− | * {{ | + | * {{docker cmd}} |
[[Category:Docker]] | [[Category:Docker]] |
Latest revision as of 11:38, 18 January 2023
docker commit -p [container-id] backup01[1] docker save -o backup01.tar backup01
- To restore:
docker load -i /tmp/backup01.tar
[2]
docker load -i /tmp/backup01.tar 531743b7098c: Loading layer [==================================================>] 5.819MB/5.819MB 782a99e956c8: Loading layer [==================================================>] 333.9MB/333.9MB f5e4d0e4706d: Loading layer [==================================================>] 49.71MB/49.71MB 3d33688681eb: Loading layer [==================================================>] 9.216kB/9.216kB e63cc85261d6: Loading layer [==================================================>] 4.608kB/4.608kB 18a794892afa: Loading layer [==================================================>] 5.632kB/5.632kB fe3c75bbc7a6: Loading layer [==================================================>] 4.096kB/4.096kB 3db6a7b96493: Loading layer [==================================================>] 4.608kB/4.608kB eb870aba6d2e: Loading layer [==================================================>] 25.6kB/25.6kB 0ac55b2ba6c4: Loading layer [==================================================>] 3.584kB/3.584kB 53c1b8a8c532: Loading layer [==================================================>] 3.072kB/3.072kB 5182359485bd: Loading layer [==================================================>] 3.584kB/3.584kB cb47a1c328c9: Loading layer [==================================================>] 47.62kB/47.62kB e034efc5d775: Loading layer [==================================================>] 112.6kB/112.6kB Loaded image: IMAGE_NAME:latest
Related terms[edit]
docker export
docker load -i /tmp/backup01.tar
- Backup docker containers
See also[edit]
docker
[config | pull
|push
|run
|start
, |stop
|cp
|events
|info
|version
|build
|commit
|image
|images
|image ls
|image inspect
|rmi
|rm
|tag
|exec | rename | manifest | save | service update | load
],docker --help
Advertising: