docker run --link db:database myimage

Category: Docker

docker run --link db:database myimage

Legacy: link a container to another by alias (use networks instead)

Legacy: creates a network connection between containers. Modern practice uses custom bridge networks instead.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.