Skip to content

Instantly share code, notes, and snippets.

@EugenMayer
Created November 16, 2017 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EugenMayer/a0d0d603a769aa61c8b462b176dbdba7 to your computer and use it in GitHub Desktop.
Save EugenMayer/a0d0d603a769aa61c8b462b176dbdba7 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>de.kontextwork.docker.loopback</string>
<key>ProgramArguments</key>
<array>
<string>ifconfig</string>
<string>lo0</string>
<string>alias</string>
<string>172.31.31.254</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
copy that file to `/Library/LaunchDaemons/com.my.docker.loopback.plist`
restart your mac, now your alias ip for 127.0.0.1 is 172.31.31.254 which you can use from docker-containers to reach your host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment