- Go to
System Preferences/Network/Wi-Fi (or Ethernet)/click Advanced.../Proxies
- Check Web Proxy (HTTP) checkbox and add
localhost:2375
to Web Proxy Server - Command line
brew install socat
(Homebrew should be pre-installed)
remember to uncheck Web Proxy (HTTP) checkbox after you build an image.
- Install jdk
sudo apt-get install openjdk-8-jdk
- Install socat
sudo apt-get install socat
-
In new terminal tab run
socat -d TCP-LISTEN:2375,range=127.0.0.1/32,reuseaddr,fork UNIX:/var/run/docker.sock
-
gradle buildDocker
-
Terminate
socat
process
-
[before] If you are using latest Docker and getting error
org.apache.http.conn.HttpHostConnectException: Connect to localhost:2375
- right click on Docker tray icon / Settings / General. Select checkboxExpose daemon on tcp://localhost:2375 without TLS
-
gradle buildDocker
Service contains TFS SDK
from Microsoft. You may download latest SDK and update JAR in libs
folder. Then update build.gradle
according to your changes