The Container Orchestrator provider allows the user to pull images from private and password-protected registries. The following document will provide examples of how to connect to some popular registries.
These guides make the following two assumptions.
That you have already configured the Container Orchestrator and have a container instance already created. Please see the usage doc, to learn the basics of the orchestrator.
That the image you are trying to pull supports the architecture of the gateway.
- have a Docker Hub account (its credentials), and a private image ready to pull.
- Populate the image name field. The username containing the private image must be placed before the image name separated by a forward slash. This is demonstrated below:
- Image Name:
<Docker-Hub username>/<image name>for example
- Populate the credential fields:
- Authentication Registry URL: This field should be left blank.
- Authentication Username: Your Docker Hub username.
- Password: Your Docker Hub password.
- Have access to an Amazon ECR instance.
- Have the AWS-CLI tool installed and appropriately configured on your computer.
- Have access to your AWS ECR web console.
Sign in to your amazon web console, navigate to ECR and identify which container you will like to pull onto the gateway. Copy the URI of the container. This URI will reveal the information required for the following steps. Here is how to decode the URI
<identifier>.dkr.ecr.<ecr-region>.amazonaws.com/<directory>/<image name>:<image tag>.
Generating an AWS-ECR access password. Open a terminal window on the machine with aws-cli installed and enter the following command
aws ecr get-login-password --region <ecr-region>. Your ECR region can be found by inspecting the container URI string copied in the previous step. This command will return a long string which will be used as the repo password in the gateway.
Populating information on the gateway.
- Image Name: enter the full URI without the tag.
- Image Tag: enter only the image tag found at the end of the URI
- Authentication Registry URL: Paste only the part of the URI before the image name
- Authentication Username: will be
- Password: will be the string created in step two.
A fully configured container set to pull AWS will look like the following.
Updated about 1 month ago