How to install docker inside a docker container

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 
vi /etc/sysconfig/docker-storage-setup

Comment out STORAGE_DRIVER=overlay2

systemctl start docker

Leave a Comment