Skip to content

Instantly share code, notes, and snippets.

@kgust
kgust / README.md
Last active May 29, 2019 13:02 — forked from ralphschindler/README.md
Docker For Mac - De-facto Host Address Alias (10.254.254.254) - "The 10254 Trick".

Docker (Mac) De-facto Standard Host Address Alias

This launchd script will ensure that your Docker environment on your Mac will have 10.254.254.254 as an alias on your loopback device (127.0.0.1). The command being run is ifconfig lo0 alias 10.254.254.254

Installation

Copy/Paste the following in terminal with sudo (must be root as the target directory is owned by root)...

sudo curl -o /Library/LaunchDaemons/info.kevingustavson.docker_10254_alias.plist https://gist.github.com/kgust/3fe1ae7420e2b35ed3b40eb3feef4efe/raw/info.kevingustavson.docker_10254_alias.plist