Compose: docker compose can not link a exists running docker container.

Created on 24 Mar 2015  路  3Comments  路  Source: docker/compose

docker compose can not link a exists running docker container.

In our production servers, we already running containers. such as redis, memcached, mysqld

But docker compose can not link exists docker container.

so Use less for production environment.

Most helpful comment

You can link to an existing container with external_links

https://docs.docker.com/compose/yml/#external_links

All 3 comments

You can link to an existing container with external_links

https://docs.docker.com/compose/yml/#external_links

One more question, when did this feature being added into compose? I have an very old fig installed. i wonder if i need to upgrade to compose

For me it throws:
dial tcp: lookup logstash on 127.0.1.1:53: no such host

It is not able to resolve the container name, to which I want to link.

Was this page helpful?
0 / 5 - 0 ratings