systemctl stop docker
- Create the file
/etc/docker/daemon.json
with the following content:
{
"storage-driver": "overlay2",
"storage-opts": ["overlay2.override_kernel_check=true"]
}
systemctl start docker
systemctl stop docker
/etc/docker/daemon.json
with the following content:{
"storage-driver": "overlay2",
"storage-opts": ["overlay2.override_kernel_check=true"]
}
systemctl start docker
Also remember that the backing filesystem of /var/lib/docker/
needs to be ext4 for overlay2. XFS will not work.
Also remember that the backing filesystem of
/var/lib/docker/
needs to be ext4 for overlay2. XFS will not work.
According to the docs, XFS is supported if filesystem ftype is set to 1.
Check with: $ xfs_info | grep ftype
Actually it is "storage-opts" in the /etc/docker/daemon.json file indeed.