Install Docker On Aws Ec2 Ubuntu

I faced the same issue. My configuration is T4Large - ARM64 - Ubuntu Server 20.04 LTS and I resolved using the following command $ sudo apt install docker-compose This will install the 1.25.0 version of docker compose which is a bit older. Install Docker CE on Amazon Linux 2. Before we start the update, let’s ensure our system is updated. Sudo yum -y update. Once the update has been done, reboot your system. Sudo systemctl reboot. Wait for reboot to be completed then login back and continue with the installation of Docker CE on Amazon Linux 2.

  1. Install Docker On Aws Ec2 Ubuntu Free
  2. Install Docker On Aws Ec2 Ubuntu Windows 7

Install Docker On Aws Ec2 Ubuntu Free

Last active Sep 14, 2021
Ubuntu 16.04
Aws

Install Docker On Aws Ec2 Ubuntu Windows 7

#!/bin/bash
# Install docker
apt-get update
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg sudo apt-key add -
add-apt-repository
'deb [arch=amd64] https://download.docker.com/linux/ubuntu
$(lsb_release -cs)
stable'
apt-get update
apt-get install -y docker-ce
usermod -aG docker ubuntu
# Install docker-compose
curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
# READ MORE: https://docs.docker.com/install/linux/docker-ce/ubuntu/
# To check: grep 'cloud-init[' /var/log/syslog
# OR: less /var/log/cloud-init-output.log
# Manually add user to docker group
# sudo usermod -aG docker $USER
Ec2
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment