Last active
March 26, 2022 06:09
-
-
Save nandan-pc/494ed6a2d8b2e49390b919a24f9ee576 to your computer and use it in GitHub Desktop.
Useful docker commands
This file contains 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
Get columns numbers of docker ps: | |
> docker ps | head -1 | sed 's/ /\n/g' | nl | awk 'NF' | |
Get specific column output | |
> docker ps | awk '{print $<number>}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment