informatique:docker
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| informatique:docker [12/09/2021 14:04] – [nginx-proxy & acme-companion] cyrille | informatique:docker [28/03/2025 09:08] (Version actuelle) – [Connexion à l'hôte] cyrille | ||
|---|---|---|---|
| Ligne 203: | Ligne 203: | ||
| </ | </ | ||
| + | ==== Docker Desktop ==== | ||
| + | |||
| + | https:// | ||
| ==== Rancher ==== | ==== Rancher ==== | ||
| Ligne 277: | Ligne 280: | ||
| <WRAP center round important 60%> | <WRAP center round important 60%> | ||
| - | Il reste un mauvais point: le container '' | + | Il reste un mauvais point: le container '' |
| </ | </ | ||
| Ligne 319: | Ligne 322: | ||
| Une image fullstack (Etherpad-lite, | Une image fullstack (Etherpad-lite, | ||
| * [[https:// | * [[https:// | ||
| + | |||
| + | ==== openssh ==== | ||
| + | |||
| + | Easily launch two hosts waiting for you on SSH port 22, with docker-compose -> https:// | ||
| ===== Tips & tricks ===== | ===== Tips & tricks ===== | ||
| Ligne 328: | Ligne 335: | ||
| Exemple: | Exemple: | ||
| - | < | + | < |
| docker pull mysql | docker pull mysql | ||
| docker stop my-mysql-container | docker stop my-mysql-container | ||
| Ligne 336: | Ligne 343: | ||
| </ | </ | ||
| + | ==== Copier une image ==== | ||
| + | |||
| + | Pour utiliser une image construite sur une machine il faut l' | ||
| + | < | ||
| + | # Export | ||
| + | docker save cyrille/ | ||
| + | # Import | ||
| + | gunzip cyrille-seriously-v1.tgz | docker load | ||
| + | | ||
| + | # Pour les images sans tag: | ||
| + | docker tag 4e1a2b349b09 some/ | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Faire le ménage ==== | ||
| + | |||
| + | Show docker disk usage : | ||
| + | <code bash> | ||
| + | $ docker system | ||
| + | TYPE TOTAL | ||
| + | Images | ||
| + | Containers | ||
| + | Local Volumes | ||
| + | Build Cache | ||
| + | </ | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | <code bash> | ||
| + | $ sudo docker system prune | ||
| + | WARNING! This will remove: | ||
| + | - all stopped containers | ||
| + | - all networks not used by at least one container | ||
| + | - all dangling images | ||
| + | - all dangling build cache | ||
| + | |||
| + | Are you sure you want to continue? [y/N] y | ||
| + | ... | ||
| + | </ | ||
| + | |||
| + | * Remove all stopped containers : '' | ||
| + | * Remove unused images : '' | ||
| + | * Remove all unused networks : '' | ||
| + | |||
| + | ==== Connexion à l' | ||
| + | |||
| + | Ajouter l' | ||
| + | |||
| + | Par exemple pour permettre au container uptime-kuma d' | ||
| + | |||
| + | <code bash> | ||
| + | docker run -d --restart=always \ | ||
| + | | ||
| + | -p 127.0.0.1: | ||
| + | | ||
| + | </ | ||
| + | |||
| + | * [[https:// | ||
| + | |||
| + | === Sending emails from Docker using Postfix installed on the Host === | ||
| + | |||
| + | https:// | ||
| ==== Container’s configuration ==== | ==== Container’s configuration ==== | ||
informatique/docker.1631448263.txt.gz · Dernière modification : de cyrille
