Last active
December 5, 2016 09:54
-
-
Save N1v0k/ec4cbabb5bd5b82f9b8ecbd0ce8a175f to your computer and use it in GitHub Desktop.
Docker Setup on Xenial
This file contains hidden or 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
#!/usr/bin/env bash | |
sudo apt-get update && apt-get -y upgrade && apt-get autoremove && apt-get clean | |
v=$(uname -r) | |
apt-get install -y apt-transport-https ca-certificates | |
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" > /etc/apt/sources.list.d/docker.list | |
apt-get update | |
apt-get purge lxc-docker | |
apt-cache policy docker-engine | |
apt-get update | |
apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual | |
apt-get install -y docker-engine | |
usermod -aG docker gergely | |
docker run --name=test hello-world |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment