More than 1 year has passed since last update.

Docker vlumeの削除

docker-compose.yml
volumes:
  db-data:
    driver: local

voloume list

docker volume ls

DRIVER   VOLUME NAME
local    00c9dd5125c6c249363e6cbc3202fc30b8a1c17d98ee8b1f305e509ba316804f
  :
  :
  :
local    project_db-data

削除

docker volume rm project_db-data

全部削除

docker volume rm $(docker volume ls -qf dangling=true)

リンク切れ削除

docker volume ls -qf dangling=true | xargs -r docker volume rm

参照

Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.