Created
November 16, 2017 13:40
-
-
Save EugenMayer/a0d0d603a769aa61c8b462b176dbdba7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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