Skip to content

Instantly share code, notes, and snippets.

@mmourafiq
Created December 28, 2016 13:03
Show Gist options
  • Save mmourafiq/9e758310b4e9d406ebcb2d7f5380da39 to your computer and use it in GitHub Desktop.
Save mmourafiq/9e758310b4e9d406ebcb2d7f5380da39 to your computer and use it in GitHub Desktop.
MacOS script to start docker sock for Jetbrains docker integration with Docker for Mac.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>docker.sock</string>
<!-- This file should be ~/Library/LaunchAgents/docker.sock.plist -->
<!-- Start with: launchctl load ~/Library/LaunchAgents/docker.sock.plist -->
<!-- Configure jetbrains with tcp://localhost:2375 -->
<key>OnDemand</key>
<false/>
<key>UserName</key>
<string>aReasonableUserName</string>
<key>GroupName</key>
<string>aReasonableGroup</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/socat</string>
<string>TCP-LISTEN:2375,reuseaddr,fork,bind=localhost</string>
<string>UNIX-CONNECT:/var/run/docker.sock</string>
</array>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment