Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docker to 7.0.0 #330

Closed
wants to merge 1 commit into from
Closed

Conversation

pyup-bot
Copy link
Collaborator

@pyup-bot pyup-bot commented Dec 8, 2023

This PR updates docker from 4.2.2 to 7.0.0.

Changelog

7.0.0

Upgrade Notes (from 6.x) ⚠️ 
- Removed SSL version (`ssl_version`) and explicit hostname check (`assert_hostname`) options (3185)
- `assert_hostname` has not been used since Python 3.6 and was removed in 3.12
- Python 3.7+ supports TLSv1.3 by default
- Websocket support is no longer included by default (3123)
- Use `pip install docker[websockets]` to include `websocket-client` dependency
- By default, `docker-py` hijacks the TCP connection and does not use Websockets
- Websocket client is only required to use `attach_socket(container, ws=True)`
- Python 3.7 no longer supported (reached end-of-life June 2023) (3187)

Features ✨ 
- Python 3.12 support (3185)
- Full `networking_config` support for `containers.create()` (3121)
 - Replaces `network_driver_opt` (added in 6.1.0)
- Add `health()` property to container that returns status (e.g. `unhealthy`) (3147)
- Add `pause` option to `container.commit()` (3159)
- Add support for bind mount propagation (e.g. `rshared`, `private`) (3164)
- Add support for `filters`, `keep_storage`, and `all` in `prune_builds()` on API v1.39+ (3192)

Bugfixes 🐛 
- Consistently return `docker.errors.NotFound` on 404 responses (3156)
- Validate tag format before push (3191)

Miscellaneous 🔧 
- Upgraded urllib3 version in `requirements.txt` (used for development/tests) (3183)
- Documentation typo fixes & formatting improvements (3130)
- Fixed integration test compatibility for newer Moby engine versions (3165, 3166, 3145, 3169, 3170)
- Switch to [ruff](https://github.com/astral-sh/ruff) for linting (#3126)

What's Changed
* fix user_guides/multiplex.rst by Longin-Yu in https://github.com/docker/docker-py/pull/3130
* tests/integration: fix flake8 failures (E721 do not compare types), and fix Dockerfile for debian "bookworm"  by thaJeztah in https://github.com/docker/docker-py/pull/3166
* tests/integration: update some tests for updated error-messages by thaJeztah in https://github.com/docker/docker-py/pull/3165
* README: fix link for CI status badge by thaJeztah in https://github.com/docker/docker-py/pull/3167
* fix: use response.text to get string rather than bytes by mndeveci in https://github.com/docker/docker-py/pull/3156
* feat: add pause option to commit api by VincentLeeMax in https://github.com/docker/docker-py/pull/3159
* build(deps): Bump requests from 2.28.1 to 2.31.0 by dependabot in https://github.com/docker/docker-py/pull/3136
* test: remove APT_MIRROR from Dockerfile by thaJeztah in https://github.com/docker/docker-py/pull/3145
* Switch linting to ruff, use f-strings, fix lint errors and possible bugs by akx in https://github.com/docker/docker-py/pull/3126
* integration: Fix bad subnet declaration by akerouanton in https://github.com/docker/docker-py/pull/3169
* integration: Remove test_create_check_duplicate by akerouanton in https://github.com/docker/docker-py/pull/3170
* Support all `Network.connect` parameters in `client.containers.run` and `client.containers.create` by Skazza94 in https://github.com/docker/docker-py/pull/3121
* feat: move websocket-client to extra dependency by akx in https://github.com/docker/docker-py/pull/3123
* Add health property to Containers model by TurnrDev in https://github.com/docker/docker-py/pull/3147
* build(deps): Bump urllib3 from 1.26.11 to 1.26.18 by dependabot in https://github.com/docker/docker-py/pull/3183
* breaking: Python 3.12 compatibility & remove custom SSL adapter by milas in https://github.com/docker/docker-py/pull/3185
* chore: add changelog for 7.0.0 by milas in https://github.com/docker/docker-py/pull/3186
* chore: remove support for Python 3.7 by milas in https://github.com/docker/docker-py/pull/3187
* chore: update MAINTAINERS and remove CODEOWNERS by milas in https://github.com/docker/docker-py/pull/3188
* chore: fix missing setuptools in CI by milas in https://github.com/docker/docker-py/pull/3189
* Fix 3153 - Validate tag before build using OCI regex by LombardiDaniel in https://github.com/docker/docker-py/pull/3191
* feat: accept filters and keep_storage in prune_builds by emranbm in https://github.com/docker/docker-py/pull/3192
* chore: update changelog and maintainer by milas in https://github.com/docker/docker-py/pull/3193

New Contributors
* Longin-Yu made their first contribution in https://github.com/docker/docker-py/pull/3130
* mndeveci made their first contribution in https://github.com/docker/docker-py/pull/3156
* VincentLeeMax made their first contribution in https://github.com/docker/docker-py/pull/3159
* akerouanton made their first contribution in https://github.com/docker/docker-py/pull/3169
* TurnrDev made their first contribution in https://github.com/docker/docker-py/pull/3147
* LombardiDaniel made their first contribution in https://github.com/docker/docker-py/pull/3191
* emranbm made their first contribution in https://github.com/docker/docker-py/pull/3192

**Full Changelog**: https://github.com/docker/docker-py/compare/6.1.3...7.0.0

7.0.0b3

**ℹ️  See 7.0.0b2 for full release notes**

Upgrade Notes (from 6.x) ⚠️ 
- Removed SSL version (`ssl_version`) and explicit hostname check (`assert_hostname`) options (3185)
- `assert_hostname` has not been used since Python 3.6 and was removed in 3.12
- Python 3.7+ supports TLSv1.3 by default
- Websocket support is no longer included by default (3123)
- Use `pip install docker[websockets]` to include `websocket-client` dependency
- By default, `docker-py` hijacks the TCP connection and does not use Websockets
- Websocket client is only required to use `attach_socket(container, ws=True)`
- Python 3.7 no longer supported (reached end-of-life June 2023) (3187)

Features ✨ 
- Add support for `filters`, `keep_storage`, and `all` in `prune_builds()` on API v1.39+ (3192)

Bugfixes 🐛 
- Validate tag format before push (3191)

---

Full Changelog
* Fix 3153 - Validate tag before build using OCI regex by LombardiDaniel in https://github.com/docker/docker-py/pull/3191
* feat: accept filters and keep_storage in prune_builds by emranbm in https://github.com/docker/docker-py/pull/3192

**Commit Log**: https://github.com/docker/docker-py/compare/7.0.0b2...7.0.0b3

New Contributors
* LombardiDaniel made their first contribution in https://github.com/docker/docker-py/pull/3191
* emranbm made their first contribution in https://github.com/docker/docker-py/pull/3192

7.0.0b2

ℹ️  **This is identical to `7.0.0b1`, which was not correctly released due to a CI pipeline issue.**

Upgrade Notes ⚠️ 
- Removed SSL version (`ssl_version`) and explicit hostname check (`assert_hostname`) options (3185)
- `assert_hostname` has not been used since Python 3.6 and was removed in 3.12
- Python 3.7+ supports TLSv1.3 by default
- Websocket support is no longer included by default (3123)
- Use `pip install docker[websockets]` to include `websocket-client` dependency
- By default, `docker-py` hijacks the TCP connection and does not use Websockets
- Websocket client is only required to use `attach_socket(container, ws=True)`
- Python 3.7 no longer supported (reached end-of-life June 2023) (3187)

Features ✨ 
- Python 3.12 support (3185)
- Full `networking_config` support for `containers.create()` (3121)
 - Replaces `network_driver_opt` (added in 6.1.0)
- Add `health()` property to container that returns status (e.g. `unhealthy`) (3147)
- Add `pause` option to `container.commit()` (3159)
- Add support for bind mount propagation (e.g. `rshared`, `private`) (3164)

Bugfixes 🐛 
- Consistently return `docker.errors.NotFound` on 404 responses (3156)

Miscellaneous 🔧 
- Upgraded urllib3 version in `requirements.txt` (used for development/tests) (3183)
- Documentation typo fixes & formatting improvements (3130)
- Fixed integration test compatibility for newer Moby engine versions (3165, 3166, 3145, 3169, 3170)
- Switch to [ruff](https://github.com/astral-sh/ruff) for linting (#3126)

Full Changelog
* fix user_guides/multiplex.rst by Longin-Yu in https://github.com/docker/docker-py/pull/3130
* tests/integration: fix flake8 failures (E721 do not compare types), and fix Dockerfile for debian "bookworm"  by thaJeztah in https://github.com/docker/docker-py/pull/3166
* tests/integration: update some tests for updated error-messages by thaJeztah in https://github.com/docker/docker-py/pull/3165
* README: fix link for CI status badge by thaJeztah in https://github.com/docker/docker-py/pull/3167
* fix: use response.text to get string rather than bytes by mndeveci in https://github.com/docker/docker-py/pull/3156
* feat: add pause option to commit api by VincentLeeMax in https://github.com/docker/docker-py/pull/3159
* build(deps): Bump requests from 2.28.1 to 2.31.0 by dependabot in https://github.com/docker/docker-py/pull/3136
* test: remove APT_MIRROR from Dockerfile by thaJeztah in https://github.com/docker/docker-py/pull/3145
* Switch linting to ruff, use f-strings, fix lint errors and possible bugs by akx in https://github.com/docker/docker-py/pull/3126
* integration: Fix bad subnet declaration by akerouanton in https://github.com/docker/docker-py/pull/3169
* integration: Remove test_create_check_duplicate by akerouanton in https://github.com/docker/docker-py/pull/3170
* Support all `Network.connect` parameters in `client.containers.run` and `client.containers.create` by Skazza94 in https://github.com/docker/docker-py/pull/3121
* feat: move websocket-client to extra dependency by akx in https://github.com/docker/docker-py/pull/3123
* Add health property to Containers model by TurnrDev in https://github.com/docker/docker-py/pull/3147
* build(deps): Bump urllib3 from 1.26.11 to 1.26.18 by dependabot in https://github.com/docker/docker-py/pull/3183
* breaking: Python 3.12 compatibility & remove custom SSL adapter by milas in https://github.com/docker/docker-py/pull/3185
* chore: add changelog for 7.0.0 by milas in https://github.com/docker/docker-py/pull/3186
* chore: remove support for Python 3.7 by milas in https://github.com/docker/docker-py/pull/3187
* chore: update MAINTAINERS and remove CODEOWNERS by milas in https://github.com/docker/docker-py/pull/3188

New Contributors
* Longin-Yu made their first contribution in https://github.com/docker/docker-py/pull/3130
* mndeveci made their first contribution in https://github.com/docker/docker-py/pull/3156
* VincentLeeMax made their first contribution in https://github.com/docker/docker-py/pull/3159
* akerouanton made their first contribution in https://github.com/docker/docker-py/pull/3169
* TurnrDev made their first contribution in https://github.com/docker/docker-py/pull/3147

**Full Changelog**: https://github.com/docker/docker-py/compare/6.1.3...7.0.0b2

7.0.0b1

Upgrade Notes ⚠️ 
- Removed SSL version (`ssl_version`) and explicit hostname check (`assert_hostname`) options (3185)
- `assert_hostname` has not been used since Python 3.6 and was removed in 3.12
- Python 3.7+ supports TLSv1.3 by default
- Websocket support is no longer included by default (3123)
- Use `pip install docker[websockets]` to include `websocket-client` dependency
- By default, `docker-py` hijacks the TCP connection and does not use Websockets
- Websocket client is only required to use `attach_socket(container, ws=True)`
- Python 3.7 no longer supported (reached end-of-life June 2023) (3187)

Features ✨ 
- Python 3.12 support (3185)
- Full `networking_config` support for `containers.create()` (3121)
 - Replaces `network_driver_opt` (added in 6.1.0)
- Add `health()` property to container that returns status (e.g. `unhealthy`) (3147)
- Add `pause` option to `container.commit()` (3159)
- Add support for bind mount propagation (e.g. `rshared`, `private`) (3164)

Bugfixes 🐛 
- Consistently return `docker.errors.NotFound` on 404 responses (3156)

Miscellaneous 🔧 
- Upgraded urllib3 version in `requirements.txt` (used for development/tests) (3183)
- Documentation typo fixes & formatting improvements (3130)
- Fixed integration test compatibility for newer Moby engine versions (3165, 3166, 3145, 3169, 3170)
- Switch to [ruff](https://github.com/astral-sh/ruff) for linting (#3126)

Full Changelog
* fix user_guides/multiplex.rst by Longin-Yu in https://github.com/docker/docker-py/pull/3130
* tests/integration: fix flake8 failures (E721 do not compare types), and fix Dockerfile for debian "bookworm"  by thaJeztah in https://github.com/docker/docker-py/pull/3166
* tests/integration: update some tests for updated error-messages by thaJeztah in https://github.com/docker/docker-py/pull/3165
* README: fix link for CI status badge by thaJeztah in https://github.com/docker/docker-py/pull/3167
* fix: use response.text to get string rather than bytes by mndeveci in https://github.com/docker/docker-py/pull/3156
* feat: add pause option to commit api by VincentLeeMax in https://github.com/docker/docker-py/pull/3159
* build(deps): Bump requests from 2.28.1 to 2.31.0 by dependabot in https://github.com/docker/docker-py/pull/3136
* test: remove APT_MIRROR from Dockerfile by thaJeztah in https://github.com/docker/docker-py/pull/3145
* Switch linting to ruff, use f-strings, fix lint errors and possible bugs by akx in https://github.com/docker/docker-py/pull/3126
* integration: Fix bad subnet declaration by akerouanton in https://github.com/docker/docker-py/pull/3169
* integration: Remove test_create_check_duplicate by akerouanton in https://github.com/docker/docker-py/pull/3170
* Support all `Network.connect` parameters in `client.containers.run` and `client.containers.create` by Skazza94 in https://github.com/docker/docker-py/pull/3121
* feat: move websocket-client to extra dependency by akx in https://github.com/docker/docker-py/pull/3123
* Add health property to Containers model by TurnrDev in https://github.com/docker/docker-py/pull/3147
* build(deps): Bump urllib3 from 1.26.11 to 1.26.18 by dependabot in https://github.com/docker/docker-py/pull/3183
* breaking: Python 3.12 compatibility & remove custom SSL adapter by milas in https://github.com/docker/docker-py/pull/3185
* chore: add changelog for 7.0.0 by milas in https://github.com/docker/docker-py/pull/3186
* chore: remove support for Python 3.7 by milas in https://github.com/docker/docker-py/pull/3187
* chore: update MAINTAINERS and remove CODEOWNERS by milas in https://github.com/docker/docker-py/pull/3188

New Contributors
* Longin-Yu made their first contribution in https://github.com/docker/docker-py/pull/3130
* mndeveci made their first contribution in https://github.com/docker/docker-py/pull/3156
* VincentLeeMax made their first contribution in https://github.com/docker/docker-py/pull/3159
* akerouanton made their first contribution in https://github.com/docker/docker-py/pull/3169
* TurnrDev made their first contribution in https://github.com/docker/docker-py/pull/3147

**Full Changelog**: https://github.com/docker/docker-py/compare/6.1.3...7.0.0b1

6.1.3

🐛 Bugfixes
* Fix eventlet compatibility (3132)

What's Changed
* fix: eventlet compatibility by tito in https://github.com/docker/docker-py/pull/3132

New Contributors
* tito made their first contribution in https://github.com/docker/docker-py/pull/3132

**Full Changelog**: https://github.com/docker/docker-py/compare/6.1.2...6.1.3

6.1.2

🐛 Bugfixes
* Fix for socket timeouts on long `docker exec` calls (3125)
* Respect `timeout` param on Windows (3112)

Full Changelog
* Use windows api to honour timeouts (fixes 3111) by ImogenBits in https://github.com/docker/docker-py/pull/3112
* Avoid socket timeouts when executing commands by loicleyendecker in https://github.com/docker/docker-py/pull/3125
* docs: update changelog by milas in https://github.com/docker/docker-py/pull/3127

New Contributors
* ImogenBits made their first contribution in https://github.com/docker/docker-py/pull/3112

**Full Changelog**: https://github.com/docker/docker-py/compare/6.1.1...6.1.2

6.1.1

ℹ️ Upgrade Notes (6.1.x)
- Errors are no longer returned during client initialization if the credential helper cannot be found. A warning will be emitted instead, and an error is returned if the credential helper is used.

🐛 Bugfixes
- Fix `containers.stats()` hanging with `stream=True`
- Correct return type in docs for `containers.diff()` method

What's Changed
* api: update return type of `diff` method by john-b-yang in https://github.com/docker/docker-py/pull/3115
* Fix container.stats infinite blocking on stream mode by RazCrimson in https://github.com/docker/docker-py/pull/3120

New Contributors
* john-b-yang made their first contribution in https://github.com/docker/docker-py/pull/3115
* RazCrimson made their first contribution in https://github.com/docker/docker-py/pull/3120

**Full Changelog**: https://github.com/docker/docker-py/compare/6.1.0...6.1.1

6.1.0

ℹ️ Upgrade Notes
- Errors are no longer returned during client initialization if the credential helper cannot be found. A warning will be emitted instead, and an error is returned if the credential helper is used.

✨ Features
- Python 3.11 support
- Use `poll()` instead of `select()` on non-Windows platforms
- New API fields
- `network_driver_opt` on container run / create
- `one-shot` on container stats
- `status` on services list

🐛 Bugfixes
- Support for requests 2.29.0+ and urllib3 2.x
- Do not strip characters from volume names
- Fix connection leak on `container.exec_*` operations
- Fix errors closing named pipes on Windows

What's Changed
* Add support for Python 3.11 by hugovk in https://github.com/docker/docker-py/pull/3064
* Avoid stripping characters in volume names by loicleyendecker in https://github.com/docker/docker-py/pull/3073
* docs: fix wrong command syntax in code annotation by serieznyi in https://github.com/docker/docker-py/pull/3081
* build(deps): Bump setuptools from 63.2.0 to 65.5.1 by dependabot in https://github.com/docker/docker-py/pull/3082
* fix(store): warn on init instead of throw by nomagick in https://github.com/docker/docker-py/pull/3080
* exec: fix file handle leak with container.exec_* APIs by Lekensteyn in https://github.com/docker/docker-py/pull/2320
* Add `network_driver_opt` to client.containers run and create by Skazza94 in https://github.com/docker/docker-py/pull/3083
* Add `one-shot` to container API `stats` by aroxby-wayscript in https://github.com/docker/docker-py/pull/3089
* Add `status` parameter to services list API by lorinbucher in https://github.com/docker/docker-py/pull/3093
* socket: fix for errors on pipe close in Windows by milas in https://github.com/docker/docker-py/pull/3099
* put_archive: note the data may also be a stream by akx in https://github.com/docker/docker-py/pull/2478
* Use poll() instead of select(), unless Windows. by I-question-this in https://github.com/docker/docker-py/pull/2865
* Make compatible with requests 2.29.0 and urllib3 2.0 by felixfontein in https://github.com/docker/docker-py/pull/3116

New Contributors
* loicleyendecker made their first contribution in https://github.com/docker/docker-py/pull/3073
* serieznyi made their first contribution in https://github.com/docker/docker-py/pull/3081
* nomagick made their first contribution in https://github.com/docker/docker-py/pull/3080
* Lekensteyn made their first contribution in https://github.com/docker/docker-py/pull/2320
* aroxby-wayscript made their first contribution in https://github.com/docker/docker-py/pull/3089
* lorinbucher made their first contribution in https://github.com/docker/docker-py/pull/3093
* akx made their first contribution in https://github.com/docker/docker-py/pull/2478
* I-question-this made their first contribution in https://github.com/docker/docker-py/pull/2865

**Full Changelog**: https://github.com/docker/docker-py/compare/6.0.1...6.1.0

6.0.1

⚠️ Notice
This version is not compatible with `requests` 2.29+ or `urllib3` 2.x.
Either add `requests < 2.29` and `urllib3 < 2` to your requirements or upgrade to to the [latest `docker-py` release](https://github.com/docker/docker-py/releases/latest).

🐛 Bugfixes
* Fix for `The pipe has been ended` errors on Windows (3056)
* Support floats for timestamps in Docker logs (`since` / `until`) (3031)

What's Changed
* docs: install package in ReadTheDocs build by milas in https://github.com/docker/docker-py/pull/3032
* Use latest stable syntax for Dockerfiles by thaJeztah in https://github.com/docker/docker-py/pull/3035
* feat: add support for floats to docker logs params since / until sinc… by ArchiMoebius in https://github.com/docker/docker-py/pull/3031
* Change prune test to use anonymous volumes by cpuguy83 in https://github.com/docker/docker-py/pull/3051
* socket: handle npipe close by nicks in https://github.com/docker/docker-py/pull/3056

New Contributors
* ArchiMoebius made their first contribution in https://github.com/docker/docker-py/pull/3031
* nicks made their first contribution in https://github.com/docker/docker-py/pull/3056

**Full Changelog**: https://github.com/docker/docker-py/compare/6.0.0...6.0.1

6.0.0

ℹ️ Upgrade Notes
- Minimum supported Python version is 3.7+
- When installing with pip, the `docker[tls]` extra is deprecated and a no-op,
use `docker` for same functionality (TLS support is always available now)
- Native Python SSH client (used by default / `use_ssh_client=False`) will now
reject unknown host keys with `paramiko.ssh_exception.SSHException`
- Short IDs are now 12 characters instead of 10 characters (same as Docker CLI)
- Version metadata is now exposed as `__version__`

✨ Features
- Python 3.10 support
- Automatically negotiate most secure TLS version
- Add `platform` (e.g. `linux/amd64`, `darwin/arm64`) to container create & run
- Add support for `GlobalJob` and `ReplicatedJobs` for Swarm
- Add `remove()` method on `Image`
- Add `force` param to `disable()` on `Plugin`

🐛 Bugfixes
- Fix install issues on Windows related to `pywin32`
- Do not accept unknown SSH host keys in native Python SSH mode
- Use 12 character short IDs for consistency with Docker CLI
- Ignore trailing whitespace in `.dockerignore` files
- Fix IPv6 host parsing when explicit port specified
- Fix `ProxyCommand` option for SSH connections
- Do not spawn extra subshell when launching external SSH client
- Improve exception semantics to preserve context
- Documentation improvements (formatting, examples, typos, missing params)

🔧 Miscellaneous
- Upgrade dependencies in `requirements.txt` to latest versions
- Remove extraneous transitive dependencies
- Eliminate usages of deprecated functions/methods
- Test suite reliability improvements
- GitHub Actions workflows for linting, unit tests, integration tests, and
publishing releases

Changelog
* Update changelog for 5.0.3 by aiordache in https://github.com/docker/docker-py/pull/2897
* Add support for Python 3.10 by hugovk in https://github.com/docker/docker-py/pull/2898
* Bump paramiko from 2.8.0 to 2.10.1 by dependabot in https://github.com/docker/docker-py/pull/2974
* deps: upgrade pywin32 & relax version constraint by milas in https://github.com/docker/docker-py/pull/3004
* ci: remove Python 3.6 and add 3.11 pre-releases by milas in https://github.com/docker/docker-py/pull/3005
* utils: fix IPv6 address w/ port parsing by milas in https://github.com/docker/docker-py/pull/3006
* test_create_with_device_cgroup_rules: don't check devices.list by thaJeztah in https://github.com/docker/docker-py/pull/2940
* Fix exception semantics in _raise_for_status by kmaork in https://github.com/docker/docker-py/pull/2954
* tls: use auto-negotiated highest version by milas in https://github.com/docker/docker-py/pull/3007
* sshcon: remove use of self.ssh_conf by glicht in https://github.com/docker/docker-py/pull/2993
* Use `packaging` instead of `distutils` for `Version` by FrancescoCasalegno in https://github.com/docker/docker-py/pull/2931
* test: fix a couple flaky/broken tests by milas in https://github.com/docker/docker-py/pull/3008
* ci: add flake8 job by milas in https://github.com/docker/docker-py/pull/3009
* Fixes and improvements by kinday in https://github.com/docker/docker-py/pull/2947
* deps: test on Python 3.10 by default  by milas in https://github.com/docker/docker-py/pull/3010
* deps: remove backports.ssl_match_hostname by milas in https://github.com/docker/docker-py/pull/3011
* Fix: fix CVE-2020-28243 by errorcode7 in https://github.com/docker/docker-py/pull/2910
* Fix for CWE-295: Improper Certificate Validation by avnes in https://github.com/docker/docker-py/pull/2932
* Set daemon attribute instead of using setDaemon method that was deprecated in Python 3.10 by tirkarthi in https://github.com/docker/docker-py/pull/2823
* Remove unnecessary pass statements by vilhelmprytz in https://github.com/docker/docker-py/pull/2541
* ci: run SSH integration tests by milas in https://github.com/docker/docker-py/pull/3012
* docs: fix simple typo, containe -> container by timgates42 in https://github.com/docker/docker-py/pull/3015
* ci: bump version to 6.0.0-dev by milas in https://github.com/docker/docker-py/pull/3013
* deps: upgrade & remove unnecessary dependencies by milas in https://github.com/docker/docker-py/pull/3014
* lint: fix line length violation by milas in https://github.com/docker/docker-py/pull/3017
* docs: fix markdown rendering by milas in https://github.com/docker/docker-py/pull/3020
* Return 12 character short_ids by benfasoli in https://github.com/docker/docker-py/pull/2862
* api: preserve cause when re-raising error by milas in https://github.com/docker/docker-py/pull/3023
* deps: upgrade websocket-client to latest by milas in https://github.com/docker/docker-py/pull/3022
* Add platform parameter for create_container() by felixfontein in https://github.com/docker/docker-py/pull/2927
* Support cgroupns option in containers.run/containers.create by david0 in https://github.com/docker/docker-py/pull/2930
* Prevent pip cache in Docker image to save image size by PeterDaveHello in https://github.com/docker/docker-py/pull/2828
* Update: allow "force" parameter in plugin.disable() by till in https://github.com/docker/docker-py/pull/2843
* Fix: Issue 2832 Allowing Rollback Config Arg for Services by ercildoune in https://github.com/docker/docker-py/pull/2917
* model: add remove() to Image by milas in https://github.com/docker/docker-py/pull/3026
* fix(dockerignore): trim trailing whitespace by kalioz in https://github.com/docker/docker-py/pull/2733
* Fix TLS server check example to actually verify by scop in https://github.com/docker/docker-py/pull/2574
* Clarify TLSConfig verify parameter docs by scop in https://github.com/docker/docker-py/pull/2573
* Add healthcheck doc for container.run by JanoschDeurer in https://github.com/docker/docker-py/pull/2595
* Fix image save example by hristog in https://github.com/docker/docker-py/pull/2570
* Changed a few words to be more clear by InnovativeInventor in https://github.com/docker/docker-py/pull/2489
* docs: fix RollbackConfig/Order values by milas in https://github.com/docker/docker-py/pull/3027
* ci: add workflow for releases by milas in https://github.com/docker/docker-py/pull/3018
* remove duplicate 'on' in comment by thomasgassmann in https://github.com/docker/docker-py/pull/2370
* Add `gzip` documentation to `BuildApiMixin` by SauravMaheshkar in https://github.com/docker/docker-py/pull/2929
* Use `preexec_func` always by q0w in https://github.com/docker/docker-py/pull/2920
* Remove docker.credentials.utils.find_executable by n1ngu in https://github.com/docker/docker-py/pull/3028
* Support `global-job` and `replicated-job` modes in Docker Swarm by kinday in https://github.com/docker/docker-py/pull/3016
* docs: add changelog for 6.0.0 by milas in https://github.com/docker/docker-py/pull/3019
* Add sysctl support for docker swarm services by Aadenei in https://github.com/docker/docker-py/pull/3029
* Connect with mac address by YuviGold in https://github.com/docker/docker-py/pull/2481
* docs/css: remove hyphens in literals by jrabbit in https://github.com/docker/docker-py/pull/2452
* Add swarm support for DataPathPort by dexteradeus in https://github.com/docker/docker-py/pull/2987
* test: add additional tests for cgroupns option by milas in https://github.com/docker/docker-py/pull/3024

New Contributors
* hugovk made their first contribution in https://github.com/docker/docker-py/pull/2898
* milas made their first contribution in https://github.com/docker/docker-py/pull/3004
* kmaork made their first contribution in https://github.com/docker/docker-py/pull/2954
* glicht made their first contribution in https://github.com/docker/docker-py/pull/2993
* FrancescoCasalegno made their first contribution in https://github.com/docker/docker-py/pull/2931
* kinday made their first contribution in https://github.com/docker/docker-py/pull/2947
* errorcode7 made their first contribution in https://github.com/docker/docker-py/pull/2910
* avnes made their first contribution in https://github.com/docker/docker-py/pull/2932
* tirkarthi made their first contribution in https://github.com/docker/docker-py/pull/2823
* vilhelmprytz made their first contribution in https://github.com/docker/docker-py/pull/2541
* timgates42 made their first contribution in https://github.com/docker/docker-py/pull/3015
* benfasoli made their first contribution in https://github.com/docker/docker-py/pull/2862
* felixfontein made their first contribution in https://github.com/docker/docker-py/pull/2927
* david0 made their first contribution in https://github.com/docker/docker-py/pull/2930
* PeterDaveHello made their first contribution in https://github.com/docker/docker-py/pull/2828
* till made their first contribution in https://github.com/docker/docker-py/pull/2843
* ercildoune made their first contribution in https://github.com/docker/docker-py/pull/2917
* kalioz made their first contribution in https://github.com/docker/docker-py/pull/2733
* JanoschDeurer made their first contribution in https://github.com/docker/docker-py/pull/2595
* hristog made their first contribution in https://github.com/docker/docker-py/pull/2570
* InnovativeInventor made their first contribution in https://github.com/docker/docker-py/pull/2489
* thomasgassmann made their first contribution in https://github.com/docker/docker-py/pull/2370
* SauravMaheshkar made their first contribution in https://github.com/docker/docker-py/pull/2929
* q0w made their first contribution in https://github.com/docker/docker-py/pull/2920
* n1ngu made their first contribution in https://github.com/docker/docker-py/pull/3028
* Aadenei made their first contribution in https://github.com/docker/docker-py/pull/3029
* jrabbit made their first contribution in https://github.com/docker/docker-py/pull/2452
* dexteradeus made their first contribution in https://github.com/docker/docker-py/pull/2987

**Full Changelog**: https://github.com/docker/docker-py/compare/5.0.3...6.0.0

6.0.0b2

What's Changed
* remove duplicate 'on' in comment by thomasgassmann in https://github.com/docker/docker-py/pull/2370
* Add `gzip` documentation to `BuildApiMixin` by SauravMaheshkar in https://github.com/docker/docker-py/pull/2929
* Use `preexec_func` always by q0w in https://github.com/docker/docker-py/pull/2920
* Remove docker.credentials.utils.find_executable by n1ngu in https://github.com/docker/docker-py/pull/3028
* Support `global-job` and `replicated-job` modes in Docker Swarm by kinday in https://github.com/docker/docker-py/pull/3016
* docs: add changelog for 6.0.0 by milas in https://github.com/docker/docker-py/pull/3019

New Contributors
* thomasgassmann made their first contribution in https://github.com/docker/docker-py/pull/2370
* SauravMaheshkar made their first contribution in https://github.com/docker/docker-py/pull/2929
* q0w made their first contribution in https://github.com/docker/docker-py/pull/2920
* n1ngu made their first contribution in https://github.com/docker/docker-py/pull/3028

**Full Changelog**: https://github.com/docker/docker-py/compare/6.0.0b1...6.0.0b2

6.0.0b1

What's Changed
* Update changelog for 5.0.3 by aiordache in https://github.com/docker/docker-py/pull/2897
* Add support for Python 3.10 by hugovk in https://github.com/docker/docker-py/pull/2898
* Bump paramiko from 2.8.0 to 2.10.1 by dependabot in https://github.com/docker/docker-py/pull/2974
* deps: upgrade pywin32 & relax version constraint by milas in https://github.com/docker/docker-py/pull/3004
* ci: remove Python 3.6 and add 3.11 pre-releases by milas in https://github.com/docker/docker-py/pull/3005
* utils: fix IPv6 address w/ port parsing by milas in https://github.com/docker/docker-py/pull/3006
* test_create_with_device_cgroup_rules: don't check devices.list by thaJeztah in https://github.com/docker/docker-py/pull/2940
* Fix exception semantics in _raise_for_status by kmaork in https://github.com/docker/docker-py/pull/2954
* tls: use auto-negotiated highest version by milas in https://github.com/docker/docker-py/pull/3007
* sshcon: remove use of self.ssh_conf by glicht in https://github.com/docker/docker-py/pull/2993
* Use `packaging` instead of `distutils` for `Version` by FrancescoCasalegno in https://github.com/docker/docker-py/pull/2931
* test: fix a couple flaky/broken tests by milas in https://github.com/docker/docker-py/pull/3008
* ci: add flake8 job by milas in https://github.com/docker/docker-py/pull/3009
* Fixes and improvements by kinday in https://github.com/docker/docker-py/pull/2947
* deps: test on Python 3.10 by default  by milas in https://github.com/docker/docker-py/pull/3010
* deps: remove backports.ssl_match_hostname by milas in https://github.com/docker/docker-py/pull/3011
* Fix: fix CVE-2020-28243 by errorcode7 in https://github.com/docker/docker-py/pull/2910
* Fix for CWE-295: Improper Certificate Validation by avnes in https://github.com/docker/docker-py/pull/2932
* Set daemon attribute instead of using setDaemon method that was deprecated in Python 3.10 by tirkarthi in https://github.com/docker/docker-py/pull/2823
* Remove unnecessary pass statements by vilhelmprytz in https://github.com/docker/docker-py/pull/2541
* ci: run SSH integration tests by milas in https://github.com/docker/docker-py/pull/3012
* docs: fix simple typo, containe -> container by timgates42 in https://github.com/docker/docker-py/pull/3015
* ci: bump version to 6.0.0-dev by milas in https://github.com/docker/docker-py/pull/3013
* deps: upgrade & remove unnecessary dependencies by milas in https://github.com/docker/docker-py/pull/3014
* lint: fix line length violation by milas in https://github.com/docker/docker-py/pull/3017
* docs: fix markdown rendering by milas in https://github.com/docker/docker-py/pull/3020
* Return 12 character short_ids by benfasoli in https://github.com/docker/docker-py/pull/2862
* api: preserve cause when re-raising error by milas in https://github.com/docker/docker-py/pull/3023
* deps: upgrade websocket-client to latest by milas in https://github.com/docker/docker-py/pull/3022
* Add platform parameter for create_container() by felixfontein in https://github.com/docker/docker-py/pull/2927
* Support cgroupns option in containers.run/containers.create by david0 in https://github.com/docker/docker-py/pull/2930
* Prevent pip cache in Docker image to save image size by PeterDaveHello in https://github.com/docker/docker-py/pull/2828
* Update: allow "force" parameter in plugin.disable() by till in https://github.com/docker/docker-py/pull/2843
* Fix: Issue 2832 Allowing Rollback Config Arg for Services by ercildoune in https://github.com/docker/docker-py/pull/2917
* model: add remove() to Image by milas in https://github.com/docker/docker-py/pull/3026
* fix(dockerignore): trim trailing whitespace by kalioz in https://github.com/docker/docker-py/pull/2733
* Fix TLS server check example to actually verify by scop in https://github.com/docker/docker-py/pull/2574
* Clarify TLSConfig verify parameter docs by scop in https://github.com/docker/docker-py/pull/2573
* Add healthcheck doc for container.run by JanoschDeurer in https://github.com/docker/docker-py/pull/2595
* Fix image save example by hristog in https://github.com/docker/docker-py/pull/2570
* Changed a few words to be more clear by InnovativeInventor in https://github.com/docker/docker-py/pull/2489
* docs: fix RollbackConfig/Order values by milas in https://github.com/docker/docker-py/pull/3027
* ci: add workflow for releases by milas in https://github.com/docker/docker-py/pull/3018

New Contributors
* hugovk made their first contribution in https://github.com/docker/docker-py/pull/2898
* milas made their first contribution in https://github.com/docker/docker-py/pull/3004
* kmaork made their first contribution in https://github.com/docker/docker-py/pull/2954
* glicht made their first contribution in https://github.com/docker/docker-py/pull/2993
* FrancescoCasalegno made their first contribution in https://github.com/docker/docker-py/pull/2931
* kinday made their first contribution in https://github.com/docker/docker-py/pull/2947
* errorcode7 made their first contribution in https://github.com/docker/docker-py/pull/2910
* avnes made their first contribution in https://github.com/docker/docker-py/pull/2932
* tirkarthi made their first contribution in https://github.com/docker/docker-py/pull/2823
* vilhelmprytz made their first contribution in https://github.com/docker/docker-py/pull/2541
* timgates42 made their first contribution in https://github.com/docker/docker-py/pull/3015
* benfasoli made their first contribution in https://github.com/docker/docker-py/pull/2862
* felixfontein made their first contribution in https://github.com/docker/docker-py/pull/2927
* david0 made their first contribution in https://github.com/docker/docker-py/pull/2930
* PeterDaveHello made their first contribution in https://github.com/docker/docker-py/pull/2828
* till made their first contribution in https://github.com/docker/docker-py/pull/2843
* ercildoune made their first contribution in https://github.com/docker/docker-py/pull/2917
* kalioz made their first contribution in https://github.com/docker/docker-py/pull/2733
* JanoschDeurer made their first contribution in https://github.com/docker/docker-py/pull/2595
* hristog made their first contribution in https://github.com/docker/docker-py/pull/2570
* InnovativeInventor made their first contribution in https://github.com/docker/docker-py/pull/2489

**Full Changelog**: https://github.com/docker/docker-py/compare/5.0.3...6.0.0b1

5.0.3

[List of PRs / issues for this release](https://github.com/docker/docker-py/milestone/76?closed=1)

Features
- Add `cap_add` and `cap_drop` parameters to service create and ContainerSpec
- Add `templating` parameter to config create

Bugfixes
- Fix getting a read timeout for logs/attach with a tty and slow output

Miscellaneous
- Fix documentation examples

5.0.2

[List of PRs / issues for this release](https://github.com/docker/docker-py/milestone/75?closed=1)

Bugfixes
- Fix `disable_buffering` regression

5.0.1

[List of PRs / issues for this release](https://github.com/docker/docker-py/milestone/74?closed=1)

Bugfixes
- Bring back support for ssh identity file
- Cleanup remaining python-2 dependencies
- Fix image save example in docs

Miscellaneous
- Bump urllib3 to 1.26.5
- Bump requests to 2.26.0

5.0.0

[List of PRs / issues for this release](https://github.com/docker/docker-py/milestone/70?closed=1)

Breaking changes
- Remove support for Python 2.7
- Make Python 3.6 the minimum version supported

Features
- Add `limit` parameter to image search endpoint

Bugfixes
- Fix `KeyError` exception on secret create
- Verify TLS keys loaded from docker contexts
- Update PORT_SPEC regex to allow square brackets for IPv6 addresses
- Fix containers and images documentation examples

4.4.4

>  Warning
> This is the last release with support for Python 2.7 and 3.5

[List of PRs / issues for this release](https://github.com/docker/docker-py/milestone/73?closed=1)

Bugfixes
- Remove `LD_LIBRARY_PATH` and `SSL_CERT_FILE` environment variables when shelling out to the ssh client

4.4.3

[List of PRs / issues for this release](https://github.com/docker/docker-py/milestone/72?closed=1)

Features
- Add support for docker.types.Placement.MaxReplicas

Bugfixes
- Fix SSH port parsing when shelling out to the ssh client

4.4.2

[List of PRs / issues for this release](https://github.com/docker/docker-py/milestone/71?closed=1)

Bugfixes
- Fix SSH connection bug where the hostname was incorrectly trimmed and the error was hidden
- Fix docs example

Miscellaneous
- Add Python3.8 and 3.9 in setup.py classifier list

4.4.1

[List of PRs / issues for this release](https://github.com/docker/docker-py/milestone/69?closed=1)

Bugfixes
- Avoid setting unsupported parameter for subprocess.Popen on Windows

4.4.0

[List of PRs / issues for this release](https://github.com/docker/docker-py/milestone/67?closed=1)

Features
- Add an alternative SSH connection to the paramiko one, based on shelling out to the SSh client. Similar to the behaviour of Docker cli
- Default image tag to `latest` on `pull`

Bugfixes
- Fix plugin model upgrade
- Fix examples URL in ulimits

Miscellaneous
- Improve exception messages for server and client errors
- Bump cryptography from 2.3 to 3.2

4.3.1

[List of PRs / issues for this release](https://github.com/docker/docker-py/milestone/68?closed=1)

Miscellaneous
- Set default API version to `auto`
- Fix conversion to bytes for `float`
- Support OpenSSH `identityfile` option

4.3.0

Changelog

Features
- Add `DeviceRequest` type to expose host resources such as GPUs
- Add support for `DriverOpts` in EndpointConfig
- Disable compression by default when using container.get_archive method

Miscellaneous
- Update default API version to v1.39
- Update test engine version to 19.03.12
Links

@pyup-bot pyup-bot mentioned this pull request Dec 8, 2023
@pyup-bot
Copy link
Collaborator Author

Closing this in favor of #349

@pyup-bot pyup-bot closed this May 23, 2024
@achaussier achaussier deleted the pyup-update-docker-4.2.2-to-7.0.0 branch May 23, 2024 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant