Skip to content

Resolve digests without pulling image - #6454

Merged
chris-crone merged 1 commit into
docker:masterfrom
rumpl:digest-distribution
Jan 21, 2019
Merged

chris-crone merged 1 commit into
docker:masterfrom
rumpl:digest-distribution

Conversation

@rumpl

@rumpl rumpl commented Jan 11, 2019

Copy link
Copy Markdown
Member

If there is no image locally docker-compose --resolve-image-digests
will try and get the digest from the repository.

Signed-off-by: Djordje Lukic [email protected]

Resolves #5818

@chris-crone chris-crone left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chris-crone
chris-crone requested a review from shin- January 11, 2019 14:09

@shin- shin- left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple things

Comment thread compose/bundle.py Outdated
raise UserError(
"Digest not found for service '{service}'. "
"Repository does not exist or may require 'docker login'"
.format(service=service.name, action=action))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

action isn't used here and can be removed

Comment thread compose/service.py Outdated
"rebuild this image you must use `docker-compose build` or "
"`docker-compose up --build`.".format(self.name))

def distribution(self):

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would go for a more explicit name here, like get_image_registry_data()

If there is no image locally `docker-compose --resolve-image-digests`
will try and get the digest from the repository.

Fixes docker#5818

Signed-off-by: Djordje Lukic <[email protected]>
@rumpl
rumpl force-pushed the digest-distribution branch from b2a6461 to 0c20fc5 Compare January 15, 2019 13:24
@chris-crone
chris-crone merged commit 718346f into docker:master Jan 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ability to resolve image digests without pulling entire images

3 participants