[Docker] 資料庫異常 刪除容器資料Volume
發表於 : 2021-11-25, 11:09
https://stackoverflow.com/questions/597 ... es-on-init
If, when you start your Docker Compose, you're getting:
you need to proactively remove the volumes which were set up to store the database.
The command docker-compose down doesn't do this automatically.
You can request removal of volumes like this:
If, when you start your Docker Compose, you're getting:
代碼: 選擇全部
PostgreSQL Database directory appears to contain a database; Skipping initializationThe command docker-compose down doesn't do this automatically.
You can request removal of volumes like this:
代碼: 選擇全部
docker-compose down --volumes