Last active
March 10, 2021 15:45
-
-
Save slava-konashkov/a4b484aeff6cc2ccc9a45faa332dc919 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Update IPs on Mac | |
Create a file com.ips.docker_127005_alias.plist | |
com.ips.docker_127005_alias.plist | |
<?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>com.ips.docker_127005_alias</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>ifconfig</string> | |
<string>lo0</string> | |
<string>alias</string> | |
<string>127.0.0.5</string> | |
</array> | |
<key>RunAtLoad</key> | |
<true/> | |
</dict> | |
</plist> | |
Copy that to the /Library/LaunchDaemons/ folder | |
Restart Mac system | |
You can stop a launch daemon service using the unload subcommand of launchctl. | |
$ sudo launchctl unload /System/Library/LaunchDaemons/<daemon name>.plist | |
To start a disabled or stopped launch daemon: | |
$ sudo launchctl load /System/Library/LaunchDaemons/<daemon name>.plist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment