In this step, you will install Docker. This is required for the next step to build a container and push it to Amazon ECR.
You will also step through the procedure below, but you can also find the instructions to install docker by following this guide and ensure that the pre-requisites shown on this page are fulfilled.
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.
docker info
Now you have successfully installed Docker.
Continue to the next section to build and push the container.