simple bash script to install docker in ubuntu and debian based Linux distribution successfully tested on Kali 2018.3 and ubuntu 18.03 simply download the script and change permission to that file and run the script chmod +x docker.sh execute the script ./docker.sh to install docker in your machine press 1 and to remove docker from your machine press 2
if you install the docker after installation complete then it ask a question do you want to enable docker upon reboot if you want to enable it press 1 else press 2 to exit the installation process