![flask cheat sheet and quick reference flask cheat sheet and quick reference](https://simplelivingcreativelearning.com/wp-content/uploads/2017/08/Reference-Sheets-for-School.jpg)
- #Flask cheat sheet and quick reference install
- #Flask cheat sheet and quick reference update
- #Flask cheat sheet and quick reference archive
#Flask cheat sheet and quick reference archive
docker save : saves an image to a tar archive stream to STDOUT with all parent layers, tags & versions.docker load : loads an image from a tar archive as STDIN, including images and tags.We cannot remove an image of a running container unless we use the -f option. This does not remove images from a registry. If the tag is the only one for the image, both the image and the tag are removed.
![flask cheat sheet and quick reference flask cheat sheet and quick reference](https://images-na.ssl-images-amazon.com/images/I/51AB7oqJ8JL._SX218_BO1,204,203,200_QL40_ML2_.jpg)
If an image has multiple tags, using this command with the tag as a parameter only removes the tag.
![flask cheat sheet and quick reference flask cheat sheet and quick reference](https://blog.fibasile.com/content/images/2019/02/json-api.png)
$ docker commit -m 'added nginx start' -change='CMD ' -c "EXPOSE 80" 9644a814e95a ubuntu-nginx:version2 So, we can commit a container with new CMD and EXPOSE exit Note the the new container dit not start "nginx" server. $ docker commit bf5d24821dfa ubuntu-nginx While the container is running, on another terminal, we can commit the change to another image:
#Flask cheat sheet and quick reference install
$ docker run -it ubuntu apt-get apt-get install nginx As an example, let's install nginx to the ubuntu container: This reduces the likelihood of encountering data corruption during the process of creating the commit. docker commit : creates image from a container, by default, the container being committed and its processes will be paused while the image is committed.docker build : creates image from Dockerfile.docker import : creates an image from a tarball.
#Flask cheat sheet and quick reference update
$ docker update -cpu-shares 512 -m 300M dff32a272ad4 happy_kare Example : updating multiple resource configurations for multiple containers: