aws-cli
aws-cli copied to clipboard
Push fails when image already exists on repository with tag and is immutable
Describe the bug
Pushing an image to a tag where it already exists reports an error
Expected Behavior
If the image is identical, then it should report that it already exists without an error
Current Behavior
An error is reported with return code 254
Reproduction Steps
- Put an image with a tag
- Put the the same image with the same tag
Possible Solution
Report that it already exists and return success
Additional Information/Context
No response
CLI version used
aws-cli/2.15.17 Python/3.11.7 Darwin/23.4.0 source/x86_64 prompt/off
Environment details (OS name and version, etc.)
macOS 14.4.1
Here's an issue from the docker repo: https://github.com/moby/buildkit/issues/3776