Issue when use preset Redis in CI #307
-
test panicked: can't start container: can't pull image: can't pull image: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @hungngphtiki, my question would be the same as the one in the error message: Is the docker daemon running? |
Beta Was this translation helpful? Give feedback.
-
According to your screenshots, you are trying to run go tests inside a docker container that you build from a Dockerfile. Gnomock needs a running docker daemon (either running locally, or via For the tests to work, you need to make sure that wherever |
Beta Was this translation helpful? Give feedback.
According to your screenshots, you are trying to run go tests inside a docker container that you build from a Dockerfile.
Gnomock needs a running docker daemon (either running locally, or via
DOCKER_HOST
environment variable), and I suppose there is no docker daemon running inside the image built from the attached Dockerfile.For the tests to work, you need to make sure that wherever
go test
command is executed,docker version
command also works. Not locally, not generally in jenkins, but exactly in the same shell the you executego test
from.