Comandi docker distruggono il PI (?)
Negli ultimi giorni quando lancio docker compose up -d vengo spesso buttato fuori dall sessione SSH. Qualche volta anche con altri comandi docker come docker image pull.
All’inizio pensavo che il mio PI fosse sovraccaricato e crashasse ma dopo un po’ di tentativi ho scoperto che era solo un problema della rete, il PI rimaneva in piedi.
Cercando un po’ su Google ho trovato questo github issue che era molto simile al mio problema e ho provato ad aggiungere una regola al dhcpcd.conf come spiegato qui e fatto un riavvio:
Prior to my previous comment about this appearing to be an issue related to the
wlan0network interface disappearing whendocker-compose upis called, it would appear that this is related to DHCP and theveth*interfaces.This thread on the RPi forums provided a fix: https://www.raspberrypi.org/forums/viewtopic.php?t=282425#p1712939
Add this to
/etc/dhcpcd.confand then reboot:denyinterfaces veth*So far, with this applied, I have not been able to reproduce the issue at all - I can start and stop
docker-composeas many times as I want now without any issues. I tested perhaps 20 or 30 times togglingupanddownwithout any issue.
Dopo aver applicato il cambio e un po’ di tentativi positivi direi che è proprio risolto. Grazie mondo.