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
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