informatique:logiciels:docker
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| informatique:logiciels:docker [2025/06/13 14:50] – [Portainer] dockge pteu | informatique:logiciels:docker [2025/10/17 09:57] (current) – overlay2 prend trop de place pteu | ||
|---|---|---|---|
| Line 294: | Line 294: | ||
| * https:// | * https:// | ||
| + | =====Tips===== | ||
| + | |||
| + | ====overlay2 prend trop de place==== | ||
| + | |||
| + | Docker a tendance à prendre de la place, certains conteneurs notamment remplissent le système de fichier et saturent le dossier | ||
| + | |||
| + | <code bash> | ||
| + | df -h | grep -E /$ | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | On peut commencer par supprimer tous les objets inutilisés, | ||
| + | <code bash> | ||
| + | docker system prune | ||
| + | WARNING! This will remove: | ||
| + | - all stopped containers | ||
| + | - all networks not used by at least one container | ||
| + | - all dangling images | ||
| + | - unused build cache | ||
| + | |||
| + | Are you sure you want to continue? [y/N] | ||
| + | </ | ||
| + | |||
| + | Dans mon cas cela fait gagner un peu de place, mais le soucis principal vient d' | ||
| + | <code bash> | ||
| + | du -hs / | ||
| + | 116K / | ||
| + | 248K / | ||
| + | 4,0K / | ||
| + | 2,6M / | ||
| + | 88K / | ||
| + | 23G / | ||
| + | 16K / | ||
| + | 4,0K / | ||
| + | 4,0K / | ||
| + | 4,0K / | ||
| + | 1,3M / | ||
| + | </ | ||
| + | |||
| + | Oui, il fallait faire une partition dédiée pour ''/ | ||
| + | |||
| + | <code bash> | ||
| + | docker system df | ||
| + | TYPE TOTAL | ||
| + | Images | ||
| + | Containers | ||
| + | Local Volumes | ||
| + | Build Cache | ||
| + | |||
| + | docker system df -v | ||
| + | [...] | ||
| + | Images space usage: | ||
| + | |||
| + | REPOSITORY | ||
| + | bbernhard/ | ||
| + | portainer/ | ||
| + | |||
| + | Containers space usage: | ||
| + | |||
| + | CONTAINER ID | ||
| + | 3d15115fdf6f | ||
| + | b94dc74fe700 | ||
| + | </ | ||
| + | |||
| + | 11G c'est trop ; | ||
| + | <code bash> | ||
| + | docker stop 3d15115fdf6f | ||
| + | docker rm -f 3d15115fdf6f | ||
| + | df -h | grep -E /$ | ||
| + | / | ||
| + | |||
| + | # et le recréer: | ||
| + | cd / | ||
| + | docker compose up -d | ||
| + | </ | ||
informatique/logiciels/docker.txt · Last modified: 2025/10/17 09:57 by pteu