How to duplicate running docker container
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
You can use:
docker run --name duplicateImage --volumes-from Image -d -p 3000:80 nginix:latest
The --volumes-from Image
duplicates the 'Image' container.
So you will now have a container named Image and a container named duplicateImage and they will contain the same image that is running (a container).