Skip to content

error pulling and saving library/busybox: 'signatures' when using digest #320

@ixdy

Description

@ixdy

I'm attempting to update our busybox dependency.

$ docker pull busybox:latest
latest: Pulling from library/busybox
Digest: sha256:1669a6aa7350e1cdd28f972ddad5aceba2912f589f19a090ac75b7083da748db
Status: Image is up to date for busybox:latest

so I update our WORKSPACE to the following:

docker_pull(
    name = "official_busybox",
    digest = "sha256:1669a6aa7350e1cdd28f972ddad5aceba2912f589f19a090ac75b7083da748db",
    registry = "index.docker.io",
    repository = "library/busybox",
)

This then fails:

ERROR: [elided]/src/k8s.io/kubernetes/build/BUILD:49:2: no such package '@official_busybox//image': Pull command failed: F0212 14:45:56.746001   51438 __main__.py:107] Error pulling and saving image index.docker.io/library/busybox@sha256:1669a6aa7350e1cdd28f972ddad5aceba2912f589f19a090ac75b7083da748db: 'signatures'
 ([elided]/.cache/bazel/_bazel_jgrafton/75e5737b0f848bf1b7c3ab3303c8bf72/external/puller/file/puller.par --directory [elided]/bazel/_bazel_jgrafton/75e5737b0f848bf1b7c3ab3303c8bf72/external/official_busybox/image --name index.docker.io/library/busybox@sha256:1669a6aa7350e1cdd28f972ddad5aceba2912f589f19a090ac75b7083da748db) and referenced by '//build:kube-controller-manager-internal'                                                                                                                       

Interestingly, if I use tag = "latest" instead of digest = "sha256:..." it seems to work.

Metadata

Metadata

Assignees

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