Blame
|
1 | # Mise à jours |
||||||
| 2 | ||||||||
| 3 | ||||||||
| 4 | There is several ways to to it. |
|||||||
| 5 | ||||||||
| 6 | > [!WARNING] |
|||||||
| 7 | > Beware of new versions which require some special actions... |
|||||||
| 8 | ||||||||
| 9 | ## Manually |
|||||||
| 10 | ||||||||
| 11 | Go into the right directory then: |
|||||||
| 12 | ||||||||
| 13 | - Drop the containers |
|||||||
| 14 | ||||||||
| 15 | ```bash |
|||||||
| 16 | docker compose down |
|||||||
| 17 | ``` |
|||||||
| 18 | ||||||||
| 19 | - List images |
|||||||
| 20 | ||||||||
| 21 | ```shell |
|||||||
| 22 | docker image ls |
|||||||
| 23 | ``` |
|||||||
| 24 | ||||||||
| 25 | - Delete corresponding images |
|||||||
| 26 | ||||||||
| 27 | ```bash |
|||||||
| 28 | docker rmi xxxxxxxxxx #setting the image id |
|||||||
| 29 | ``` |
|||||||
| 30 | ||||||||
| 31 | - restart the containers |
|||||||
| 32 | ||||||||
| 33 | ```bash |
|||||||
| 34 | docker compose up -d |
|||||||
| 35 | ``` |
|||||||
| 36 | ||||||||
| 37 | ## check pull |
|||||||
| 38 | ||||||||
| 39 | Pull the images and if it is recalculated, indicating a new image (or |
|||||||
| 40 | layer), and recreate the corresponding containers Go into the right |
|||||||
| 41 | directory then: |
|||||||
| 42 | ||||||||
| 43 | - Pull images |
|||||||
| 44 | ||||||||
| 45 | ```bash |
|||||||
| 46 | docker compose pull |
|||||||
| 47 | ``` |
|||||||
| 48 | ||||||||
| 49 | If a image is recreated (upload and all...) |
|||||||
| 50 | ||||||||
| 51 | - Recreate containers |
|||||||
| 52 | ||||||||
| 53 | ```bash |
|||||||
| 54 | docker compose up -d --force-recreate |
|||||||
| 55 | ``` |
|||||||
| 56 | it will restart the container aver recreating them |
|||||||