Horje
docker remove all volumes Code Example
delete volumes docker
# Procedure
# 1- Stop the container(s) using the following command:
docker-compose down
# 2- Delete all containers using the following command:
docker rm -f $(docker ps -a -q)
# 3-Delete all volumes using the following command:
docker volume rm $(docker volume ls -q)
# 4-Restart the containers using the following command:
docker-compose up -d
remove docker volume
docker-compose down
docker rm -f $(docker ps -a -q)
docker volume rm $(docker volume ls -q)
docker-compose up -d
docker remove all containers
docker rm $(docker ps -a -q)
delete all docker images
docker system prune -a
remove all unused volumes docker
$ docker volume prune

WARNING! This will remove all local volumes not used by at least one container.
Are you sure you want to continue? [y/N] y
Deleted Volumes:
07c7bdf3e34ab76d921894c2b834f073721fccfbbcba792aa7648e3a7a664c2e
my-named-vol

Total reclaimed space: 36 B
docker remove all volumes
docker volume rm $(docker volume ls -q)




Shell

Related
check if redis is running or not Code Example check if redis is running or not Code Example
unable to install deno in ubuntu Code Example unable to install deno in ubuntu Code Example
java for ubuntu Code Example java for ubuntu Code Example
how to install yum on mac Code Example how to install yum on mac Code Example
git log oneline graph Code Example git log oneline graph Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
15