From 48c87f9da3e8faa69741ff88cc40e9176a719fbc Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Wed, 21 Oct 2026 14:59:51 -0700 Subject: [PATCH] Restart rootless docker after host updates Upgrading containerd does not restart the agent's rootless dockerd, and no reboot is triggered, so the daemon keeps using the old containerd shims. Containers then fail to start until the host reboots, which broke scenario setup in benchmark runs. --- ansible/update.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ansible/update.yml b/ansible/update.yml index 97bd1ea6..94fa4eed 100644 --- a/ansible/update.yml +++ b/ansible/update.yml @@ -9,6 +9,18 @@ autoremove: yes update_cache: yes become: yes + register: apt_upgrade + + # Package upgrades only restart the system docker, which is disabled here. + # The agent's rootless daemon would keep running against the old containerd. + - name: Restart rootless docker + when: apt_upgrade.changed + ansible.builtin.systemd: + name: docker.service + state: restarted + scope: user + become: yes + become_user: azdo - name: Check reboot ansible.builtin.import_tasks: tasks/check_reboot.yml