Releases: docker/docker-py
Releases · docker/docker-py
2.6.0
List of PRs / issues for this release
Features
- Added support for
mountsinAPIClient.create_host_configand
DockerClient.containers.run - Added support for
consistency,tmpfs_sizeandtmpfs_modewhen
creating mount objects. Mountobjects now support thetmpfsandnpipetypes.- Added support for
extra_hostsin thebuildmethods. - Added support for the configs API:
- In
APIClient:create_config,inspect_config,remove_config,
configs - In
DockerClient:configs.create,configs.get,configs.listand
theConfigmodel. - Added
configsparameter toContainerSpec. Each item in theconfigs
list must be adocker.types.ConfigReferenceinstance.
- In
- Added support for the following parameters when creating a
ContainerSpec
object:groups,open_stdin,read_only,stop_signal,helathcheck,
hosts,ns_config,configs,privileges. - Added the following configuration classes to
docker.types:
ConfigReference,DNSConfig,Privileges,SwarmExternalCA. - Added support for
driverinAPIClient.create_secretand
DockerClient.secrets.create. - Added support for
scopeinAPIClient.inspect_networkand
APIClient.create_network, and theirDockerClientequivalent. - Added support for the following parameters to
create_swarm_spec:
external_cas,labels,signing_ca_cert,signing_ca_key,
ca_force_rotate,autolock_managers,log_driver. These additions
also apply toDockerClient.swarm.init. - Added support for
insert_defaultsinAPIClient.inspect_serviceand
DockerClient.services.get.
Bugfixes
- Fixed a bug where reading a 0-length frame in log streams would incorrectly
interrupt streaming. - Fixed a bug where the
idmember onSwarmobjects wasn't being populated. - Fixed a bug that would cause some data at the beginning of an upgraded
connection stream (attach,exec_run) to disappear.
2.5.1
List of PRs / issues for this release
Bugfixes
- Fixed a bug where patterns ending with
**in.dockerignorewould
raise an exception - Fixed a bug where using
attachwith thestreamargument set toFalse
would raise an exception
2.5.0
List of PRs / issues for this release
Features
- Added support for the
squashparameter inAPIClient.buildand
DockerClient.images.build. - When using API version 1.23 or above,
load_imagewill now return a
generator of progress as JSONdicts. remove_imagenow returns the content of the API's response.
Bugfixes
- Fixed an issue where the
auto_removeparameter in
DockerClient.containers.runwas not taken into account. - Fixed a bug where
.dockerignorepatterns starting with a slash
were ignored. - Fixed an issue with the handling of
**patterns in.dockerignore - Fixed a bug where building
FROMa private Docker Hub image when not
using a cred store would fail. - Fixed a bug where calling
create_serviceorupdate_servicewith
task_templateas adictwould raise an exception. - Fixed the handling of TTY-enabled containers in
attachandexec_run. DockerClient.containers.runwill no longer attempt to stream logs if the
log driver doesn't support the operation.
Miscellaneous
- Added extra requirements for better TLS support on some platforms.
These can be installed or required through thedocker[tls]notation.
2.4.2
List of issues / PRs for this release
Bugfixes
- Fixed a bug where the
split_portutility would raise an exception when
passed a non-string argument.
2.4.0
List of PRs / issues for this release
Features
- Added support for the
targetandnetwork_modeparameters in
APIClient.buildandDockerClient.images.build. - Added support for the
runtimeparameter inAPIClient.create_container
andDockerClient.containers.run. - Added support for the
ingressparameter inAPIClient.create_networkand
DockerClient.networks.create. - Added support for
placementconfiguration indocker.types.TaskTemplate. - Added support for
ttyconfiguration indocker.types.ContainerSpec. - Added support for
start_periodconfiguration indocker.types.Healthcheck. - The
credHelperssection in Docker's configuration file is now recognized. - Port specifications including IPv6 endpoints are now supported.
Bugfixes
- Fixed a bug where instantiating a
DockerClientusingdocker.from_env
wouldn't correctly set the default timeout value. - Fixed a bug where
DockerClient.secretswas not accessible as a property. - Fixed a bug where
DockerClient.buildwould sometimes return the wrong
image. - Fixed a bug where values for
HostConfig.nano_cpusexceeding 2^32 would
raise a type error. Image.tagnow properly returnsTruewhen the operation is successful.APIClient.logsandContainer.logsnow raise an exception if thesince
argument uses an unsupported type instead of ignoring the value.- Fixed a bug where some methods would raise a
NullResourceexception when
the resource ID was provided using a keyword argument.
Miscellaneous
APIClientinstances can now be pickled.
2.3.0
2.3.0
List of PRs / issues for this release
Features
- Added support for the following
HostConfigparameters:volume_driver,
cpu_count,cpu_percent,nano_cpus,cpuset_mems. - Added support for
verboseparameter inAPIClient.inspect_networkand
DockerClient.networks.get. - Added support for the
environmentparameter inAPIClient.exec_create
andContainer.exec_run - Added
reload_configmethod toAPIClient, that lets the user reload
theconfig.jsondata from disk. - Added
labelsproperty to theImageandContainerclasses. - Added
imageproperty to theContainerclass.
Bugfixes
- Fixed a bug where setting
replicasto zero inServiceModewould not
register as a valid entry. - Fixed a bug where
DockerClient.images.buildwould report a failure after
a successful build if atagwas set. - Fixed an issue where
DockerClient.images.pullwould fail to return the
corresponding image object if atagwas set. - Fixed a bug where a list of
mountsprovided toAPIClient.create_service
would sometimes be parsed incorrectly. - Fixed a bug where calling
Network.containerswould crash when no containers
were associated with the network. - Fixed an issue where
Network.connectandNetwork.disconnectwould not
accept some of the documented parameters. - Fixed a bug where the
cpuset_cpusparameter would not be properly set in
APIClient.create_host_config.
Miscellaneous
- The invalid
networksargument inDockerClient.containers.runhas been
replaced with a (working) singularnetworkargument.
2.2.1
2.2.1
List of PRs / issues for this release
Bugfixes
- Fixed a bug where the
status_codeattribute ofAPIErrorexceptions would
not reflect the expected value. - Fixed an issue where the
eventsmethod would time out unexpectedly if no
data was sent by the engine for a given amount of time.
2.2.0
2.2.0
List of PRs / issues for this release
Features
- Default API version has been bumped to
1.26(Engine 1.13.1+) - Upgrade plugin:
- Added the
upgrade_pluginmethod to theAPIClientclass - Added the
upgrademethod to thePluginclass
- Added the
- Service logs:
- Added the
service_logsmethod to theAPIClientclass - Added the
logsmethod to theServiceclass
- Added the
- Added the
dfmethod toAPIClientandDockerClient - Added support for
initandinit_pathparameters inHostConfig
andDockerClient.containers.run - Added support for
hostnameparameter inContainerSpecand
DockerClient.service.create - Added support for port range to single port in port mappings
(e.g.8000-8010:80)
Bugfixes
- Fixed a bug where a missing container port in a port mapping would raise
an unexpectedTypeError - Fixed a bug where the
eventsmethod inAPIClientandDockerClient
would not respect custom headers set inconfig.json
2.1.0
2.1.0
List of PRs / issues for this release
Features
- Added the following pruning methods:
- In
APIClient:prune_containers,prune_images,prune_networks,
prune_volumes - In
DockerClient:containers.prune,images.prune,networks.prune,
volumes.prune
- In
- Added support for the plugins API:
- In
APIClient:configure_plugin,create_plugin,disable_plugin,
enable_plugin,inspect_plugin,pull_plugin,plugins,
plugin_privileges,push_plugin,remove_plugin - In
DockerClient:plugins.create,plugins.get,plugins.install,
plugins.list, and thePluginmodel.
- In
- Added support for the secrets API:
- In
APIClient:create_secret,inspect_secret,remove_secret,
secrets - In
DockerClient:secret.create,secret.get,secret.listand
theSecretmodel. - Added
secretsparameter toContainerSpec. Each item in thesecrets
list must be adocker.types.SecretReferenceinstance.
- In
- Added support for
cache_frominAPIClient.buildand
DockerClient.images.build. - Added support for
auto_removeandstorage_optin
APIClient.create_host_configandDockerClient.containers.run - Added support for
stop_timeoutinAPIClient.create_containerand
DockerClient.containers.run - Added support for the
forceparameter inAPIClient.remove_volumeand
Volume.remove - Added support for
max_failure_ratioandmonitorinUpdateConfig - Added support for
force_updateinTaskTemplate - Made
nameparameter optional inAPIClient.create_volumeand
DockerClient.volumes.create
Bugfixes
- Fixed a bug where building from a directory containing socket-type files
would raise an unexpectedAttributeError. - Fixed an issue that was preventing the
DockerClient.swarm.initmethod to
take into account arguments passed to it. Image.tagnow correctly returns a boolean value upon completion.- Fixed several issues related to passing
volumesin
DockerClient.containers.run - Fixed an issue where
DockerClient.image.buildwouldn't return anImage
object even when the build was successful
2.0.2
2.0.2
List of PRs / issues for this release
Bugfixes
- Installation of the package now fails if the
docker-pypackage is
installed in order to prevent obscure naming conflicts when both
packages co-exist. - Added missing
filtersparameter toAPIClient.networks. - Resource objects generated by the
DockerClientare now hashable. - Fixed a bug where retrieving untagged images using
DockerClient
would raise aTypeErrorexception. modeparameter increate_serviceis now properly converted to
a valid data type for the Engine API. UseServiceModefor advanced
configurations.- Fixed a bug where the decoded
APIClient.eventsstream would sometimes raise
an exception when a container is stopped or restarted.