linode最新内核docker服务无法启动

升级完linode发现docker服务无法启动了,containerd服务报找不到overlay模块

...
modprobe: FATAL: Module overlay not found
...

linode内核早就启用overlay模块了,这是docker bug导致的。

执行以下命令来解决此问题:

$ su -
$ mkdir -p /etc/systemd/system/containerd.service.d/

$ cat << EOF > /etc/systemd/system/containerd.service.d/override.conf
[Service]
ExecStartPre=
EOF

$ systemctl daemon-reload

$ systemctl start docker

References:
[1]Docker won’t start using the latest Linode kernel

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.