Created
January 4, 2015 21:31
-
-
Save keithchambers/81f03136c6ed02b3c926 to your computer and use it in GitHub Desktop.
Count docker containers in bash
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
| docker ps | awk '$1 != "CONTAINER" { n++ }; END { print n+0 }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment