This page explains how to install and test Docker on Amazon Linux 2 over ssh based session.
install docker on aws instance | AWS | Amazon linux | Docker Tutorial
How to install Docker on Amazon Linux
How to Install Docker in Centos 7 linux
2 AWS ECS Master Class in Hindi | How to Install Docker in Ubuntu CentOS Amazon Linux