Files
docker-cli/cli/command/stack
Sebastiaan van Stijn d0bea64185 Preserve resolved image-digest if QueryRegistry == false
When re-deploying a stack without re-resolving the image digest,
the service's ContainerSpec was updated with the image-reference
as specified in the stack/compose file.

As a result, the image-digest that was resolved in a previous
deploy was overwritten, causing the service to be re-deployed.

This patch preserves the previously resolve image-digest
by copying it from the current service spec.

A unit test is also added to verify that the image information
in the service spec is not updated if QueryRegistry is disabled.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-08-03 18:49:07 +02:00
..
2017-05-08 15:57:50 -04:00
2017-06-20 14:31:00 -04:00
2017-04-17 18:07:56 -04:00
2017-07-05 13:40:47 -04:00
2017-07-12 11:37:35 -04:00