Here is my problem :
I have a task running a docker image on amazon ECS but i would like to make a new docker image from the running instance of the container.
I see the id of the instance on Amazon Ecs , i have made an AMI but i would like to make a new docker image that i can pull from amazon.
Any ideas ?
Regards and thanks
Apart from the answer provided by @Ben Whaley, I personally suggest you to make use of Docker APIs. To use Docker APIs you need to configure the docker daemon port and the procedure is explained here configuring docker daemon port
Lets run a container using an base Ubuntu Image and create a folder inside the container:
Status of the exited container:
JSON file which is an input for committing a container:
API to commit a container
The Id that is generated is the new Image Id which is build from committing a container.
Get docker Images
Run the newly build Image to see the changes commited in the previous container.
To build an image from Docker file, how to build an image using docker API
For more information on docker APIs, refer here.
To create a image from container execute the command below:
You can run
docker commit
(docs) to save the container to an image, then push that image with a new tag to the registry.