reset docker container 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 stop all containers
docker stop $(docker ps -a -q)
Example 3: stop docker container
//Check if the container is running
docker ps -a
docker container stop {container-id}
Example 4: docker image is not reseting
docker rm -f $(docker ps -a -q)
Example 5: docker image is not reseting
docker volume rm $(docker volume ls -q)