Skip to content

Conversation

shin-
Copy link
Contributor

@shin- shin- commented Jun 23, 2017

List of PRs / issues for this release

Features

  • Added support for the target and network_mode parameters in
    APIClient.build and DockerClient.images.build.
  • Added support for the runtime parameter in APIClient.create_container
    and DockerClient.containers.run.
  • Added support for the ingress parameter in APIClient.create_network and
    DockerClient.networks.create.
  • Added support for placement configuration in docker.types.TaskTemplate.
  • Added support for tty configuration in docker.types.ContainerSpec.
  • Added support for start_period configuration in docker.types.Healthcheck.
  • The credHelpers section in Docker's configuration file is now recognized.
  • Port specifications including IPv6 endpoints are now supported.

Bugfixes

  • Fixed a bug where instantiating a DockerClient using docker.from_env
    wouldn't correctly set the default timeout value.
  • Fixed a bug where DockerClient.secrets was not accessible as a property.
  • Fixed a bug where DockerClient.build would sometimes return the wrong
    image.
  • Fixed a bug where values for HostConfig.nano_cpus exceeding 2^32 would
    raise a type error.
  • Image.tag now properly returns True when the operation is successful.
  • APIClient.logs and Container.logs now raise an exception if the since
    argument uses an unsupported type instead of ignoring the value.
  • Fixed a bug where some methods would raise a NullResource exception when
    the resource ID was provided using a keyword argument.

Miscellaneous

  • APIClient instances can now be pickled.

lawliet89 and others added 30 commits May 16, 2017 16:13
This is related to the multi-stage image building
that was introduced in 17.05 (API 1.29).

This allows a user to specify the stage of a multi-stage
Dockerfile to build for, rather than the final stage.

Signed-off-by: Yong Wen Chua <me@yongwen.xyz>
Signed-off-by: Joffrey F <joffrey@docker.com>
Signed-off-by: Joffrey F <joffrey@docker.com>
Add `target` argument to image building
Signed-off-by: Joffrey F <joffrey@docker.com>
Add support for placement preferences and platforms in TaskTemplate
Signed-off-by: Alexey Rokhin <arokhin@mail.ru>
Signed-off-by: allencloud <allen.sun@daocloud.io>
…tus-code-from-500-to-400

update node remove test status code from 500 to >= 400
…rect image_id depending on docer build output Signed-off-by: Chris Ottinger <chris.ottinger@team.telstra.com>
…fies that the build method uses the last success message for extracting the image id

Signed-off-by: Chris Ottinger <chris.ottinger@team.telstra.com>
Signed-off-by: Chris Ottinger <chris.ottinger@team.telstra.com>
Signed-off-by: Joffrey F <joffrey@docker.com>
In the case of a defined format with specific parts, a regular
expression with named capturing bits make reasoning about the
parts simpler than imlementing a parser from scratch.

Signed-off-by: kaiyou <pierre@jaury.eu>
The test was copied from greybyte@ccec87c

Signed-off-by: kaiyou <pierre@jaury.eu>
Signed-off-by: Madhuri Kumari <madhuri.kumari@intel.com>
The `from_env` method on the `docker` module passed `None` as the
value for the `timeout` keyword argument which overrode the default
value in the initialiser, taken from `constants` module.

This sets the default in the initialiser to `None` and adds logic
to set that, in the same way that `version` is handled.

Signed-off-by: grahamlyons <graham@grahamlyons.com>
We'd like to be able to pass `None` as a value for `timeout` because
it has meaning to the `requests` library
(http://docs.python-requests.org/en/master/user/advanced/#timeouts)

Signed-off-by: grahamlyons <graham@grahamlyons.com>
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
The 2.18.0 version of requests breaks compatibility with docker-py:
psf/requests#4160

[This block](https://github.com/shazow/urllib3/blob/master/urllib3/connectionpool.py#L292) of code from urllib3 fails:
```python
    def _get_timeout(self, timeout):
        """ Helper that always returns a :class:`urllib3.util.Timeout` """
        if timeout is _Default:
            return self.timeout.clone()

        if isinstance(timeout, Timeout):
            return timeout.clone()
        else:
            # User passed us an int/float. This is for backwards compatibility,
            # can be removed later
            return Timeout.from_float(timeout)
```

In the case of requests version 2.18.0:
`timeout` was an instance of `urllib3.util.timeout.Timeout`
`Timeout` was an instance of `requests.packages.urllib3.util.timeout.Timeout`

When the `isinstance(timeout, Timeout)` check fails the `urllib3.util.timeout.Timeout` object is passed as the `connection` argument to `requests.packages.urllib3.util.timeout.Timeout.from_float`.

Signed-off-by: Matt Oberle <matt.r.oberle@gmail.com>
Only pull the 'latest' tag when testing images
excludes requests 2.18.0 from compatible versions
Signed-off-by: Joffrey F <joffrey@docker.com>
…er_stop

Ensure default timeout is used by API Client
Signed-off-by: Joffrey F <joffrey@docker.com>
Signed-off-by: Chris Mark <chrismarkou92@gmail.com>
This patch returns the check made against api when tagging an image as stated in documentation

Signed-off-by: Olivier Sallou <olivier.sallou@irisa.fr>
shin- and others added 23 commits June 16, 2017 11:32
Closes #1588, image.tag does not return anything
Raising error in case of invalid value of since kwarg on Container.logs
allow ipv6 :: notation in split_port (using re)
Add support for ``runtime`` config
Fix misleading build method docs
Add support for ingress in create_network
Signed-off-by: Joffrey F <joffrey@docker.com>
Update check_resource decorator to account for new resource names
Add support for start_period in Healthcheck spec
fix #1625 where ImageCollection.build() could return with incorrect image id
Signed-off-by: Joffrey F <joffrey@docker.com>
When using the multiprocessing module, it throws an AttributeError,
complaining that the object does not have the attribute used. This adds
the missing attributes and allows them to be pickled.

Signed-off-by: An Ha <zero579911@gmail.com>
Signed-off-by: Joffrey F <joffrey@docker.com>
Make sure data is written in prune test so space can be reclaimed
Add network_mode support to Client.build
Signed-off-by: Joffrey F <joffrey@docker.com>
Signed-off-by: Joffrey F <joffrey@docker.com>
Signed-off-by: Boik <qazbnm456@gmail.com>
…dns_opt_of_create_container

Correct the description of dns_opt option of create_container
Support credHelpers section in config.json
Add support for ContainerSpec.TTY
Signed-off-by: Joffrey F <joffrey@docker.com>
@shin- shin- added this to the 2.4.0 milestone Jun 23, 2017
@docker docker deleted a comment from GordonTheTurtle Jun 23, 2017
@shin- shin- removed the dco/no label Jun 28, 2017
@shin- shin- merged commit 706e2ca into release Jun 28, 2017
@shin- shin- deleted the 2.4.0-release branch November 2, 2017 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.