I have a Docker container running, and I want to create another one similar to it. How can I find out what command was used to start the container? There's docker inspect
, but I'd have to go through and look at each of the config options one by one.
Edit: I want to get the full command used to start the container, including environment variables, links, volumes, etc. For example:
docker run -d --name foo -v /bar:/bar --link baz:baz -e DEBUG=True image bash