Skip to content

Failed to connect to /127.0.0.1:2375 #87

@yangboz

Description

@yangboz

Does MacOSX system not supported?

After define: RxDockerClient client = RxDockerClient.fromDefaultEnv();

It throw errors:

main] c.s.r.d.client.DefaultRxDockerClient : Docker API uri http://127.0.0.1:2375
main] c.s.r.rxokhttp.OkHttpBasedRxHttpClient : Base API uri http://127.0.0.1:2375
main] c.s.r.r.DefaultOkHttpBasedRxHttpClient : Making GET request to http://127.0.0.1:2375/images/search?term=ubuntu
main] c.s.r.r.DefaultOkHttpBasedRxHttpClient : Encountered error while making HTTP GET call to 'http://127.0.0.1:2375/images/search?term=ubuntu'

java.net.ConnectException: Failed to connect to /127.0.0.1:2375
at okhttp3.internal.io.RealConnection.connectSocket(RealConnection.java:187) ~[okhttp-3.3.1.jar:na]
at okhttp3.internal.io.RealConnection.buildConnection(RealConnection.java:170) ~[okhttp-3.3.1.jar:na]
at okhttp3.internal.io.RealConnection.connect(RealConnection.java:111) ~[okhttp-3.3.1.jar:na]

But use final "com.spotify.docker.client.DefaultDockerClient;" dockerClient =new DefaultDockerClient("unix:///var/run/docker.sock"); it works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions