Git Product home page Git Product logo

Comments (2)

geerlingguy avatar geerlingguy commented on August 14, 2024 2

I'll have to do a little more testing on this, to make sure it accounts for the case of someone new to Ansible/this example. If you ran into it, chances are someone else will to... one of the things I made sure to do with Ansible for DevOps at one point was take a fresh new machine, and run through the first few chapters to make sure I wasn't missing the install or configuration of something critical.

from ansible-for-kubernetes.

geerlingguy avatar geerlingguy commented on August 14, 2024

@qmacro - Thanks again for opening this issue (as I said, if you got this error, chances are someone else did/will too...).

It looks like there are a few possible causes of this problem—and if you look through the main issue relating to this in the docker-py issue queue (docker/docker-py#1502), you'll see there are also a hundred solutions!

It seems like the most important things to try are:

  1. Make sure you're installing docker and not docker-py (pip3 install docker).
  2. Make sure the Ansible playbook is using the same python interpreter where you just installed the docker library, e.g. if you used pip3, see if setting export ANSIBLE_PYTHON_INTERPRETER=$(which python3) gets you a better result.

It seems like 90% of the people reporting issues had problems with their Ansible playbook or other Python projects picking up either a broken installation of the docker library, or just using the wrong Python interpreter altogether (e.g. not using a venv correctly, or using system Python instead of a managed installation...).

from ansible-for-kubernetes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.