Last active
May 27, 2019 12:33
-
-
Save tmaximini/5c7da7276acd1effa55af3b9bfe48e04 to your computer and use it in GitHub Desktop.
Docker commands #docker
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
| # 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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment