mirror of https://github.com/docker/docker-py.git
8.6 KiB
8.6 KiB
ChangeLog
0.3.2
- Default API version is now 1.12 (support for docker 1.0)
- Added new methods
Client.get_imageandClient.load_image(docker saveanddocker load) - Added new method
Client.ping - Added new method
Client.resize Client.buildcan now be provided with a custom context using thecustom_contextparameter.- Added support for
memswap_limitparameter increate_container - Added support for
forceparameter inremove_container - Added support for
forceandnopruneparameters inremove_image - Added support for
timestampsparameter inlogs - Added support for
dns_searchparameter instart - Added support for
network_modeparameter instart - Added support for
sizeparameter incontainers - Added support for
volumes_fromanddnsparameters instart. As of API version >= 1.10, these parameters no longer belong tocreate_container Client.logsnow uses the logs endpoint when API version is sufficient
Bugfixes
- Fixed a bug in pull where the
repo:tagnotation wasn't interpreted properly - Fixed a bug in streaming methods with python 3 (unicode, bytes/str related)
- Fixed a bug in
Client.startwhere legacy notation for volumes wasn't supported anymore.
Miscellaneous
- The client now raises
DockerExceptions when appropriate. You can importDockerException(and its subclasses) from thedocker.errorsmodule to catch them if needed. docker.APIErrorhas been moved to the newdocker.errorsmodule as well.Client.insertis deprecated in API version > 1.11- Improved integration tests should now run much faster.
- There is now a single source of truth for the docker-py version number.
0.3.1
- Default API version is now 1.9
- Streaming responses no longer yield blank lines.
Client.create_containernow supports thedomainnameparameter.volumes_fromparameter inClient.create_containernow supports iterables.- Auth credentials are provided to the docker daemon when using
Client.build(new feature in API version 1.9)
Bugfixes
- Various fixes for response streams (
logs,pull, etc.). - Fixed a bug with
Client.pushwhen using API version < 1.5 - Fixed a bug with API version checks.
Miscellaneous
mockhas been removed from the runtime requirements.- Added installation instructions in the README.
0.3.0
- This version introduces breaking changes!
- Support for API version 1.7 through 1.9 (Docker 0.8.0+)
- Default API version is now 1.8
- The client has been updated to support Requests 2.x.
requests==2.2.1is now the recommended version. - Links can now be specified as tuples in
Client.start(see docs for more information) - Added support for various options in
Client.create_container(network_disabled,cpu_shares,working_dirandentrypoint) Client.attachhas been reworked to work similarly toClient.logsminus the historical data.- Logs can now be streamed using the
streamparameter. - Added support for
tcp://URLs as clientbase_url. - Various auth improvements.
- Added support for custom
Client.buildtimeout.
Bugfixes
- Fixed a bug where determining the protocol of a private registry would sometimes yield the wrong result.
- Fixed a bug where
Client.copywouldn't accept a dict as argument. - Fixed several streaming bugs.
- Removed unused parameter in
Client.import_image. - The client's
base_urlnow tolerates trailing slashes.
Miscellaneous
- Updated integration tests
- Small doc fixes
0.2.3
- Support for API version 1.6
- Added support for links
- Added support for global request timeout
- Added
signalparameter inClient.kill - Added support for
publish_all_portsinClient.start Client.pull,Client.pushandClient.buildcan be streamed now- Added support for websockets in
Client.attach - Fixed ports for Docker 0.6.5+
- Added
Client.eventsmethod (access to the/eventsendpoint) - Changed the way the ports and volumes are provided in
Client.startandClient.create_container̀to make them simpler and more intuitive.
Bugfixes
- Fixed a bug where private registries on HTTPS weren't handled properly
- Fixed a bug where auth would break with Python 3
Miscellaneous
- Test improvements
- Slight doc improvements
0.2.2
- Added support for the
rmparameter inClient.build - Added support for tarball imports in
Client.import_imagethroughdataparameter. - The
commandparameter inClient.create_containeris now optional (for containers that include a default run command)
Bugfixes
- Fixed Python 3 support
- Fixed a bug where anonymous push/pull would break when no authconfig is present
- Fixed a bug where the
quietparameter wouldn't be taken into account inClient.containers - Fixed a bug where
Client.pushwould break when pushing to private registries. - Removed unused
registryparameter inClient.pull. - Removed obsolete custom error message in
Client.create_container.
Miscellaneous
- docker-py is now unit-tested, and Travis-CI has been enabled on the source repository.
0.2.1
- Improvements to the
tox.inifile
Bugfixes
- Fixed a bug where the package would fail with an
ImportErrorif requests was installed usingapt-get - Fixed a bug where
Client.buildwould fail if given apathparameter. - Fixed several bugs in
Client.login. It should now work with API versions 1.4, 1.5. - Please note that
Client.logincurrently doesn't write auth to the.dockercfgfile, thus auth is not persistent when using this method.
0.2.0
- This version introduces breaking changes!
Client.kill,Client.remove_container,Client.remove_image,Client.restart,Client.start,Client.stopandClient.waitdon't support varargs anymore.- Added commands
Client.topandClient.copy - Added
lxc_confparameter toClient.start - Added support for authentication in
Client.pull(API version >=1.5) - Added support for privileged containers.
- Error management overhaul. The new version should be more consistent and
- All methods that expected a container ID as argument now also support a dict
containing an
Idkey. - Added license header to python files.
- Several
README.mdupdates.
Bugfixes
- Fixed several bugs with auth config parsing.
- Fixed a bug in
Client.pushwhere it would raise an exception if the auth config wasn't loaded. - Fixed a bug in
Client.pullwhere private registry images wouldn't be parsed properly if it contained port information.
0.1.5
Client.buildnow uses tempfiles to store build context instead of storing it in memory- Added
nocacheoption toClient.build Client.remove_containernow raises an exception when trying to remove a running containerClient.create_containernow accepts dicts for theenvironmentparameter
Bugfixes
- Fixed a bug in
Client.create_containeron Python 2.6 where unicode commands would fail to be parsed - Fixed a bug in
Client.buildwhere thetagparameter would not be taken into account
0.1.4
- Added support for API connection through UNIX socket (default for docker 0.5.2+)
0.1.3
- The client now tries to load the auth config from
~/.dockercfg. This is necessary to use the push command if API version is >1.0
0.1.2
- Added a
quiet parametertoClient.build(mirrors theqparameter in the API)
0.1.1
- Fixed a bug where the build command would list tar contents before sending the request
- Fixed a bug in
Client.port
0.1.0
- This version introduces breaking changes!
- Switched to server side build system
- Removed the BuilderClient
- Added support for contextual builds
- Added support for remote URL builds
- Added python 3 support
- Added bind mounts support
- Added API version support
- Fixed a bug where
Client.portwould fail if provided with a port of type number - Fixed a bug where
Client._post_jsonwouldn't set the Content-Type header toapplication/json
0.0.6
- Added support for custom loggers in
Client.build - Added
Client.attachcommand - Added support for
ADDcommand in builder - Fixed a bug in
Client.logs - Improved unit tests
0.0.5
- Added tag support for the builder
- Use
shlexto parse plain string commands when creating a container - Fixed several bugs in the builder
- Fixed the
quietoption inClient.images - Unit tests
0.0.4
- Improved error reporting
0.0.3
- Fixed a bug in
Client.tag - Fixed a bug where generated images would be removed after a successful build
0.0.2
- Implemented first version of the builder client