ansible-community / molecule-docker

🚧 Assimilated into molecule-plugins
https://github.com/ansible-community/molecule-plugins
MIT License
77 stars 39 forks source link

Docker test fail to run when socket is available but binary is not present #136

Closed Yethal closed 2 years ago

Yethal commented 2 years ago

In an environment where the docker binary is not present but the docker socket is available (such as CI builds in Docker containers with hostss socket mounted) molecule tests fail. It appears the molecule docker driver runs a sanity test by searching for the docker binary (despite the fact that is not used throughout the pipeline). It appears the error triggered is the one in line 88 of the following file: https://fossies.org/linux/ansible/lib/ansible/plugins/connection/docker.py