Secrets
Docker Swarm secret operations. Requires a Swarm manager; this API never initializes Swarm. HTTP errors return the original SDK Result. Transport/decoding failures and cancellation throw. The caller owns the client. Operations are never retried automatically.
Functions
Link copied to clipboard
Creates a secret. Data in spec must already be Base64 encoded; no encoding is performed here. Docker validates payload size, names and driver options. Treat specs and responses as sensitive.
Link copied to clipboard
Updates labels using the version index from the latest inspect response. Copy the inspected spec and change only labels; other fields must remain unchanged. Stale versions are reported as Docker errors. No re-inspection, merging or retry is performed.