Interview Prep/Ansible/Cloud, AWX, Windows and Molecule

`molecule create` fails with `Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?`

IntermediateTroubleshootingCloud, AWX, Windows and Molecule
Answer

Likely causes → Docker is not running, the user is not in the docker group (on Linux), or the machine only has Podman and the scenario uses the Docker driver.

Diagnose → docker info, id -nG | grep docker, systemctl status docker.

Fix → Start Docker and add the user to the group (sudo usermod -aG docker $USER, then log in again), or switch the scenario to Podman (driver: name: podman) with molecule-plugins[podman].

Prevent → Document the driver in the repo and provide a dev container with Docker and Molecule preinstalled.

All Ansible questions Roadmap: Ansible

More on Cloud, AWX, Windows and Molecule