-
Notifications
You must be signed in to change notification settings - Fork 122
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
Docker_Container_Exec - TypeError: exec_create() got an unexpected keyword argument 'workdir' #242
Comments
Which version of Docker SDK for Python do you have installed on the target machine for the target Python? ( |
Support for |
#243 should fix this. |
The target machines don't have PIP, but I believe based on this, it's 2.5.1-1: |
In that case it's not surprising that it fails, and #243 should fix it. |
Thanks for confirming. I can't update the python package on all the target machines right now, so I'll use my workaround in the meantime until #243 is available. |
SUMMARY
Ansible Playbook using community.docker.docker_container_exec throws TypeError: exec_create() got an unexpected keyword argument 'workdir'
ISSUE TYPE
COMPONENT NAME
community.docker.docker_container_exec
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
Execute Playbook using docker_container_exec module. For example:
EXPECTED RESULTS
Playbook executes the remote command inside the Docker image.
ACTUAL RESULTS
Playbook will fail with the following traceback:
By comparison, calling docker exec, and passing the command to the container works properly. For example:
The text was updated successfully, but these errors were encountered: