create

docker.secret.create(name, file, driver=None, labels={}, template_driver=None)

Creates a python_on_whales.Secret.

Returns

A python_on_whales.Secret object.


inspect

docker.secret.inspect(x)

Returns one or more python_on_whales.Secret based on an ID or name.

Arguments

  • x Union[str, List[str]]: One or more IDs/names.

list

docker.secret.list(filters={})

Returns all secrets as a List[python_on_whales.Secret].


remove

docker.secret.remove(x)

Removes one or more secrets

Arguments

  • x Union[python_on_whales.Secret, str, List[Union[python_on_whales.Secret, str]]]: One or more secrets. Name, ids or python_on_whales.Secret objects are valid inputs.