By default the containerd systemd unit does not restart when failure occurs. This can be easily changed by creating a systemd drop-in that directs the containerd.service unit to restart on failure.
$ sudo mkdir -p /etc/systemd/system/containerd.service.d
$ sudo vi /etc/systemd/system/containerd.service.d/10-on-failure.conf
/etc/systemd/system/containerd.service.d/10-on-failure.conf
[Service]
Restart=on-failure
$ sudo systemctl daemon-reload
$ sudo systemctl restart containerd.service
Comments
0 comments
Please sign in to leave a comment.