Skip to content

Failing to pull image from private repo #4178

@joebancf

Description

@joebancf

If I have a yml file as follows:

kernel:
  image: xyz.dkr.ecr.us-east-1.amazonaws.com/my-kernel-image:whatever
  cmdline: whatever

In 1.7.1, linuxkit build correctly pulls this image from AWS using my Docker credentials.

After 1.8.0, linuxkit build fails with the following error:

Extract kernel image: xyz.dkr.ecr.us-east-1.amazonaws.com/my-kernel-image:whatever                                                                                      
Error: failed to extract kernel image and tarball: could not pull image xyz.dkr.ecr.us-east-1.amazonaws.com/my-kernel-image:whatever: error getting manifest for image 9
xyz.dkr.ecr.us-east-1.amazonaws.com/my-kernel-image:whatever: GET https://index.docker.io/v2/my-kernel-image/whatever: UNAUTHORIZED: authentication required; [map[Action:pull Class: Name:cf-labs/linuxkit/kernel Type:repository]]
2025/09/24 14:56:28 error during command execution: failed to extract kernel image and tarball: could not pull image xyz.dkr.ecr.us-east-1.amazonaws.com/my-kernel-image:whatever: error getting manifest for image xyz.dkr.ecr.us-east-1.amazonaws.com/my-kernel-image:whatever: GET https://index.docker.io/v2/my-kernel-image/manifests/whatever: UNAUTHORIZED: authentication required; [map[Action:pull Class: Name:cf-labs/linuxkit/kernel Type:repository]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions