-
-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when creating docker container: no such host #78
Comments
Looks like the socket changed (not sure to what, I would have to investigate). Try connecting with |
Connecting to |
Ok, you need to see for yourself where docker is listening on and provide that value as an argument to newpool |
thx, I ll try that |
How to check the listening file in MAC, I found it's hard to find out where is the docker daemon config on MAC? The problem was resovled? |
Are you using docker-machine, or docker for MacOS? If it's the former, you need to find the IP of the VM and connect to it instead of localhost. Hope this helps! |
Just hit this as well, if you try an test hydra in an alpine container this breaks it. |
I'm hitting the same issue on Windows now, will investigate soon. |
So mine ended up being that I needed |
must be a windows thing, don't have that on docker-for-mac yet ¯_(ツ)_/¯ |
OSX won't require TLS because Docker on OSX does not use a TCP socket but rather a Unix socket that is only accessible by local processes anyway and all of the unixy file permissions apply. |
right, that makes sense! so does it work now for everyone? |
I am having this same issue while running tests in circleci. If I am not mistaken it clearly can connect to the docker daemon but can not start the container. since if fails on this line:
environment: |
Enable Docker in Circle.
… On 24. Jun 2019, at 15:37, Rugwiro Valentin ***@***.***> wrote:
I am having this same issue while running tests in circleci. If I am not mistaken it clearly can connect to the docker daemon but can not start the container. since if fails on this line:
container, err := pool.Run("postgres", "alpine", config)
if err != nil {
log.Fatalf("Could not start container: %s", err)
}
returning:
Could not start container: : dial unix /var/run/docker.sock: connect: no such file or directory
environment: circleci linux
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I have been working on it and the problems seems to be that circleci allows you yo run docker commands only when you setup a local docker host. In my tests am connecting to localhost but the remote docker daemon is of course remote. I have tried using the |
I also experience this on gitlab ci. |
Is this still a problem? |
Still have above problem Getting |
Got the same issue today! Any solution? |
I was seeing the same error as well. For me, going into the settings and then the advanced settings section of Docker Desktop, I enabled the option |
(Docker version is
1.13.1
)I was using the example MongoDB code to create a mongo container in my test case and encountered this no such host error when connecting:
Suspected a OS X platform issue, I also tried to run the test case on Travis CI with the following configuration:
but got the same error.
Here is the code that caused the problem, it is essentially same with the example code:
Basically,
pool.Run("mongo", "3.3", []string{""})
is failing.Could someone please help. Thanks!
The text was updated successfully, but these errors were encountered: