I have a docker container running
> docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c5a24953e383 gradle "bash" 22 minutes ago Up 22 minutes # naughty_torvalds
Can I duplicate this running container and run it? What is the command for it?
You can create a new image from that container using the docker commit
command:
docker commit c5a24953e383 newimagename
And then start a new container from that image:
docker run [...same arguments as the other one...] newimagename