Linux Shout published a tutorial about installing Docker CE on AWS EC2 (Amazon Linux 2) to run containers.
Install Docker CE on AWS EC2 (Amazon Linux 2) to run containers
Here are the steps to download and install Docker Engine CE on AWS EC2 Amazon Linux 2 for creating container virtual machines using command.
Install Docker CE on AWS EC2 (Amazon Linux 2) to run containers