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.
You can use the docker commit command to save the current state of a container to an image. You can use this image to create new containers, for example to debug the container independently of the existing container. You can use the docker export command to export a container to another system as an image tar file.
Description. The docker container create (or shorthand: docker create ) command creates a new container from the specified image, without starting it.
To create a image from container execute the command below:
docker commit container_id imagename
You can run docker commit
(docs) to save the container to an image, then push that image with a new tag to the registry.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With