View DockerOnUbuntuVM.sh
#!/bin/bash | |
# Note that you have to mount VirtualBox Guest Addition First | |
wget -O- https://get.docker.com | sh | |
sudo usermod -aG docker $USER | |
sudo mkdir /media/cdrom | |
sudo mount /dev/cdrom /media/cdrom | |
cd /media/cdrom/ | |
sudo apt install -y dkms build-essential linux-headers-generic linux-headers-$(uname -r) | |
sudo ./VBoxLinuxAdditions.run |