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 dependency docker to v7 #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mend-5034428[bot]
Copy link

@mend-5034428 mend-5034428 bot commented Oct 16, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
docker (changelog) >=3.7,<3.8 -> >=7.1.0,<7.2 age adoption passing confidence

Release Notes

docker/docker-py (docker)

v7.1.0

Compare Source

Upgrade Notes

  • Bumped minimum engine API version to 1.24
  • Bumped default engine API version to 1.44 (Moby 25.0)

Bugfixes

  • Fixed issue with tag parsing when the registry address includes ports that resulted in invalid tag format errors
  • Fixed issue preventing creating new configs (ConfigCollection), which failed with a KeyError due to the name field
  • Fixed an issue due to an update in the requests package breaking docker-py by applying the suggested fix

Miscellaneous

  • Documentation improvements
  • Updated Ruff (linter) and fixed minor linting issues
  • Packaging/CI updates
  • Updated tests
    • Stopped checking for deprecated container and image related fields (Container and ContainerConfig)
    • Updated tests that check NetworkSettings.Networks.<network>.Aliases due to engine changes

What's Changed

New Contributors

Full Changelog: docker/docker-py@7.0.0...7.1.0

v7.0.0

Compare Source

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 🔧

What's Changed

New Contributors

Full Changelog: docker/docker-py@6.1.3...7.0.0

v6.1.3

Compare Source

🐛 Bugfixes

What's Changed

New Contributors

Full Changelog: docker/docker-py@6.1.2...6.1.3

v6.1.2

Compare Source

🐛 Bugfixes

  • Fix for socket timeouts on long docker exec calls (#​3125)
  • Respect timeout param on Windows (#​3112)

Full Changelog

New Contributors

Full Changelog: docker/docker-py@6.1.1...6.1.2

v6.1.1

Compare Source

ℹ️ 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

New Contributors

Full Changelog: docker/docker-py@6.1.0...6.1.1

v6.1.0

Compare Source

ℹ️ 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

New Contributors

Full Changelog: docker/docker-py@6.0.1...6.1.0

v6.0.1

Compare Source

⚠️ 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.

🐛 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

New Contributors

Full Changelog: docker/docker-py@6.0.0...6.0.1

v6.0.0

Compare Source

ℹ️ 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

New Contributors

Full Changelog: docker/docker-py@5.0.3...6.0.0

v5.0.3

Compare Source

List of PRs / issues for this release

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

v5.0.2

Compare Source

List of PRs / issues for this release

Bugfixes

  • Fix disable_buffering regression

v5.0.1

Compare Source

List of PRs / issues for this release

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

v5.0.0

Compare Source

List of PRs / issues for this release

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

v4.4.4

Compare Source

Warning

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

List of PRs / issues for this release

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

v4.4.3

Compare Source

List of PRs / issues for this release

Features
  • Add support for docker.types.Placement.MaxReplicas
Bugfixes
  • Fix SSH port parsing when shelling out to the ssh client

v4.4.2

Compare Source

List of PRs / issues for this release

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

v4.4.1

Compare Source

List of PRs / issues for this release

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

v4.4.0

Compare Source

List of PRs / issues for this release

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

v4.3.1

Compare Source

List of PRs / issues for this release

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

v4.3.0

Compare Source

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

v4.2.2

Compare Source

4.2.2

List of PRs / issues for this release

Bugfixes
  • Fix context load for non-docker endpoints

v4.2.1

Compare Source

List of PRs / issues for this release

Features
  • Add option on when to use tls on Context constructor
  • Make context orchestrator field optional

v4.2.0

Compare Source

List of PRs / issues for this release

Bugfixes
  • Fix win32pipe.WaitNamedPipe throw exception in Windows containers
  • Use Hostname, Username, Port and ProxyCommand settings from .ssh/config when on SSH
  • Set host key policy for ssh transport to paramiko.WarningPolicy()
  • Set logging level of paramiko to warn
Features
  • Add support for docker contexts through docker.ContextAPI

v4.1.0

Compare Source

List of PRs / issues for this release

Bugfixes
  • Correct INDEX_URL logic in build.py _set_auth_headers
  • Fix for empty auth keys in config.json
Features
  • Add NetworkAttachmentConfig for service create/update
Miscellaneous
  • Bump pytest to 4.3.1
  • Adjust --platform tests for changes in docker engine
  • Update credentials-helpers to v0.6.3

v4.0.2

Compare Source

List of PRs / issues for this release

Bugfixes
  • Unified the way HealthCheck is created/configured
Miscellaneous
  • Bumped version of websocket-client

v4.0.1

Compare Source

List of PRs / issues for this release

Bugfixes
  • Fixed an obsolete import in the credentials subpackage that caused import errors in
    Python 3.7
Miscellaneous
  • Docs building has been repaired

v4.0.0

Compare Source

List of PRs / issues for this release

Breaking changes
  • Support for Python 3.3 and Python 3.4 has been dropped
  • APIClient.update_service, APIClient.init_swarm, and
    DockerClient.swarm.init now return a dict from the API's response body
  • In APIClient.build and DockerClient.images.build, the use_config_proxy
    parameter now defaults to True
  • init_path is no longer a valid parameter for HostConfig
Features
  • It is now possible to provide SCTP ports for port mappings
  • ContainerSpecs now support the init parameter
  • DockerClient.swarm.init and APIClient.init_swarm now support the
    data_path_addr parameter
  • APIClient.update_swarm and DockerClient.swarm.update now support the
    rotate_manager_unlock_key parameter
  • APIClient.update_service returns the API's response body as a dict
  • APIClient.init_swarm, and DockerClient.swarm.init now return the API's
    response body as a dict
Bugfixes
  • Fixed PlacementPreference instances to produce a valid API type
  • Fixed a bug where not setting a value for buildargs in build could cause
    the library to attempt accessing attributes of a None value
  • Fixed a bug where setting the volume_driver parameter in
    DockerClient.containers.create would result in an error
  • APIClient.inspect_distribution now correctly sets the authentication
    headers on the request, allowing it to be used with private repositories
    This change also applies to DockerClient.get_registry_data

v3.7.3

Compare Source

v3.7.2

Compare Source

List of PRs / issues for this release

Bugfixes
  • Fix base_url to keep TCP protocol on utils.py by letting the responsability of changing the
    protocol to parse_host afterwards, letting base_url with the original value.
  • XFAIL test_attach_stream_and_cancel on TLS

v3.7.1

Compare Source

List of PRs / issues for this release

Bugfixes
  • Set a different default number (which is now 9) for SSH pools
  • Adds a BaseHTTPAdapter with a close method to ensure that the
    pools is clean on close()
  • Makes SSHHTTPAdapter reopen a closed connection when needed
    like the others

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

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.

0 participants