Docker show container run arguments

Docker show container run arguments
Image by marvin meyer

Sometimes you want to see exactly how a container was started, and what command line arguments were passed to , and subsequently how they were interpreted by the container runtime engine.

Emmanuel Frécon provides an excellent example of how to do exactly that:

docker inspect \
  --format "$(curl -s https://gist.githubusercontent.com/efrecon/8ce9c75d518b6eb863f667442d7bc679/raw/run.tpl)" \
  name_or_id_of_your_running_container
source

What the above does is take the Go template from Github Gist and formats the docker inspect output to include the information relevant to the docker run command.

Collect recurring payments with Subscribie - Try Now