We need to be able to reach the Docker registry where the images to be deployed are stored. The easiest way of ensuring that the Docker registry is reachable is to use the Docker registry in the same service.
You can still use the Docker Hub registry, but using a registry in the same cloud provider is typically easier as it's better integrated. It will also help in terms of authentication.
We need to configure an Elastic Container Registry (ECR), using the following steps:
- Log into the AWS console and search for Kubernetes or ECR:
- Create a new registry called frontend. It will create a full URL, which you will need to copy:
- We need to make our local docker log in the registry. Note that aws ecr get-login will return a docker command that will log you in, so copy it and paste:
$ aws ecr get-login --no-include-email
<command>
$ docker...