Skip to content

The docker driver drops the error message when it fails to ping Docker #351

Description

@guillaume-perreal

Hello,

I have an error in Gitlab-CI using docker-in-docker as a service. The driver is not able to ping the docker service but prints a generic error message without reporting the error message from the underlying docker library. This does not help solving the problem as there are many ways in which the connection can fail.

Reported error message: Unable to contact the Docker daemon. Please refer to https://docs.docker.com/config/daemon/ for managing the daemon

Error message from the underlying library (obtained using a one-line script in the same CI job): [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: CA cert does not include key usage extension (_ssl.c:1032)'

Please note I do not complain about this particular error, just the fact that I did not had any hint to start with.

It seems this occur in this except block: https://github.com/ansible-community/molecule-plugins/blob/main/src/molecule_plugins/docker/driver.py#L246

Would it possible to report the original message?

  • docker server version: 27-dind
  • molecule version: 25.11.1
  • molecule-plugin version: 25.8.12
  • docker library version: 7.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions