How to remove all secrets from a service
Not a bug!
¿How to remove all secrets from a service? Without losing labels, networks, anything.
In docker tools it's easy:
docker service update --secret-rm SECRETS_NAME SERVICE_NAME
Docker-client I not know how to do it
ServiceSpec spec = ServiceSpec.builder()
.name(service.spec().name())
.taskTemplate(service.spec().taskTemplate())
.mode(service.spec().mode())
.endpointSpec(service.spec().endpointSpec())
.updateConfig(service.spec().updateConfig())
.build();
docker.updateService(service.id(), service.version().index(), spec);
¿ Secrets is an ImmutableList<SecretBind> ?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
+1
Hi @marcomsousa
Since this project went on mature status, please re-open this issue (if it still stands) to https://github.com/dmandalidis/docker-client. Thanks