Last active
May 27, 2019 12:33
-
-
Save tmaximini/5c7da7276acd1effa55af3b9bfe48e04 to your computer and use it in GitHub Desktop.
Revisions
-
tmaximini revised this gist
May 27, 2019 . 1 changed file with 5 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 @@ -1,6 +1,11 @@ # remove dangling (untagged) images (with -f force) docker rmi -f $(docker images -f "dangling=true" -q) docker rm $(docker ps -q -f status=exited) # Cleanup exited processes: docker volume rm $(docker volume ls -qf dangling=true) # Cleanup dangling volumes docker rmi $(docker images --filter "dangling=true" -q --no-trunc) # Cleanup dangling images # start jenkins with port mapping and passing in docker.sock sudo docker run -u root --rm -d -p 80:8080 -p 5000:5000 -v jenkins-data:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock jenkinsci/blueocean -
tmaximini renamed this gist
Apr 17, 2019 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
tmaximini renamed this gist
Apr 17, 2019 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
tmaximini created this gist
Apr 17, 2019 .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 dangling (untagged) images (with -f force) docker rmi -f $(docker images -f "dangling=true" -q) # start jenkins with port mapping and passing in docker.sock sudo docker run -u root --rm -d -p 80:8080 -p 5000:5000 -v jenkins-data:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock jenkinsci/blueocean