Skip to content

Instantly share code, notes, and snippets.

@katopz
Last active July 26, 2016 06:54
Show Gist options
  • Save katopz/9f86a812e9b73b58c9c75103f09d0690 to your computer and use it in GitHub Desktop.
Save katopz/9f86a812e9b73b58c9c75103f09d0690 to your computer and use it in GitHub Desktop.
# Install Docker on Ubuntu 14.04.4 x64
# Ref https://docs.docker.com/engine/installation/linux/ubuntulinux/
# No interactive for now.
export DEBIAN_FRONTEND=noninteractive
# Update your APT package index.
apt-get -y update
# Update package information, ensure that APT works with the https method, and that CA certificates are installed.
apt-get -y install apt-transport-https ca-certificates
# Add the new GPG key.
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
# Add docker.list
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial experimental" > /etc/apt/sources.list.d/docker.list
# Update your APT package index.
apt-get -y update
# Purge the old repo if it exists.
apt-get purge lxc-docker
# Verify that APT is pulling from the right repository.
apt-cache policy docker-engine
# Install the recommended package.
apt-get -y install linux-image-extra-$(uname -r)
# Ubuntu 14.04 or 12.04, apparmor is required.
apt-get -y install apparmor
# Install Docker.
apt-get -y install docker-engine
# Start the docker daemon.
service docker start
# Validate docker version
docker -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment