Guide to install docker in Ubuntu VirtualBox
Step 1: Install Virtual Box from below link:
Step 2: Perform the following step in terminal, if the error: “vboxuser is not in the sudoers file. This incident will be reported! Enable sudo in Ubuntu” is encountered.
foo@bar:$ su root
foo@bar:$ apt-get install sudo-y
foo@bar:$ adduser vboxuser sudo
foo@bar:$ chmod 0440 /etc/sudoers
foo@bar:$ su reboot
Step 3: Install docker engine using Apt repository from following link:
Link: https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository