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? |
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? |
|
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 |




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_HOSTenvironment 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 testcommand is executed,docker versioncommand also works. Not locally, not generally in jenkins, but exactly in the same shell the you executego testfrom.