I'm getting the following error when I try to run test container in my java app from the IDE:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
however docker desktop is running.
Also I am getting the same error when I run the testcontainers/ryuk image directly from docker desktop by clicking the run button in the images panel.
But the container runs when I use the following command in the terminal:
docker run -i --mount type=bind,source=/var/run/docker.sock,destination=/var/run/docker.sock testcontainers/ryuk:0.3.4
EDIT:
the test container works when I installed docker engine cli and use it as the active context but it's a hassle switching. It seems the default bind being used is cli.
EDIT2:
I've uninstalled and purged every docker installation and reinstalled only docker desktop and it's still the same, on a windows machine it's working properly though.