Keep in mind….
These instructions were written assuming you’ve launched a Ubuntu Server 18.04 LTS AWS instance. Recommended spec is a t3a.medium. The following AMI is being used, it can be found in the “Quick Start” section.
Ubuntu Server 18.04 LTS (HVM), SSD Volume Type (x64)
Any Ubuntu setup should be relatively similar but depending on the packages installed by default you might need to install additional dependencies or some of these steps may not be necessary. Listed below is of all of the packages required, following that a step by step of the commands necessary. These are written for the most basic understanding of what is being installed if someone is not Linux proficient.
- Ubuntu 18.04/16.04 (Other Ubuntu See here) )
WARNING! Ubuntu's Software center installs the Docker-ce SNAP package. Don't use this, use apt manually. If you've installed the SNAP package, you're mostly own your own. The SNAP package requires additional user account and group editing to get fully functioning. You'll need to uninstall it, run docker.help and modify a number of user settings prior to reinstallation. We prefer the apt install solution which follows as it aligns more closely with Mint and other distributions:
Run the following in a terminal:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable" sudo apt update sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose unzip sudo apt upgrade sudo systemctl enable docker