0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Docker リフレッシュ

0
Last updated at Posted at 2024-06-21
docker compose down --volumes --remove-orphans --rmi all
docker ps -aq | xargs -r docker stop
docker builder prune -af
docker system prune -af --volumes   
docker plugin ls -q    | xargs -r docker plugin rm -f
docker context ls -q   | grep -v default | xargs -r docker context rm
docker secret ls -q    | xargs -r docker secret rm
docker config ls -q    | xargs -r docker config rm
docker stack ls -q     | xargs -r docker stack rm
docker swarm leave --force
docker container stop $(docker container ls -aq)
docker container rm -f $(docker container ls -aq)
docker network rm $(docker network ls -q)
docker volume rm -f $(docker volume ls -q)
docker image rm -f $(docker image ls -aq)
docker compose down --volumes --remove-orphans --rmi all
docker image prune --all -f
docker container prune -f
docker system prune --volumes -f
docker network prune -f
docker volume prune -f
docker builder prune --all -f
docker logout 
rm -rf ~/.docker
sudo systemctl stop docker docker.socket
sudo systemctl stop containerd
sudo rm -rf /var/lib/docker /var/lib/containerd
sudo systemctl start containerd
sudo systemctl start docker
rm -rf ~/.docker
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?