E
Size: a a a
M
- name: install xxx
docker_container:
name: xxx
image: xxx:v2.4
state: present
ports:
- "80:80"
- "8080:8080"
restart: yes
restart_policy: always
volumes:
- xxx.yml:/etc/xxx.yml
"Failed to import the required Python library (Docker SDK for Python: docker (Python >= 2.7) or docker-py (Python 2.6)) on gate's Python /usr/bin/python3. 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'"
E
- name: install xxx
docker_container:
name: xxx
image: xxx:v2.4
state: present
ports:
- "80:80"
- "8080:8080"
restart: yes
restart_policy: always
volumes:
- xxx.yml:/etc/xxx.yml
"Failed to import the required Python library (Docker SDK for Python: docker (Python >= 2.7) or docker-py (Python 2.6)) on gate's Python /usr/bin/python3. 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'"
V
M
Manage the life cycle of docker containers.
E
Manage the life cycle of docker containers.
M
docker-py
еще добавить в систему?M
E
docker-py
еще добавить в систему?E
M