Todos Novo

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

Entrar

Todos Novo Entrar

All gists matching topic Socks

Mais recente criado
Menos recente criado
Mais recente atualizado
Menos recente atualizado
Erreur32's Avatar

Erreur32 / docker-systemd-sock-restartauto.md

1 curtidas
0 bifurcações
1 arquivos
Última atividade 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)
Próximo Anterior

Desenvolvido por Opengist ⋅ Load: 19ms⋅

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