Last active
May 3, 2019 08:36
-
-
Save jaybauson/38b6208388a680b8c08316d8c6095c87 to your computer and use it in GitHub Desktop.
Docker On Ubuntu VM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
mkdir ~/projects | |
sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) projects ~/projects | |
echo -e "\nsudo mount -t vboxsf -o uid=$UID,gid=$(id -g) projects ~/projects && cd ~/projects" >> ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment