concourse / concourse/docker-image-resource

Image get does not set the tag after the image is pulled by SHA

Open
#136 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

When an image is pulled it is pulled by SHA which is right because this is how it is versioned. It is not tagged after that though which makes it impossible to be referred to from the cache.

Using docker such command will resolve the issue:

docker image tag <IMAGE_ID> :

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

Start by tracing the image-pull path that retrieves the image by SHA and compare its resulting reference with the requested repository and tag. Verify the equivalent of docker image tag <IMAGE_ID> <REPOSITORY>:<TAG> is performed, then confirm the pulled image can be referred to from the cache.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.