Skip to content

Clean up

  • Can skip if you want to play with the code later on etc.
  • We are using Docker in the later workshops so at least stop any containers running.
  • If you have Docker installed from before, be careful with these commands.
  • Docker compose will clean up after running: docker-compose down

  1. Stop & remove any containers:
    docker ps -a
    docker rm -f ${someContainer}
    
  2. To delete any stopped containers:
    docker container prune
    
  3. Delete any images
    docker image ls
    docker rmi ${imageName}
    docker image prune
    
  4. Delete any volumes
    docker volume ls
    docker volme rm ${volumeName}