Skip to content

Issue when use preset Redis in CI #307

Answered by orlangure
hungngphtiki asked this question in Q&A
Discussion options

You must be logged in to vote

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 execute go test from.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@hungngphtiki
Comment options

@hungngphtiki
Comment options

@hungngphtiki
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by orlangure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants