Why Docker Stops During Unattended Upgrades on Ubuntu 18.04

18.04unattended-upgrades

The Docker daemon gets stopped and not restarted after unattended upgrades.
Is this normal?
Im using Ubuntu Ubuntu 18.04.5 LTS

Dec 01 06:39:19 systemd[1]: Starting Daily apt upgrade and clean activities...
Dec 01 06:39:26 systemd[1]: Stopping Docker Application Container Engine...

Best Answer

There is a bug in Ubuntu which caused this shutdown of dockerd. It occurred because of an automatic security update of containerd. See also https://serverfault.com/questions/1044493/how-to-make-sure-docker-service-will-start-after-containerd-upgrade.

The previously accepted answer disables the automatic security updates, so be aware of the consequences.

Related Question