Install docker on AWS EC2

Introduction

Here are the steps to install docker on AWS EC2.

Installation procedure

Terminal


#yum update
sudo yum update -y

#install docker
sudo amazon-linux-extras install docker -y

#Start docker
sudo service docker start

# ec2-Add docker to user's secondary group
#* This makes it possible to use docker commands without using sudo.
sudo usermod -a -G docker ec2-user

#Reconnect the terminal once

#Confirmation of installation
docker info

Recommended Posts

Install docker on AWS EC2
Install Docker on AWS Ubunt 20.04 LTS
Install Docker on Manjaro
Install Docker on Windows 10 PRO
Install Docker on Ubuntu Server 20.04
Install docker-compose on a Graviton 2 instance of AWS EC2
Deploy laravel using docker on EC2 on AWS ① (Create EC2 instance)
Install openjdk8 on Docker image (Debian)
Install AWS IoT Greengrass on Ubuntu
To beginners launching Docker on AWS
Run the AWS CLI on Docker
Deploy laravel using docker on EC2 on AWS ② (Elastic IP acquisition-linking)
Gcc error solution with "pip install annoy" on AWS EC2
Install docker and docker-compose on Alpine Linux
EFS mount on AWS Ubuntu EC2 (amazon-efs-utils)
Liberty on Docker
Deployed using Docker + Rails + AWS (EC2 + RDS)
Deploy laravel using docker on EC2 on AWS ③ (SSH connection ~ Docke-compose installation)
Launch docker container on EC2 (personal memorandum)
Build an environment with Docker on AWS
Try the Docker environment on AWS ECS
EC2 on Docker-compose
Redmine on Docker
Just install Laravel8 on docker in PHP8 environment
Install Docker on Raspberry Pi 4 and Raspberry Pi OS 64bit
Environment construction command memo with Docker on AWS
I installed Docker on EC2 and started it
Install Java, Apache, Tomcat9 on EC2 (Amazon Linux2)
I tried installing docker on an EC2 instance
Recipe for deploying Rails apps on AWS EC2
Install gradle on mac
Install Corretto 8 on Windows
Install OpenJDK on macOS
Launch Rails on EC2
Docker installation on CentOS 6
Install Golang on CentOS 8
Install pyqt5 on ubuntu
python notes on docker
Install Neo4j 4.1.3 on centOS
[CentOS7] Install aws cli
Install Vertica 10.0 on CentOS 6.10
Install Ruby on Ubuntu 20.04
Install nginx on centOS7
Install lombok on SpringToolSuite4
Install Python 3 on CentOS 7
Install kuromoji on CentOS7
Install Autoware on Ubuntu 18.04.5
Install Mattermost on CentOS 7
Install PostGIS 2.5.5 on CentOS7
Install jpndistrict on CentOS 7
Install openjdk11 on mac
Install Homebrew on Ubuntu 20.04
M.S. docker on Windows
Install Redmine 4.1.1 on CentOS 7
Install OpenJDK 8 on mac
Smokeping Install on CentOS7
Install PostgreSQL 13 on CentOS 7.5
Docker installation on WSL2
Install Composer with Docker
Run phpunit on Docker
Memo to build a Servlet environment on AWS EC2