concourse / concourse/docker-image-resource

Cannot pull image with a new tag

Open
#373 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
162
Forks
250
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

For some reason docker-image does not see some images and i'm wonder why/whats wrong with them?
In some cases it does see images with one tag but ignores images with a different tag.

old image:
image

new image:
image

Obviously image is accessible from terminal

Reproduction steps

Here is image annotations info

new image:

          "Annotations": {
               "com.docker.official-images.bashbrew.arch": "amd64",
               "org.opencontainers.image.base.digest": "sha256:d21e934609de95ab75ba852128106ccf95ee7531e8b832b5f3b4e833d47a1ba2",
               "org.opencontainers.image.base.name": "docker.io/library/golang@sha256:9dd2625a1ff2859b8d8b01d8f7822c0f528942fe56cfe7a1e7c38d3b8d72d679",
               "org.opencontainers.image.created": "2024-10-01T17:43:12Z",
               "org.opencontainers.image.revision": "89de06f6dd2c4edb29f33bb7270bdcc8000cf58a",
               "org.opencontainers.image.source": "https://github.com/docker-library/golang.git#89de06f6dd2c4edb29f33bb7270bdcc8000cf58a:1.23/alpine3.20",
               "org.opencontainers.image.url": "https://hub.docker.com/_/golang",
               "org.opencontainers.image.version": "1.23.2-alpine3.20"
          },
          "ManifestType": "application/vnd.oci.image.manifest.v1+json",

old image:

          "Annotations": {},
          "ManifestType": "application/vnd.docker.distribution.manifest.v2+json",

New one built using podman while old images was build by docker (not sure if that does make any difference).
In both cases I used:
podman/docker build -t XXX --platform=linux/amd64 . on same linux machine

happy to share any other information that needed.

Debug logs do not show anything interesting:

Oct 29 21:46:42 webdevelop concourse[968449]: {"timestamp":"2024-10-29T20:46:42.971713513Z","level":"debug","source":"worker","message":"worker.volume-sweeper.tick.run.command-exited","data":{"command":"report-volumes","session":"7.94.3"}}
Oct 29 21:46:42 webdevelop concourse[968449]: {"timestamp":"2024-10-29T20:46:42.976900624Z","level":"debug","source":"worker","message":"worker.container-sweeper.tick.run.command-exited","data":{"command":"report-containers","session":"6.94.2"}}
Oct 29 21:46:42 webdevelop concourse[968449]: {"timestamp":"2024-10-29T20:46:42.982773840Z","level":"debug","source":"worker","message":"worker.volume-sweeper.tick.run.command-exited","data":{"command":"sweep-volumes","session":"7.94.5"}}
Oct 29 21:46:42 webdevelop concourse[968449]: {"timestamp":"2024-10-29T20:46:42.988207200Z","level":"debug","source":"worker","message":"worker.container-sweeper.tick.run.command-exited","data":{"command":"sweep-containers","session":"6.94.4"}}
Oct 29 21:46:46 webdevelop concourse[968449]: {"timestamp":"2024-10-29T20:46:46.281781742Z","level":"debug","source":"worker","message":"worker.beacon-runner.beacon.heartbeated","data":{"session":"4.1"}}
Oct 29 21:46:47 webdevelop concourse[968449]: {"timestamp":"2024-10-29T20:46:47.969621709Z","level":"debug","source":"worker","message":"worker.beacon-runner.beacon.keepalive.tick","data":{"session":"4.1.2"}}
Oct 29 21:46:52 webdevelop concourse[968449]: {"timestamp":"2024-10-29T20:46:52.968718153Z","level":"debug","source":"worker","message":"worker.beacon-runner.beacon.keepalive.tick","data":{"session":"4.1.2"}}
Oct 29 21:46:57 webdevelop concourse[968449]: {"timestamp":"2024-10-29T20:46:57.973194689Z","level":"debug","source":"worker","message":"worker.beacon-runner.beacon.keepalive.tick","data":{"session":"4.1.2"}}
Oct 29 21:47:02 webdevelop concourse[968449]: {"timestamp":"2024-10-29T20:47:02.970130120Z","level":"debug","source":"worker","message":"worker.beacon-runner.beacon.keepalive.tick","data":{"session":"4.1.2"}}
Oct 29 21:47:07 webdevelop concourse[968449]: {"timestamp":"2024-10-29T20:47:07.973765336Z","level":"debug","source":"worker","message":"worker.beacon-runner.beacon.keepalive.tick","data":{"session":"4.1.2"}}
Oct 29 21:47:12 webdevelop concourse[968449]: {"timestamp":"2024-10-29T20:47:12.969623482Z","level":"debug","source":"worker","message":"worker.beacon-runner.beacon.keepalive.tick","data":{"session":"4.1.2"}}
Oct 29 21:47:12 webdevelop concourse[968449]: {"timestamp":"2024-10-29T20:47:12.971730256Z","level":"debug","source":"worker","message":"worker.container-sweeper.tick.run.command-exited","data":{"command":"report-containers","session":"6.95.2"}}
Oct 29 21:47:12 webdevelop concourse[968449]: {"timestamp":"2024-10-29T20:47:12.971784446Z","level":"debug","source":"worker","message":"worker.volume-sweeper.tick.run.command-exited","data":{"command":"report-volumes","session":"7.95.3"}}
Oct 29 21:47:12 webdevelop concourse[968449]: {"timestamp":"2024-10-29T20:47:12.982567966Z","level":"debug","source":"worker","message":"worker.container-sweeper.tick.run.command-exited","data":{"command":"sweep-containers","session":"6.95.4"}}
Oct 29 21:47:12 webdevelop concourse[968449]: {"timestamp":"2024-10-29T20:47:12.982756014Z","level":"debug","source":"worker","message":"worker.volume-sweeper.tick.run.command-exited","data":{"command":"sweep-volumes","session":"7.95.5"}}
Oct 29 21:47:16 webdevelop concourse[968449]: {"timestamp":"2024-10-29T20:47:16.310694872Z","level":"debug","source":"worker","message":"worker.beacon-runner.beacon.heartbeated","data":{"session":"4.1"}}
Oct 29 21:47:17 webdevelop concourse[968449]: {"timestamp":"2024-10-29T20:47:17.969570974Z","level":"debug","source":"worker","message":"worker.beacon-runner.beacon.keepalive.tick","data":{"session":"4.1.2"}}
Expected behavior

docker-image should pull image without a problems

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue using the supplied podman/docker build commands and compare the OCI and Docker manifest annotations shown in the report. Trace how the docker-image resource handles image manifests and tags, then verify that an image built with podman and an OCI manifest can be pulled successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.