Restarting Docker Environment Completely

  • Stop everything and remove containers and networks:
docker-compose down
  • Stop everything and remove containers, networks, and volumes:
docker-compose down -v
  • Stop everything, remove containers, networks, and images:
docker-compose down --rmi all
  • Rebuild and start everything from scratch:
docker-compose up --build

With these steps, you should be able to "restart" your Docker environment completely, starting from scratch.