Docker Community Forums

Share and learn in the Docker community.

Replace all linked containers with the Docker Network


(Dustin) #1

I’m using Docker 1.9.1 (latest as of this writing), and am very familiar with linking containers.

Lately, the documentation pages seem to prefer using the Docker Network versus linking containers (calling them “legacy” links). Is this the new way in general to network containers?

My use case is attaching a Postgres container to a Tomcat or a private Artifactory container. Is it preferred to use the Docker Network to do that or is linking still how this is achieved?

Thank you,
Dustin