docker

some useful commands

Procedure

  1. Stop the container(s) using the following command:

  2. docker-compose down

  3. Delete all containers using the following command:

  4. docker rm -f $(docker ps -a -q)

  5. Delete all volumes using the following command:

  6. docker volume rm $(docker volume ls -q)

  7. Restart the containers using the following command:

  8. docker-compose up -d