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:01] – [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 209: | Ligne 212: | ||
| ===== Images Docker ===== | ===== Images Docker ===== | ||
| - | ==== nginx-proxy ==== | + | ==== nginx-proxy |
| * https:// | * https:// | ||
| Ligne 215: | Ligne 218: | ||
| C'est le reverse proxy pour d' | C'est le reverse proxy pour d' | ||
| + | |||
| + | acme-companion is a lightweight companion container for nginx-proxy. It handles the automated creation, renewal and use of LetsEncrypt SSL certificates for proxied Docker containers through the ACME protocol. | ||
| + | |||
| + | * Automated creation/ | ||
| + | * Let's Encrypt / ACME domain validation through http-01 challenge only. | ||
| + | * Automated update and reload of nginx config on certificate creation/ | ||
| + | * Support creation of Multi-Domain (SAN) Certificates. | ||
| + | * Creation of a Strong Diffie-Hellman Group at startup. | ||
| + | * Work with all versions of docker. | ||
| {{ https:// | {{ https:// | ||
| Ligne 267: | Ligne 279: | ||
| Et voilà le container '' | Et voilà le container '' | ||
| + | <WRAP center round important 60%> | ||
| + | Il reste un mauvais point: le container '' | ||
| + | </ | ||
| + | |||
| + | On le voit sur le port '' | ||
| + | < | ||
| + | # netstat -tanp | grep LISTEN | ||
| + | tcp 0 0 0.0.0.0: | ||
| + | tcp 0 0 127.0.0.1: | ||
| + | tcp6 | ||
| + | tcp6 | ||
| + | tcp6 | ||
| + | tcp6 | ||
| + | tcp6 | ||
| + | </ | ||
| ==== webdevops ==== | ==== webdevops ==== | ||
| Ligne 295: | 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 304: | Ligne 335: | ||
| Exemple: | Exemple: | ||
| - | < | + | < |
| docker pull mysql | docker pull mysql | ||
| docker stop my-mysql-container | docker stop my-mysql-container | ||
| Ligne 312: | 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.1631448072.txt.gz · Dernière modification : de cyrille
