Centos7 docker-py doesn't seem to be installed

前端 未结 4 1872
南旧
南旧 2021-02-19 19:10

I installed Centos7 minimal and then: ansible, docker, pip and using pip I installed docker-py.

Versions:
- Docker version 1.6.0, build 8aae715/1.6.0
- ansibl

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-19 19:21

    I ran into a variation of this issue recently. It wasn't due to my using sudo to install the module, but the other way around.

    For whatever reason I opted to install docker using pip's --user flag and then had the unfortunate "idea" to use the -b or --become option.

    This resulted in the "obviously" installed docker module being unavailable to the elevated Ansible instance running my playbook. Sharing in case someone has "one of those days" and stumbles across this later on. Hope it helps you as I paid for this reminder with a good bit of "stupid tax", hopefully enough for the both of us. :)

提交回复
热议问题