Last updated on February 27th, 2021 at 02:14 am
You need Linux kernel 3.14++ to use overlayFS.
I need to use overlayFS because Docker recommend to use it
The
devicemapper
storage driver is deprecated in Docker Engine 18.09, and will be removed in a future release. It is recommended that users of thedevicemapper
storage driver migrate tooverlay2
.
It doesn’t work
So, I try to update the newest version kernel from OVH [tutorial 1] [tutorial 2].
I tried to boot with the newest version – 4.19.113-xxxx-std-ipv6-64
What is the problem ?
You can find out that kernel config of OVH 4.19 with this line
# CONFIG_OVERLAY_FS is not set
This made you impossible to use overlay2 in docker
What is the solution ?
You need the kernel that with CONFIG_OVERLAY_FS is set. You need to read the config of the kernel before using it.
System.map-4.9.185-xxxx-std-ipv6-64
bzImage-4.9.185-xxxx-std-ipv6-64
config-4.9.185-xxxx-std-ipv6-64 <----
Make sure it have
CONFIG_OVERLAY_FS=y
Then use the 4.19.185 kernel to solve this problem