Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 563 Bytes

File metadata and controls

18 lines (12 loc) · 563 Bytes

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