Skip to content

Instantly share code, notes, and snippets.

@junosuarez
Created April 24, 2024 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save junosuarez/c5a60a6bad213615ca2d4f2b1dc53f9a to your computer and use it in GitHub Desktop.
Save junosuarez/c5a60a6bad213615ca2d4f2b1dc53f9a to your computer and use it in GitHub Desktop.
Recover a docker run command from a running docker container
docker inspect \
--format "$(curl -s https://gist.githubusercontent.com/efrecon/8ce9c75d518b6eb863f667442d7bc679/raw/run.tpl)" \
name_or_id_of_your_running_container
# via https://stackoverflow.com/a/38077377
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment