In this step, you will install Docker. This is required for the next step to build a container and push it to Amazon ECR.
sudo amazon-linux-extras install docker
Skip step 3 if using Cloud9. Go directly to step 4.
sudo usermod -a -G docker ssm-user
sudo service docker start
Skip step 5 if using Cloud9. Go directly to step 6.
Choose Terminate and Connect to pick up the new docker group permissions. Your new session will have the appropriate docker group permissions.
Verify that the you can run Docker commands without sudo.
Now you have successfully installed Docker.
Continue to the next section to build and push the container.