Question: 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.

Answer: 
To create a image from container execute the command below:

> 
> `docker commit container_id imagename`
> 
> 
>
You can run `docker commit` ([docs](https://docs.docker.com/engine/reference/commandline/commit/)) to save the container to an image, then push that image with a new tag to the registry.