mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-03 07:41:30 -07:00
Clarify that uninstalling docker-py can break docker (and vice versa). (#43238)
This commit is contained in:
parent
d31e25acbd
commit
ed22efb2a6
8 changed files with 23 additions and 8 deletions
|
@ -185,7 +185,8 @@ class AnsibleDockerClient(Client):
|
|||
if HAS_DOCKER_MODELS and HAS_DOCKER_SSLADAPTER:
|
||||
self.fail("Cannot have both the docker-py and docker python modules installed together as they use the same namespace and "
|
||||
"cause a corrupt installation. Please uninstall both packages, and re-install only the docker-py or docker python "
|
||||
"module. It is recommended to install the docker module if no support for Python 2.6 is required.")
|
||||
"module. It is recommended to install the docker module if no support for Python 2.6 is required. "
|
||||
"Please note that simply uninstalling one of the modules can leave the other module in a broken state.")
|
||||
|
||||
if not HAS_DOCKER_PY:
|
||||
self.fail("Failed to import docker or docker-py - %s. Try `pip install docker` or `pip install docker-py` (Python 2.6)" % HAS_DOCKER_ERROR)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue