Last active
February 24, 2023 14:54
-
-
Save HDias/1d3e5ab3f34a8c5ea9cfd448f57f7ed7 to your computer and use it in GitHub Desktop.
Revisions
-
HDias revised this gist
Feb 24, 2023 . 1 changed file with 3 additions and 0 deletions.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,3 +4,6 @@ docker rm $(docker ps -a -f status=exited -q) # remove unused images docker rmi $(docker images -f dangling=true -q) # get IP from container docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container_name_or_id -
HDias renamed this gist
Oct 29, 2022 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
HDias created this gist
Oct 29, 2022 .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,6 @@ # remove containers exited docker rm $(docker ps -a -f status=exited -q) # remove unused images docker rmi $(docker images -f dangling=true -q)