Create a Docker Image From Container

Task :

One of the Nautilus developer was working to test new changes on a container. He wants to keep a backup of his changes to the container. A new request has been raised for the DevOps team to create a new image from this container. Below are more details about it:

a. Create an image official:datacenter on Application Server 2 from a container ubuntu_latest that is running on same server.

Solutions :

$ ssh steve@stapp02
$ sudo su
# docker ps
# docker commit ubuntu_latest official:datacenter
# docker image ls

Leave a Reply

Your email address will not be published. Required fields are marked *