Unattended upgrades stops Docker instead of restarting it

Asked by NIco

This is my current 50-unattended-upgrades file:

    Unattended-Upgrade::Automatic-Reboot "false";
    Unattended-Upgrade::Allowed-Origins {
        "${distro_id}:${distro_codename}";
        "${distro_id}:${distro_codename}-security";
        "${distro_id}ESM:${distro_codename}";
        "${distro_id}:${distro_codename}-updates";
    };

    // List of packages to not update (regexp are supported)
    Unattended-Upgrade::Package-Blacklist {};
    Unattended-Upgrade::DevRelease "false";
    Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";
    Unattended-Upgrade::Remove-Unused-Dependencies "true";

A containerd upgrade was done early in the morning

    2020-04-03 06:39:18,853 INFO Initial blacklisted packages:
    2020-04-03 06:39:18,854 INFO Initial whitelisted packages:
    2020-04-03 06:39:18,854 INFO Starting unattended upgrades script
    2020-04-03 06:39:18,854 INFO Allowed origins are: o=Ubuntu,a=bionic, o=Ubuntu,a=bionic-security, o=UbuntuESM,a=bionic, o=Ubuntu,a=bionic-updates
    2020-04-03 06:39:22,458 INFO Packages that will be upgraded: containerd
    2020-04-03 06:39:22,458 INFO Writing dpkg log to /var/log/unattended-upgrades/unattended-upgrades-dpkg.log
    2020-04-03 06:39:29,941 INFO All upgrades installed

Which caused docker to stop via Systemd.

    Apr 03 06:39:23 ip-10-2-1-12 systemd[1]: Stopping Docker Application Container Engine...
    Apr 03 06:39:23 ip-10-2-1-12 dockerd[3214]: time="2020-04-03T06:39:23.782508859Z" level=info msg="Processing signal 'terminated'"
    Apr 03 06:39:23 ip-10-2-1-12 dockerd[3214]: time="2020-04-03T06:39:23.933398454Z" level=info msg="ignoring event" module=libcontainerd namespace=moby
    topic=/tasks/delete type="*events.TaskDelete"
    Apr 03 06:39:23 ip-10-2-1-12 dockerd[3214]: time="2020-04-03T06:39:23.945486871Z" level=info msg="ignoring event" module=libcontainerd namespace=moby
    topic=/tasks/delete type="*events.TaskDelete"
    Apr 03 06:39:24 ip-10-2-1-12 dockerd[3214]: time="2020-04-03T06:39:24.155022784Z" level=info msg="stopping event stream following graceful shutdown" e
    rror="<nil>" module=libcontainerd namespace=moby
    Apr 03 06:39:24 ip-10-2-1-12 systemd[1]: Stopped Docker Application Container Engine.

Is there any way to override this behavior? I would prefer a systemctl restart rather than a systemctl stop.

Relevant data:

- Ubuntu 18.04.4 LTS
- Docker 19.03.6 installed by `apt`

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1
Revision history for this message
NIco (masterl1nk) said :
#2

Hi, thank you. May we close this one and move everything to Bernd's question?

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.