Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Docker Scripts: Conveniently obtain the PID of a docker container by name or ID
#!/bin/sh
exec docker inspect --format '{{ .State.Pid }}' "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment