deis/deis — pull request #873 by mboersma (2014-05-02 20:43:26+00:00)
Title: fix(docker): refresh ARP entry each time a container comes up

Deis app containers sometimes run into https://github.com/dotcloud/docker/issues/4827. As @gabrtv noted there, the Docker proxy isn't answering an ARP request in a timely fashion, possibly because it reused an IP address and retained a stale MAC address in its cache. There is an outstanding patch that may address this in Docker 0.11.0 that we will test.

This hack/fix adds ExecStartPost commands to Deis app container systemd units, such that the host will send a fresh ARP request using `arping` (included in CoreOS) once `docker inspect` gives up the container's IP address. I can demonstrate empirically that this works around the issue: no more timeouts or 504s.