Giter VIP home page Giter VIP logo

Comments (4)

nickjj avatar nickjj commented on July 24, 2024

The "real" Docker binary gets installed to /usr/bin/docker. It gets apt installed.

The symlink is only for Python packages. The Docker Compose Python package is the docker-compose binary. The Docker Python package isn't a callable binary, it's only a library -- more specifically a library that needs to exist for tools like Ansible to use any docker_* modules.

By the way the Docker Python package gets skipped because that task only runs for Python packages that have a path and src property defined. That is defined here only for docker-compose:

path: "/usr/local/bin/docker-compose"
src: "{{ docker__pip_virtualenv + '/bin/docker-compose' }}"

The docker Python package above that does not have those properties.

from ansible-docker.

cdaringe avatar cdaringe commented on July 24, 2024

hey @nickjj , thanks for the feedback. i'm deploying to an ubuntu server:

$ droppy:~# ls /usr/bin/docker
dockerd       docker-init   docker-proxy 

can you point me to the step that installs the binary? i'm finding that its just plain absent. i want to better understand why ansible thinks it can be skipped, when the binary is clearly missing

from ansible-docker.

cdaringe avatar cdaringe commented on July 24, 2024

I found the step. i can debug solo. thx!

from ansible-docker.

nickjj avatar nickjj commented on July 24, 2024

You wrote:

TASK [nickjj.docker : Symlink selected Python package binaries to /usr/local/bin] *************************************
skipping: [###.###.#.###] => (item={'name': 'docker', 'state': 'present'}) 

This task is unrelated to the Docker binary (check my previous comment for a breakdown).

This role will apt install Docker with the Install Docker and Docker Compose v2 task.

I'm not sure what your system's state is but you can sudo apt-get remove --purge docker* and then try running this role again. Then you should be able to run which docker to see it in /usr/bin.

from ansible-docker.

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.