Last active
September 1, 2021 18:33
-
-
Save fahadsiddiqui/ad2076e024de0ffabfb475b741da9b7b to your computer and use it in GitHub Desktop.
Revisions
-
fahadsiddiqui revised this gist
Sep 1, 2021 . No changes.There are no files selected for viewing
-
fahadsiddiqui revised this gist
Sep 1, 2021 . No changes.There are no files selected for viewing
-
fahadsiddiqui revised this gist
Sep 1, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ docker ps -q | xargs docker inspect --format '{{ .Id }} - {{ .Name }} - {{ .NetworkSettings.IPAddress }}' ``` ## Format `docker ps` ``` docker ps --format="{{.Names}}\t{{.ID}}\t{{.Ports}}" -
fahadsiddiqui created this gist
Sep 1, 2021 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ ## Format out of Json using `docker inspect` ``` docker ps -q | xargs docker inspect --format '{{ .Id }} - {{ .Name }} - {{ .NetworkSettings.IPAddress }}' ``` # Format `docker ps` ``` docker ps --format="{{.Names}}\t{{.ID}}\t{{.Ports}}" ```