Difference between revisions of "Docker commit"
Jump to navigation
Jump to search
↑ https://bobcares.com/blog/move-docker-container-to-another-host/
↑ https://www.baculasystems.com/blog/docker-backup-containers/
(11 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | <code>[[docker commit]]</code> create a new image from a [[container]]’s changes. | + | {{lc}} |
+ | <code>[[docker commit]]</code> [[create a new image]] from a [[container]]’s changes. | ||
* https://docs.docker.com/engine/reference/commandline/commit/ | * https://docs.docker.com/engine/reference/commandline/commit/ | ||
− | [[docker commit]] container-id your-image-name <ref>https://bobcares.com/blog/move-docker-container-to-another-host/</ref> | + | [[docker commit]] container-id your-new-image-name <ref>https://bobcares.com/blog/move-docker-container-to-another-host/</ref> |
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]] | + | [[docker save -o]] backup01.tar backup01 |
== Activities == | == Activities == | ||
Line 12: | Line 13: | ||
== Related terms == | == Related terms == | ||
− | * | + | * <code>[[docker save]] image-name > image-name.tar</code> |
+ | * <code>docker save -o backup01.tar backup01</code> | ||
+ | * <code>[[docker push]]</code> | ||
+ | * <code>[[docker container commit]]</code> | ||
+ | * [[Backup docker containers]] | ||
+ | * <code>[[docker cp]]</code> | ||
== See also == | == See also == | ||
− | * {{ | + | * {{docker cmd}} |
[[Category:Docker]] | [[Category:Docker]] |
Latest revision as of 13:58, 31 January 2024
docker commit
create a new image from a container’s changes.
docker commit container-id your-new-image-name [1]
docker commit -p [container-id] backup01[2] docker save -o backup01.tar backup01
Activities[edit]
Related terms[edit]
docker save image-name > image-name.tar
docker save -o backup01.tar backup01
docker push
docker container commit
- Backup docker containers
docker cp
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: