delete all docker data 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: delete container id
docker rm $(docker ps -a -q)
docker-compose down
docker rm -f $(docker ps -a -q)
docker volume rm $(docker volume ls -q)
docker-compose up -d
docker rm $(docker ps -a -q)