Všechno Nové

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Přihlásit se

Všechno Nové Přihlásit se

All gists matching topic Socks

Nedávno Vytvořeno
Nejméně nedávno Vytvořeno
Nedávno Aktualizováno
Nejméně nedávno Aktualizováno
Erreur32's Avatar

Erreur32 / docker-systemd-sock-restartauto.md

1 Lajky
0 Forky
1 Soubory
Naposledy aktivní 1 month ago
Restart des container declarant /var/run/docker.sock dasn le compose .
Docker MAJ Socks restart

Tutoriel complet – Redémarrage automatique des containers utilisant docker.sock

Contexte

Sur Debian, lors d’une mise à jour Docker (apt upgrade) :

  • le service docker.service est redémarré
  • le socket /var/run/docker.sock est recréé
  • les containers qui montent ce socket (Portainer, Dozzle, Telegraf, etc.) restent UP mais ne fonctionnent plus
  • un docker compose down && up -d corrige le problème mais est destructif (réseaux recréés, coupure de service)
Novější Starší

Vytvořeno pomocí Opengist ⋅ Load: 19ms⋅

Čeština
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文