Skip to content

Latest commit

 

History

History

create-a-docker-image-from-container

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Create a Docker Image From Container

Problem

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 demo:devops on Application Server 3 from a container ubuntu_latest that is running on same server.

Solution

docker commit ubuntu_latest
get image ID by running docker images

docker tag <imageID> demo:devops