docker info command shows Storage Driver as overlay2 and is not showing information like when Storage Driver is devicemapper as shown below
Is there a way to see similar sort of information when Storage Driver is overlay2?
Reason: docker info shows the following warnings when Storage Driver is devicemapper
WARNING: the devicemapper storage-driver is deprecated, and will be removed in a future release.
WARNING: devicemapper: usage of loopback devices is strongly discouraged for production use.
Device mapper used a dedicated block device (or loop mounted file as a device) as storage for the images and containers. The various utilization statistics applied to that block devices.
AUFS, Overlay, Overlay2, and other storage backends don't have this block device. They also don't separate between metadata and data storage, they're just different files in folders. To see the remaining capacity of the storage backend, you look at the remaining capacity of the backing filesystem. E.g.
df /var/lib/docker