Created
November 27, 2016 13:35
-
-
Save nizq/4dba16fa60c4c87eba3b53219cd17a3c to your computer and use it in GitHub Desktop.
Docker Scripts: Conveniently obtain the PID of a docker container by name or ID
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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