mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-16 11:58:43 +00:00
Extends the tag@digest fix to also cover push operations in docker_image.py.
The push_image() method was passing combined tag@digest format directly to
the Docker API's /images/{name}/push endpoint, which fails with
"invalid tag format" errors.
This fix:
1. Imports build_pull_arguments() into docker_image.py
2. Uses the helper in push_image() before calling the API
3. When tag contains @ (but isn't a pure digest), passes the full
reference as the image name and omits the tag parameter
This complements the previous fix to pull_image() methods, ensuring
both pull and push operations handle tag@digest correctly.
|
||
|---|---|---|
| .. | ||
| _api | ||
| compose_v2_test_cases.py | ||
| test__compose_v2.py | ||
| test__copy.py | ||
| test__image_archive.py | ||
| test__logfmt.py | ||
| test__scramble.py | ||
| test__util.py | ||
| test_pull_image.py | ||