Set up access to Amazon Elastic Container Registry (ECR)

  1. Set env variable to point to config file (default /var/dockerql/config.json)

  2. Edit your /var/dockerql/config.json file and add an entry for an instance of dockerhub:

{
  "registries": [
    {
      "name": {registryName},
      "type": "ecr",
      "namespace": {namespace},
      "username": {apikKey},
      "password": {apiSecret}
    }
  ]
}

Examples

For simplicity let’s assume {registryName} is set to my-registry.

Find repos in a specific region

To get the list of repos in us-east-1 we will use the following.

SELECT * FROM repos WHERE namespace = "us-east-1" AND registry="my-registry"

Next steps