Reputation: 323
The document goes
Query the registry to resolve image digest and supported platforms ("always"|"changed"|"never")
But what does each value mean?
Upvotes: 4
Views: 3517
Reputation: 533
These values means the changes in images condition while deploying the stack. for example below is very small stack to deploy:
version: "3.3"
services:
redis:
image: redis:3.2.8
docker stack deploy -c test.yaml --resolve-image changed test
above stack deployed with the image condition= changes, means if docker found any change in image it will redeploy the stack. so three condition means:
1- always: always re-deploy irrespective of any changes
2- changed: only when if there are any changes in images
3- never: never irrespective of images changes
Hope It helps you to understands this.
Upvotes: 3