ansible returns with "Failed to import the required Python library (Docker SDK for Python: docker (Python >= 2.7) or docker-py (Python 2.6))

后端 未结 2 763
星月不相逢
星月不相逢 2021-01-11 21:18

I am running myserver in ubuntu:

+ sudo cat /etc/os-release
NAME=\"Ubuntu\"
VERSION=\"16.04.6 LTS (Xenial Xerus)\"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME=\"Ubu         


        
2条回答
  •  心在旅途
    2021-01-11 21:31

    It appears that you don't have the docker module installed.

    You will need to install it via your system package manager (apt install python-docker, for example), or using pip.

    If you have multiple Python versions, make sure that you've installed the docker module into the version that Ansible is using.

= 2.7) or docker-py (Python 2.6))" id="ans_title" name="title">
提交回复
热议问题