garethr/garethr-docker — pull request #16 by FreakyDazio (2013-11-10 18:55:52+00:00)
Title: Added support for the "link" and "name" options

Docker 0.6.5 introduced a service discovery feature that allowed containers to be started as child containers passing aliased environment variables to the parent container.

http://blog.docker.io/2013/10/docker-0-6-5-links-container-naming-advanced-port-redirects-host-integration/

I have tested on version 0.6.6 but not sure how this will work on prior versions.