Re:Docker Desktop no longer free for large companies
by rileymichael on Tuesday August 31, 2021 @06:25PM
(#28374413)
Tags are mutable, digests aren't.
[ Parent
| on HN ]
Re:Docker Desktop no longer free for large companies
by _joel on Tuesday August 31, 2021 @07:48PM
(#28374988)
Why, how often do you change tags after you've built a container and for what reason if so?
Re:Docker Desktop no longer free for large companies
by jonjonsonjr on Tuesday August 31, 2021 @09:40PM
(#28375637)
Digests cryptographically guarantee that you get the correct content, which prevents both malicious tampering (mitm, stolen credentials, etc) or accidental mutations. This is why "immutable tags" are a bad substitute and an oxymoron.
There are also better caching properties when using content addressable identifiers. For example with kubernetes pull policies, using IfNotPresent and deploying by digest means you don't even have to check with the registry to initialize a pod if the image is already cached, which can improve startup latency.
Re:Docker Desktop no longer free for large companies
by darkwater on Wednesday September 01, 2021 @05:44AM
(#28377932)
> There are also better caching properties when using content addressable identifiers. For example with kubernetes pull policies, using IfNotPresent and deploying by digest means you don't even have to check with the registry to initialize a pod if the image is already cached, which can improve startup latency.
While agree on the unquoted part, this is true also for human-readable (aka mutable-that-should-be-immutable) tags, when that pull policy is set (which is by default for everything that is not `latest`)