Sometimes for testing purposes, we need to install docker inside the docker container so we can try below method to do such installation
Disclaimer: I will only recommend such setup for testing purpose only and do not use it in the production setup.
To install docker inside a docker
yum install docker -y
Comment out STORAGE_DRIVER=overlay2
systemctl start docker