Docker image digests changing for image tags [DBZ-9326]
- Dominant language
- HTML
- Stars
- 6
- Forks
- 8
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 1
Description
Migrated from [DBZ-9326](https://issues.redhat.com/browse/DBZ-9326)
h1. Bug report
h2. What behavior do you expect?
We expect to be able to redeploy the exact same image over several days. We expect the Docker image to have stable version consistency.
We're using AWS ECS Fargate to host our Debezium. We've been surprised that our services are having deployment problems. After a few days, the images that it wants to download no longer exist.
AWS is trying to be very consistent, and only run exactly the same images. The sha256 of the image tags changes often.
[https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#ContainerDefinition-versionconsistency]
The above versionConsistency flag gives us a way to work around this behaviour. I'm raising it here, since I didn't see existing tickets about this.
h2. What behavior do you see?
```
docker pull 'quay.io/debezium/server@sha256:c9f3fbe2838b5b99caf734b868c03b69374bb6b545157f475aa12c96d6bdaf4d'
quay.io/debezium/server@sha256:c9f3fbe2838b5b99caf734b868c03b69374bb6b545157f475aa12c96d6bdaf4d: Pulling from debezium/server
Digest: sha256:c9f3fbe2838b5b99caf734b868c03b69374bb6b545157f475aa12c96d6bdaf4d
Status: Image is up to date for quay.io/debezium/server@sha256:c9f3fbe2838b5b99caf734b868c03b69374bb6b545157f475aa12c96d6bdaf4d
quay.io/debezium/server@sha256:c9f3fbe2838b5b99caf734b868c03b69374bb6b545157f475aa12c96d6bdaf4d
```
A couple hours later, and we get this:
```
docker pull 'quay.io/debezium/server@sha256:c9f3fbe2838b5b99caf734b868c03b69374bb6b545157f475aa12c96d6bdaf4d'
Error response from daemon: failed to resolve reference "quay.io/debezium/server@sha256:c9f3fbe2838b5b99caf734b868c03b69374bb6b545157f475aa12c96d6bdaf4d": quay.io/debezium/server@sha256:c9f3fbe2838b5b99caf734b868c03b69374bb6b545157f475aa12c96d6bdaf4d: not found
```
https://github.com/debezium/container-images
h2. How to reproduce the issue using our [tutorial|https://github.com/debezium/debezium-examples/tree/main/tutorial] deployment?
N/A
h1. Feature request or enhancement
h2. Which use case/requirement will be addressed by the proposed feature?
AWS ECS Fargate support. Improving this situation would make it easier for customers who are provisioning onto simple clusters with the default configuration.
h2. Implementation ideas (optional)
Mention the versionConsistency to make it easier for others to discover this.
Update the debezium/container-images so that it doesn't remove the existing images from quay.io.
Contributor guide
Research direction
Start by inspecting the debezium/container-images repository and its image publishing configuration. Review the AWS ECS Fargate versionConsistency context and the reported quay.io pull behavior. Done means existing image digests remain available instead of being removed, so the same image can be redeployed later.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, docker
- Domain
- cloud, devops, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100