You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the secret to the service, with a custom file name: docker service update --secret-add source=mysecret,target=/custompath/mysecret
In Swarmpit, choose the service, and change value for replicas to 0, then Save the service
What happens:
upon inspecting the service with docker service inspect ..., the custom secret filename (.Spec.TaskTemplate.Secrets.File.Name), has been overwritten with the value of the secret name (.Spec.TaskTemplate.Secrets.SecretName).
Compare .Spec and .PreviousSpec to see more clearly. i.e. -
Steps to reproduce:
echo myval | docker secret create mysecret -
docker service update --secret-add source=mysecret,target=/custompath/mysecret
What happens:
docker service inspect ...
, the custom secret filename (.Spec.TaskTemplate.Secrets.File.Name), has been overwritten with the value of the secret name (.Spec.TaskTemplate.Secrets.SecretName).Compare .Spec and .PreviousSpec to see more clearly. i.e. -
vs
What should happen:
docker service inspect...
, the custom secret filename should have been preserved.The text was updated successfully, but these errors were encountered: