I know we can commit an image out of running docker container and use that docker image to run a new docker container.
But, my use-case is.
I want to duplicate a running without passing those same argument again and again. Of course, if there should be option to add arguments for running new container on different port or set a new name.
How would that even make sense? People stick container names, map host ports and volumes to containers, some are even commiting a crime and assign fixed ips to their containers. Dupplicating such containes would be more harm then good.
If you use docker-compose, you already would have all “argument” configured in your docker-compose.yml and could use the “–project” to run different instances of the whole stack.
If you are running everyting with manualy typed docker run commands then it’s time to step up your game and either put your commands in bash scripts or even better use docker-compose.yml’s to declare your containers.