Upgrading Docker Applications » History » Version 4
Jon Goldberg, 10/04/2018 07:08 PM
1 | 3 | Jon Goldberg | {{last_updated_at}} by {{last_updated_by}} |
---|---|---|---|
2 | 1 | Jon Goldberg | # Upgrading Docker Applications |
3 | |||
4 | On the `red` server, we run many applications in Docker. Here's the general procedure for upgrading them, along with instructions for specific apps.. |
||
5 | |||
6 | ## Invoiceninja |
||
7 | |||
8 | ~~~ shell |
||
9 | #backup the db |
||
10 | mysqldump invoiceninja > in_pre38.sql |
||
11 | |||
12 | cd docker |
||
13 | # This upgades ALL Docker images that need updating (i.e. unless they're using a version-specific tag) |
||
14 | sudo docker-compose pull |
||
15 | 4 | Jon Goldberg | # This updates a single image |
16 | sudo docker-compose pull invoiceninja |
||
17 | |||
18 | 1 | Jon Goldberg | sudo docker-compose up -d --build |
19 | # If you need to free up some space |
||
20 | docker system prune -a |
||
21 | ~~~ |
||
22 | 2 | Jon Goldberg | |
23 | #### Troubleshooting |
||
24 | * Clear InvoiceNinja's cache by load any page with `?clear_cache=true` appended. |
||
25 | * In the `env` file, uncomment `APP_DEBUG=true` and bounce the image. |