hi everybody,
 
I try to handle docker containers via Ansible and am getting this error:
      
     msg: 'Failed to import the required Python library (Docker SDK for Python: 
docker (Python >= 2.7) or docker-py (Python 2.6)) on vm-51150-0191''s Python 
/usr/libexec/platform-python. Please read module documentation and install in 
the appropriate location. If the required library is installed, but Ansible is 
using the wrong Python interpreter, please consult the documentation on 
ansible_python_interpreter, for example via `pip install docker` or `pip 
install docker-py` (Python 2.6). The error was: No module named ''docker'''
 
I assume that means the target host needs to have a python docker 
module/library/package (sorry I am not 100% aware what the correcet term is 
here).
I read pip install docker to be the common solution, but am advised in my 
workplace to go around pip if possible (I miss the knowledge to discuss the 
reasons for this though).
 
So, is the alternative to install it manually (I found these instructions)?
   1. Download the package
   2. unzip it if it is zipped
   3. cd into the directory containing setup.py
   4. If there are any installation instructions contained in documentation, 
read and follow the instructions OTHERWISE
   5. type in python setup.py install
and would this be the package I need: 
https://github.com/docker/docker-py/releases ?
 
 

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1995154994.76161.1657185367892%40office.mailbox.org.

Reply via email to