Releases: docker/docker-py
Releases · docker/docker-py
2.0.1
List of PRs / issues for this release
Bugfixes
- Fixed a bug where forward slashes in some .dockerignore patterns weren't
being parsed correctly on Windows - Fixed a bug where
Mount.parse_mount_stringwould never set the read_only
parameter on the resultingMount. - Fixed a bug where
Mount.parse_mount_stringwould incorrectly mark host
binds as being ofvolumetype.
2.0.0
List of PRs / issues for this release
Breaking changes
- Dropped support for Python 2.6
docker.Clienthas been renamed todocker.APIClientdocker.from_envnow creates aDockerClientinstance instead of an
APIClientinstance.- Removed HostConfig parameters from
APIClient.start - The minimum supported API version is now 1.21 (Engine version 1.9.0+)
- The name of the
pippackage is nowdocker(was:docker-py). New
versions of this library will only be published asdockerfrom now on. docker.ssladapteris nowdocker.transport.ssladapter- The package structure has been flattened in certain cases, which may affect
import fordocker.authanddocker.utils.ports docker.utils.typeshas been moved todocker.typescreate_host_config,create_ipam_poolandcreate_ipam_confighave been
removed fromdocker.utils. They have been replaced by the following classes
indocker.types:HostConfig,IPAMPoolandIPAMCOnfig.
Features
- Added a high-level, user-focused API as
docker.DockerClient. See the
README and documentation for more information. - Implemented
update_nodemethod inAPIClient. - Implemented
remove_nodemethod inAPIClient. - Added support for
restart_policyinupdate_container. - Added support for
labelsandshmsizeinbuild. - Added support for
attachableincreate_network - Added support for
healthcheckincreate_container. - Added support for
isolationinHostConfig. - Expanded support for
pid_modeinHostConfig(now supports arbitrary
values for API version >= 1.24). - Added support for
optionsinIPAMConfig - Added a
HealthCheckclass todocker.typesto be used in
create_container. - Added an
EndpointSpecclass todocker.typesto be used in
create_serviceandupdate_service.
Bugfixes
- Fixed a bug where auth information would not be properly passed to the engine
during abuildif the client used a credentials store. - Fixed an issue with some exclusion patterns in
build. - Fixed an issue where context files were bundled with the wrong permissions
when callingbuildon Windows. - Fixed an issue where auth info would not be retrieved from its default location
on Windows. - Fixed an issue where lists of
networksincreate_serviceand
update_servicewouldn't be properly converted for the engine. - Fixed an issue where
endpoint_configincreate_serviceand
update_servicewould be ignored. endpoint_configincreate_serviceandupdate_servicehas been
deprecated in favor ofendpoint_spec- Fixed a bug where
constraintsin aTaskTemplateobject wouldn't be
properly converted for the engine. - Fixed an issue where providing a dictionary for
envinContainerSpec
would provoke anAPIErrorwhen sent to the engine. - Fixed a bug where providing an
env_filecontaining empty lines in
create_containerwould raise an exception. - Fixed a bug where
detachwas being ignored byexec_start.