“Docker Remova todos os volumes” Respostas de código

Excluir 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
Plain Polecat

Remova o volume do docker

docker-compose down
docker rm -f $(docker ps -a -q)
docker volume rm $(docker volume ls -q)
docker-compose up -d
Shy Skipper

Docker Remova todos os recipientes

docker rm $(docker ps -a -q)
Weary Weevil

Exclua todas as imagens do Docker

docker system prune -a
Clean Centipede

Remova todos os volumes não utilizados 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
Fine Ferret

Docker Remova todos os volumes

docker volume rm $(docker volume ls -q)
Shy Skunk

Respostas semelhantes a “Docker Remova todos os volumes”

Perguntas semelhantes a “Docker Remova todos os volumes”

Mais respostas relacionadas para “Docker Remova todos os volumes” em Shell/Bash

Procure respostas de código populares por idioma

Procurar outros idiomas de código