Last active
May 10, 2020 16:19
-
-
Save wiccy46/211f91010d5af79b754264cf24cc9581 to your computer and use it in GitHub Desktop.
[docker_collection] A collection of 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
# Open a container | |
docker exec -it NAME bash | |
# Exit | |
exit | |
# Copy file to container | |
docker cp script.sh jenkins:/tmp/script.sh | |
# Packages | |
Xvfb : perform all graphical operations in virutal memory without showing any screen outputs. | |
# Remove all stopped containers, not used net/volume, dangling images. | |
docker system prune | |
# Just one thing | |
docker image|container prune |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment