Docker commit
From Do you speak Drupalish? Featured Drupal wiki-like documentation
ToDo
Info
- docker ps -all
- get docker containers ids ( preferabl with hostname before exiting container)
docker commit -m "Added json gem" -a "Kate Smith" \ 0b2616b0e5a8 ouruser/sinatra:v2 4f177bd27a9ff0f6dc2a830403925b5360bfe0b93d476f7fc3231110e7f71b1c Here you’ve used the docker commit command. You’ve specified two flags: -m and -a. The -m flag allows us to specify a commit message, much like you would with a commit on a version control system. The -a flag allows us to specify an author for our update. You’ve also specified the container you want to create this new image from, 0b2616b0e5a8 (the ID you recorded earlier) and you’ve specified a target for the image: ouruser/sinatra:v2 Break this target down. It consists of a new user, ouruser, that you’re writing this image to. You’ve also specified the name of the image, here you’re keeping the original image name sinatra. Finally you’re specifying a tag for the image: v2.
- Check with docker images new listing
alternative policy
- backup incremental changes to container, backup rarely
- maybe several phases needs to be captures
- remeber to startup from the new image
changing docker containers
BackLinks
- Docker images (← links)
- Changing docker containers (← links)
- Docker build (← links)
- Docker backup (← links)