models.configs

Module Contents

Classes

Config() A config.
ConfigCollection() Configs on the Docker server.
class Config

A config.

__repr__()
name()
remove()

Remove this config.

Raises:
docker.errors.APIError
If config failed to remove.
class ConfigCollection

Configs on the Docker server.

create(**kwargs)
get(config_id)

Get a config.

Args:
config_id (str): Config ID.
Returns:
(Config): The config.
Raises:
docker.errors.NotFound
If the config does not exist.
docker.errors.APIError
If the server returns an error.
list(**kwargs)

List configs. Similar to the docker config ls command.

Args:
filters (dict): Server-side list filtering options.
Returns:
(list of Config): The configs.
Raises:
docker.errors.APIError
If the server returns an error.