docker compose remove all code example
Example 1: remove docker volume
docker-compose down
docker rm -f $(docker ps -a -q)
docker volume rm $(docker volume ls -q)
docker-compose up -d
Example 2: docker remove container
//Check if the container is running
docker ps -a
//stop the container
docker stop <container_id>
//remove the container
docker rm <container_id>