Skip to content

Instantly share code, notes, and snippets.

@arliber
Last active April 2, 2020 08:27
Show Gist options
  • Save arliber/9674a298a26c61dffdaffbafbea2c9d0 to your computer and use it in GitHub Desktop.
Save arliber/9674a298a26c61dffdaffbafbea2c9d0 to your computer and use it in GitHub Desktop.
Docker Snippets #snippet

Articles

  1. How Docker Can Help You Become A More Effective Data Scientist
  2. Docker for Data Science

The docker system prune command will remove all stopped containers, all dangling images and all unused networks sudo docker system prune

Stop and delete container

docker rm -f CONTAINER_ID

Deleted container

docker container rm <containerid>

Stop container

sudo docker stop <container_id> docker rm -f CONTAINER_ID docker ps -f "status=exited"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment