I tried installing docker via snap on CentOS 7 but the docker service failed to start due to incorrect storage-driver.
As specified here: https://docs.docker.com/storage/storagedriver/select-storage-driver/
“devicemapper is supported, but requires direct-lvm for production environments, because loopback-lvm, while zero-configuration, has very poor performance. devicemapper was the recommended storage driver for CentOS and RHEL, as their kernel version did not support overlay2. However, current versions of CentOS and RHEL now have support for overlay2, which is now the recommended driver.”
I tried to change from aufs to overlay2 by running
vi /var/snap/docker/current/config/daemon.json and change the “aufs” to “overlay2”.
But then it failed with error: “Error starting daemon: error initial izing graphdriver: overlay2: the backing xfs filesystem is formatted without d_t ype support, which leads to incorrect behavior. Reformat the filesystem with fty pe=1 to enable d_type support. Backing filesystems without d_type support are no t supported.”
Does this is a bug with the docker snap?