doc:appunti:linux:sa:docker
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:linux:sa:docker [2025/11/06 09:30] – [Esempio di esecuzione di un container] niccolo | doc:appunti:linux:sa:docker [2026/06/10 08:31] (current) – [Gestione delle immagini e dei container] niccolo | ||
|---|---|---|---|
| Line 55: | Line 55: | ||
| Status: Downloaded newer image for matrixdotorg/ | Status: Downloaded newer image for matrixdotorg/ | ||
| docker.io/ | docker.io/ | ||
| + | </ | ||
| + | |||
| + | FIXME Verificare se l' | ||
| + | |||
| + | ===== Backup di una immagine ===== | ||
| + | |||
| + | Dopo aver fatto il pull può essere desiderabile fare un archivio di tutto il software, per eventuali restore futuri. Si verifica quali immagini sono state scaricate: | ||
| + | |||
| + | < | ||
| + | docker images | ||
| + | REPOSITORY | ||
| + | metabase/ | ||
| + | </ | ||
| + | |||
| + | Quindi si esegue il backup in un file tar: | ||
| + | |||
| + | < | ||
| + | docker save -o backup_applicazione_< | ||
| + | </ | ||
| + | |||
| + | Conviene includere l' | ||
| + | |||
| + | < | ||
| + | docker load -i backup_applicazione_< | ||
| + | </ | ||
| + | |||
| + | Se in Docker abbiamo una immagine con lo stesso nome (ma ID diverso, ad esempio a seguito di un aggiornamento che poi si è corrotto) è possibile cambiarle di nome prima di fare il restore della vecchia immagine: | ||
| + | |||
| + | < | ||
| + | docker tag < | ||
| </ | </ | ||
| Line 66: | Line 96: | ||
| docker rm 144443902b95 | docker rm 144443902b95 | ||
| docker rm agitated_darwin | docker rm agitated_darwin | ||
| + | |||
| + | # Avvia l' | ||
| + | docker update --restart unless-stopped 144443902b95 | ||
| </ | </ | ||
| Line 85: | Line 118: | ||
| < | < | ||
| - | Config file '/ | + | Config file '/ |
| - | either create a new config file by running with the `generate` | + | file by running with the `generate` argument (and then edit the resulting file before |
| - | argument (and then edit the resulting file before restarting) | + | restarting) or specify the path to an existing config file with the SYNAPSE_CONFIG_PATH |
| - | or specify the path to an existing config file with the | + | variable. |
| - | SYNAPSE_CONFIG_PATH variable. | + | |
| </ | </ | ||
| + | Leggendo la [[https:// | ||
| + | < | ||
| + | docker run -it --rm \ | ||
| + | --mount type=volume, | ||
| + | -e SYNAPSE_SERVER_NAME=my.matrix.host \ | ||
| + | -e SYNAPSE_REPORT_STATS=yes \ | ||
| + | matrixdotorg/ | ||
| + | </ | ||
| ===== Risorse impegnate sull' | ===== Risorse impegnate sull' | ||
doc/appunti/linux/sa/docker.1762421437.txt.gz · Last modified: by niccolo
