Last active
November 25, 2018 05:48
-
-
Save taragurung/836a76cff88c6e5a5abe08a3458d5210 to your computer and use it in GitHub Desktop.
Failed to import docker-py - No module named ordered_dict. Try `pip install docker-py`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The problem occurs when trying to run docker containers using the ansible docker module as below: | |
######## | |
playbook: | |
######## | |
- name: Start docker container (using docker-compose) | |
docker_service: | |
project_src: /home/ubuntu | |
become_user: ubuntu | |
tags: | |
- docker-compose | |
------------------------------- | |
The following solved the issue: | |
------------------------------- | |
pip uninstall docker | |
pip install --ignore-installed docker-py | |
Reference: | |
https://github.com/ansible/ansible/issues/20492 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment