Docker Community Forums

Share and learn in the Docker community.

[solved] Starting from beta12 socat workaround for docker HTTP interface stopped working


(Marcin Nowrot) #1

Expected behavior

After applying a workaround from [worked around] Docker HTTP(S) API no longer available in beta9? docker HTTP API will be available on 127.0.0.1:2375

Actual behavior

Cannot connect to 127.0.0.1:2375 - connection seems to be closed/reset immediately.

Telnet reports “Connection closed by foreign host.”

IntelliJ reports “javax.ws.rs.ProcessingException: org.apache.http.NoHttpResponseException: The target server failed to respond”

Socat is running (ps -Aef | grep socat):
501 367 1 0 9:32AM ?? 0:00.01 /usr/local/bin/socat -4 TCP-LISTEN:2375,fork UNIX-CONNECT:/var/tmp/docker.sock

Information

Pinata diagnose did not found any issues


(Marcin Nowrot) #2

Changing the socket path to /var/run/docker.sock solved the problem.