Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin digest for images #354

Open
Thadir opened this issue Jun 10, 2024 · 1 comment
Open

Pin digest for images #354

Thadir opened this issue Jun 10, 2024 · 1 comment

Comments

@Thadir
Copy link

Thadir commented Jun 10, 2024

Its common in docker wolrd to be aible to put the digest in a image to make sure that when the label is updated by remote you still have garantee nothing changed.

E.g.

'''
config {
image = "eclipse-temurin:17-alpine@sha256:3502ec51946589e5dbfcee9b8a69e8db0b92992657c4de22783913734015d554"
}
'''

Especialy when consernd on behavior and security this is a nice to have.

@shoenig
Copy link
Member

shoenig commented Jun 10, 2024

Hi @Thadir it is already possible to specify an image by hash instead of by tag, e.g.

image = "docker://redis@sha256:9ab1297933c78915584ecdaaaca2007cdb5a50effdbd66083309868ec947d0ce"

would be the hash version of

redis:7.0.15-alpine3.20

for linux/amd64.

What you cannot do with the podman driver is specify both the hash and the image tag.

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

No branches or pull requests

2 participants