Create a Docker Image From Container Kodekloud

 

Question: 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 media:xfusion on Application Server 1 from a container ubuntu_latest that is running on same server.

Solution

Login as root in mentioned server

ssh [email protected]

sudo su

Then check the container name 

docker ps

Now create an image from that container 

docker commit ubuntu_latest media:xfusion




Share on Google Plus

About Ashadullah Shawon

I am Ashadullah Shawon. I am a Software Engineer. I studied Computer Science and Engineering (CSE) at RUET. I Like To Share Knowledge. Learn More: Click Here
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment