Resolution
A successful Test only shows that Octopus can authenticate to the feed. Package search also needs the right feed type, Region, repository name, permissions, and at least one tagged image. Work through the checks in this article, then confirm the result with the AWS CLI. If the CLI lists your images but Octopus doesn't, the problem is in the feed configuration. If the CLI fails, the problem is permissions. If the CLI returns nothing, the repository has no tagged images.
Symptom
You add an AWS Elastic Container Registry (ECR) or Amazon ECR Public feed. Save and test reports success, but package search for the feed returns no images.
If you type the package ID and version manually, the deployment may fail with an error like this:
The endpoint returned Not Found with content {"errors":[{"code":"NAME_UNKNOWN","message":"The repository with name 'library/<image-name>' does not exist in the registry with id '<account-id>'"}]}
Scope: when this is the right article
Use this article when all of these are true:
- The feed Test succeeds.
- Package search returns an empty list, or a repository you expect isn't listed.
- The feed uses the AWS Elastic Container Registry feed type, or a Docker Container Registry feed that points at
public.ecr.aws.
Cause
Empty search results usually come from one of these conditions:
-
Wrong feed type for the registry. Octopus has a dedicated feed type for private ECR. Amazon ECR Public (
public.ecr.aws) has no dedicated feed type. -
Repository name or path mismatch. The ECR repository name must match the package ID in Octopus. Image names copied from Docker Hub, such as
library/<image-name>, don't exist in ECR unless you created a repository with that exact name. - Wrong registry or Region. Private ECR repositories belong to one account and one Region. A feed pointed at a different Region sees none of them.
- Missing list permissions. The identity can authenticate but can't list repositories or images.
- Worker credentials with no server credentials. In Octopus 2025.2 and later, if Execute using the credentials configured on the worker is set to Yes and the feed has no credentials on the Octopus Server, package search finds nothing.
- Only untagged images. Octopus lists images by tag, because each tag is a package version. An image with no tag has no version to list.
Diagnosis and fix
1. Check the feed type and registry URL
-
In the Octopus Web Portal, go to Deploy ➜ Manage ➜ External Feeds and open the feed.
-
For a private registry, confirm the feed type is AWS Elastic Container Registry and the Region matches the Region where you created the repository. Private registry URLs use the format
<account-id>.dkr.ecr.<region>.amazonaws.com. -
For Amazon ECR Public, Octopus has no dedicated feed type. Create a Docker Container Registry feed, set the URL to
https://public.ecr.aws, and select no authentication. This is a workaround and has its limits: -
Package search and the feed Test search don't return images, because the Docker and AWS APIs differ.
- Version search doesn't work at release creation or deployment. Enter the version, such as
latest, in the step or when you deploy. A deployment fails if no version is set.
Public image paths use the format public.ecr.aws/<registry-alias>/<repository-name>. Use <registry-alias>/<repository-name> as the package ID.
2. Check the repository name and image format
- In the AWS Console or CLI, copy the exact repository name. List private repositories with:
aws ecr describe-repositories --region <region> --query "repositories[].repositoryName"
-
Make sure the package ID in your Octopus step matches the repository name exactly, including any namespace such as
team/app. Don't add alibrary/prefix unless the repository is named that way. -
Make sure the image name comes from ECR. An image name from Docker Hub, GitHub Container Registry, or another registry format won't resolve in ECR.
3. Confirm the AWS identity and permissions
- Check which identity the feed uses. This is the access key, the OIDC role in Role ARN, or the worker's IAM role. Then run this with the same identity:
aws sts get-caller-identity
Compare the Account and Arn values with the account and role you expect.
-
Confirm the identity has these permissions for a private registry:
-
ecr:GetAuthorizationToken ecr:DescribeRepositoriesecr:DescribeImages-
ecr:ListImages -
For Amazon ECR Public, token requests need
ecr-public:GetAuthorizationTokenandsts:GetServiceBearerToken. -
Check the Execute using the credentials configured on the worker setting on the feed. If it's Yes, add credentials to the feed so package search runs from the Octopus Server. You can still enter the full package ID and version manually, and the worker acquires the package at deployment time.
4. Check that the repository has tagged images
Run these commands with the same identity the feed uses.
For private ECR:
aws ecr list-images --repository-name <repository-name> --region <region> --filter tagStatus=TAGGED
aws ecr describe-images --repository-name <repository-name> --region <region>
For Amazon ECR Public, use us-east-1 for every command:
aws ecr-public describe-repositories --region us-east-1
aws ecr-public describe-images --repository-name <repository-name> --region us-east-1
In the output, look for a value in imageTags for each image. An image with an empty or missing imageTags list is untagged. Octopus doesn't list it. Push the image again with a tag, for example:
docker tag <image-id> <account-id>.dkr.ecr.<region>.amazonaws.com/<repository-name>:<tag>
docker push <account-id>.dkr.ecr.<region>.amazonaws.com/<repository-name>:<tag>
5. Compare the CLI result with Octopus
| CLI result | What it means | What to do |
|---|---|---|
| Lists tagged images, but Octopus search is empty | Feed configuration | Re-check the feed type, Region, package ID, and the worker credentials setting |
| Returns an access denied error | Permissions | Add the actions from step 3 to the identity |
| Returns the repository but no images, or only untagged images | Repository contents | Push an image with a tag |
Returns RepositoryNotFoundException
|
Name or Region | Check the repository name and Region |
What to collect before you contact support
If the checks don't resolve the problem, send these details to Octopus Support:
- Your Octopus version, and whether the instance is Octopus Cloud or self-hosted
- The feed type and settings, including Region, authentication method, and the Execute using the credentials configured on the worker value. Don't include access keys or secrets.
- The package ID you searched for and the full image path in your registry
- The output of the commands in step 4
- The output of
aws sts get-caller-identity - The raw task log from any deployment that failed to acquire the package
- The time you ran the search, in UTC
Verify
- In the Octopus Web Portal, go to Deploy ➜ Manage ➜ External Feeds and open the feed.
- Select Save and test, then search for the repository name. Your tagged images appear in the results. For the Amazon ECR Public workaround, skip the search and create a release with the version entered manually.
- Create a release that uses the package and run the deployment. The Acquire packages step finishes successfully.
Related
- AWS Elastic Container Registry (ECR) feed guide covers the feed type, credentials, OIDC, and required permissions.
- Docker container registries explains how Octopus searches Docker feeds.
-
List images in an Amazon ECR repository is the AWS CLI reference for the
list-imagescommand. -
Describe images in an Amazon ECR repository is the AWS CLI reference for the
describe-imagescommand. -
Amazon ECR Public registry authentication explains the
us-east-1requirement and token permissions.