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
#!/bin/bash | |
# Uninstall old version | |
sudo apt-get remove docker docker-engine docker.io | |
# Update apt package index | |
sudo apt-get update | |
# Install packages to allow apt to use a repo over HTTPS | |
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common | |
# Add Docker offical GPG Key | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |