Skip to content

Commit f49ec2a

Browse files
author
Brylie Christopher Oxley
committed
Update instructions for removing database volume
1 parent 75953f6 commit f49ec2a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

development/README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,9 @@ There are several environment variables required to run the `docker-compose` com
2525

2626
The `.env` file should contain a variable called `DATABASE` that is used to choose which database to use for development (mysql or mariadb).
2727

28-
If you change the value of the `DATABASE` variable at any time during development, you will need to remove the old database volume in order and rebuild the images to prevent errors.
28+
If you change the value of the `DATABASE` variable at any time during development, you will need to remove the old database volume in order and rebuild the images to prevent errors.
2929

30-
1. list all Docker volumes to find the relevant volume
31-
- `docker volume ls`
32-
2. remove the volume
33-
- `docker volume rm <volume-id>`
34-
3. rebuild the docker image
30+
1. remove the volume
31+
- `docker-compose down --volumes`
32+
2. rebuild the docker image
3533
- `docker-compose up --build -d`

0 commit comments

Comments
 (0)