Skip to content

Instantly share code, notes, and snippets.

@wiccy46
Last active May 10, 2020 16:19
Show Gist options
  • Save wiccy46/211f91010d5af79b754264cf24cc9581 to your computer and use it in GitHub Desktop.
Save wiccy46/211f91010d5af79b754264cf24cc9581 to your computer and use it in GitHub Desktop.
[docker_collection] A collection of docker commands #docker
# 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