systemctl stop docker- Create the file
/etc/docker/daemon.jsonwith 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 dockerActually it is "storage-opts" in the /etc/docker/daemon.json file indeed.
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
For the record, the flag is
--storage-opt, not--storage-optsSource: https://docs.docker.com/engine/reference/commandline/dockerd/