Set minimal Docker API version for chdir to 1.35. (#253) (#256)

(cherry picked from commit 5a23c4d336)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot] 2021-12-22 17:32:42 +01:00 committed by GitHub
parent 302d394083
commit 6dba5abdbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1,2 @@
bugfixes:
- "docker_container_exec - disallow using the ``chdir`` option for Docker API before 1.35 (https://github.com/ansible-collections/community.docker/pull/253)."

View File

@ -164,7 +164,7 @@ def main():
)
option_minimal_versions = dict(
chdir=dict(docker_py_version='3.0.0'),
chdir=dict(docker_py_version='3.0.0', docker_api_version='1.35'),
)
client = AnsibleDockerClient(