molecule-plugins icon indicating copy to clipboard operation
molecule-plugins copied to clipboard

Docker: doesn't work with requests-2.32.1

Open ollie1 opened this issue 9 months ago • 9 comments

A new version of the requests library has been released on pypi - https://pypi.org/project/requests/2.32.1/ . This seems incompatible with the docker molecule plugin. When trying to run molecule converge on a project using the docker plugin, I get a message as follows:

INFO     Sanity checks: 'docker'
CRITICAL Unable to contact the Docker daemon. Please refer to https://docs.docker.com/config/daemon/ for managing the daemon

Downgrading to a version of the requests library <2.32 resolves the issue and molecule works as normal:

python -m pip install 'requests<2.32'

Output of molecule --version

molecule 6.0.3 using python 3.9 
    ansible:2.15.12
    azure:23.5.3 from molecule_plugins
    containers:23.5.3 from molecule_plugins requiring collections: ansible.posix>=1.3.0 community.docker>=1.9.1 containers.podman>=1.8.1
    default:6.0.3 from molecule
    docker:23.5.3 from molecule_plugins requiring collections: community.docker>=3.4.11 ansible.posix>=1.4.0
    ec2:23.5.3 from molecule_plugins
    gce:23.5.3 from molecule_plugins requiring collections: google.cloud>=1.0.2 community.crypto>=1.8.0
    openstack:23.5.3 from molecule_plugins requiring collections: openstack.cloud>=2.1.0
    podman:23.5.3 from molecule_plugins requiring collections: containers.podman>=1.7.0 ansible.posix>=1.3.0
    vagrant:23.5.3 from molecule_plugins

ollie1 avatar May 21 '24 11:05 ollie1