Created
October 4, 2016 19:18
-
-
Save jeffersonsouza/afa08269bbb92641c43bafc787ddab8c to your computer and use it in GitHub Desktop.
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
| # Update package information, ensure that APT works with the https method, and that CA certificates are installed. | |
| apt-get update | |
| apt-get 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 | |
| echo 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' >> /etc/apt/sources.list.d/docker.list | |
| apt-get 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 packages. | |
| apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual | |
| reboot | |
| # after reboot | |
| apt-get update | |
| apt-get install docker-engine |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment