You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we specify only tags for docker images in containers/versions.yml. This means that when an image changes on DockerHub, it may also change in our deployment and break things.
The problem is that, unlike in git, it's a common practice to update a Docker image and change it to point at the new version. For example when a new release of Alpine Linux is released, postgres:10.4-alpine is likely to be rebuilt but without getting a new tag.
To alleviate this, we should start specifying image digest along with the tag.
Add the digest after the @ symbol. You can get digests of currently downloaded images with docker images --digests
Let's move the extra parts like alpine or fat to the version string. This will make updating the tags easier.
When updating images, remember to update both the tag and the digest. Docker ignores the tag if the digest is specified - it's only there for our information.
The text was updated successfully, but these errors were encountered:
Currently we specify only tags for docker images in
containers/versions.yml
. This means that when an image changes on DockerHub, it may also change in our deployment and break things.The problem is that, unlike in git, it's a common practice to update a Docker image and change it to point at the new version. For example when a new release of Alpine Linux is released,
postgres:10.4-alpine
is likely to be rebuilt but without getting a new tag.To alleviate this, we should start specifying image digest along with the tag.
Currently our versions look like this:
They should now look like this:
@
symbol. You can get digests of currently downloaded images withdocker images --digests
alpine
orfat
to the version string. This will make updating the tags easier.When updating images, remember to update both the tag and the digest. Docker ignores the tag if the digest is specified - it's only there for our information.
The text was updated successfully, but these errors were encountered: