https://rancher.com/ logo
Title
v

victorious-architect-31541

07/06/2022, 8:39 AM
hi, nobody uses rancher desktop with nerdctl on Mac with Ansible molecule? I would like to substitute the docker driver with the rancher desktop, but it complains it cannot find the docker unix thing
f

fast-garage-66093

07/06/2022, 5:40 PM
Are you sure that you configured Rancher Desktop to use the Moby backend and not containerd? If yes, did you allow administrative access (sudo) to create the socket in the default place? Otherwise you would have to switch the docker context to RD:
docker context use rancher-desktop
. However, I don't know if Molecule is aware of docker contexts, or only looks for the socket in the default place. Maybe it supports setting
DOCKER_HOST
?
v

victorious-architect-31541

07/07/2022, 12:51 PM
thanks! I will investigate this
if I try to run
docker
context I get:
docker
zsh: command not found: docker
I take that back, it works in a new shell ...
but molecule replies
ERROR: Unable to contact the Docker daemon. Please refer to <https://docs.docker.com/config/daemon/> for managing the daemon
maybe I am closer? any hints there?