Posts
read more
How to Set Up Docker on an AWS Ubuntu EC2 Instance
Docker setup on AWS
Choose a Ubuntu AMI rather that Amazon Linux 2 (AL2), because there wasn’t a specific repository for AL2.
Found instructions for installing Docker on AL2 on https://docs.aws.amazon.com/AmazonECS/latest/developerguide/create-container-image.html#create-container-image-prerequisites
Install using the repository
From https://docs.docker.com/engine/install/ubuntu/#set-up-the-repository
sudo apt-get update
sudo apt-get install \
ca-certificates \
curl \
gnupg \
lsb-releaseAdd Docker’s official GPG key:
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpgUse the following command to set up the repository: