In this step, you will create a private container repository in Amazon Elastic Container Registry (Amazon ECR) and upload your newly created container image for use with AWS Batch. The AWS Management Console is used for these steps, however later in the workshop you will use AWS CLI commands to accomplish these tasks.
You should see a set of four commands similar to the following.
Cut and paste each of the commands for your repository (similar to those shown above) into a teminal on your Cloud9 instance and execute them.
You can safely skip the second command as you have previously built your container image.
The commands have the the following effects:
The first command obtains your credentials and logs into the repository.
The second command builds and tags the container image from the definition contained in the Dockerfile in the current directory.
The third command tags the image in the reposiory.
The fourth command “pushes” (uploads) the image to the repository.
After successfully executing these commands, if you click on your repository you will see the image stress-ng:latest image that you just pushed.
Click on the icon next to “Copy URI” to copy the URI of your container image. .
This Image URI will be used when you create a Batch Job definition in the next stage of this workshop.
If you click on the latest image tag you will reveal the details of your image including its URI.