Questions tagged [docker-link]
10 questions
3
votes
0 answers
GET http://backend/api/countries net::ERR_NAME_NOT_RESOLVED
I am actually getting error when making CORS calls to the backend:
GET http://backend/api/countries net::ERR_NAME_NOT_RESOLVED
I am using for that docker-compose:
docker-compose.yml
version: '2'
networks:
minn_net:
services:
backend:
…

Amine Jallouli
- 3,919
- 8
- 36
- 73
3
votes
2 answers
Link containers in docker (RancherOS and command line)
I run a RancherOS to run docker containers
I created a container on the GUI to run my databases (image: mysql, name: r-mysql-e4e8df05). Different containers use it.
I can link other containers to it on the GUI
This time I would like to automate…

Tomi
- 3,370
- 1
- 16
- 26
2
votes
1 answer
containers not communicating in network in docker-compose
I have a docker-compose networking issue. So i create my shared space with containers for ubuntu, tensorflow, and Rstudio, which do an excellent job in sharing the volume between them and the host, but when it comes down to using the resources of…

Momchill
- 417
- 6
- 15
2
votes
1 answer
'--link' does not seem to work to connect two Docker containers
I would like to run MongoDB in a container, this works:
docker run -p 27017:27017 --name cdt -d mongo
then I want to run a server in another container, like so:
docker run --name foo --link cdt:mongo exec /bin/bash -c "node server.js"
The node.js…

Alexander Mills
- 90,741
- 139
- 482
- 817
1
vote
1 answer
How to avoid the "Docker cannot link to a non running container" error when the external-linked container is actually running using docker-compose
What we want to do:
We want to use docker-compose to link one already running container (A) to another container (B) by container name. We use "external-link" as both containers are started from different docker-compose.yml files.
Problem:
Container…

hb0
- 3,350
- 3
- 30
- 48
0
votes
0 answers
Get host-address of other containers
I have a specific issue related to Docker compose.
I am currently using docker compose version: 3.8
I have a gateway build in nodejs
I need to get the container address of other application available in the gateway as environment variable.
I looked…

Walter
- 80
- 5
0
votes
2 answers
Access port of one container from another container
I have a postgres database in one container, and a java application in another container. Postgres database is accessible from port 1310 in localhost, but the java container is not able to access it.
I tried this command:
docker run…

Kaustubh Trivedi
- 378
- 2
- 8
0
votes
2 answers
Why would i use docker links when i still need to hardcode the address?
Hello i have not understood the following :
-In the docker world we have from what i understood :
A port that the application exposes
A port that the container exposes for the application
A port that the host maps the container port
So given these…

Bercovici Adrian
- 8,794
- 17
- 73
- 152
0
votes
1 answer
Could not find docker container on link
I'm trying to create a docker container 'bar_foo' on node1.com that links to another container on another node 'foo_bar:node2.com'.
The problem is i'm getting error.
"Could not get container for foo_bar"
i've made sure that the foo_bar container…

A.Jac
- 1,443
- 3
- 17
- 24
0
votes
1 answer
Docker Networking - to link or not to link?
We have 1000s of python unit tests and to run them efficiently we parallelize them in batches. Each batch has its own Docker environment consisting of the core application and a mongo instance. It's setup something like this:
docker network create…

Sam Kenny
- 395
- 4
- 9