Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker compose can not link a exists running docker container. #1163

Closed
ghost opened this issue Mar 24, 2015 · 3 comments
Closed

docker compose can not link a exists running docker container. #1163

ghost opened this issue Mar 24, 2015 · 3 comments

Comments

@ghost
Copy link

ghost commented Mar 24, 2015

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.

@dnephin
Copy link

dnephin commented Mar 24, 2015

You can link to an existing container with external_links

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

@dnephin dnephin closed this as completed Mar 24, 2015
@ghost
Copy link
Author

ghost commented Mar 24, 2015

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

@yogeshagr
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants