Questions tagged [docker-network]
256 questions
60
votes
7 answers
ERROR: 2 matches found based on name: network _default is ambiguous
I was building docker image using the command
docker-compose -f "docker-compose.yml" up -d --build
But it returns me an error
ERROR: 2 matches found based on name: network officeconverter_default is ambiguous
This is a bit clear that in my machine…

Dupinder Singh
- 7,175
- 6
- 37
- 61
35
votes
1 answer
What is the purpose of the "ipam" key in a Docker Compose config?
I am new to Docker but not so new I don't understand the cli of Docker. However I am very new to the Docker file and Docker Compose way of doing things. If someone could explain to me this section of the docker-compose.yml I would greatly appreciate…

nexusguy59
- 520
- 1
- 4
- 10
15
votes
2 answers
Is it terrible to use a unix domain socket to connect to Postgresql from a docker container?
Back story below, but here's the question: I've discovered that if I have postgresql running on my docker host, I can connect to it in a container via a domain socket mounted as a file:
docker run -v /var/run/postgresql/:/var/run/postgresql
This…

mlissner
- 17,359
- 18
- 106
- 169
15
votes
1 answer
Docker: Could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network
When I was trying to deploy my application with docker-compose I got back the following error:
Creating network "" with the
default driver
could not find an available, non-overlapping IPv4 address pool among…
user8194539
13
votes
2 answers
Docker Stack tasks Rejected because of Permission denied error
I tried to deploy a stack (contains one service) with docker stack deploy command and run 2 instance from my application on swarm! here is my docker-compose file:
version: "3"
services:
server:
image: makbn/thumbnailer-server:v1
deploy:
…

Mehdi Akbarian Rastaghi
- 485
- 6
- 26
13
votes
1 answer
How do I connect to local machine from inside of docker container created by docker-compose?
I have a docker container that has been created using docker-compose. Here is the yml file.
version: "3"
services:
redis:
image: "redis"
web:
image: "myimage"
ports:
- "8000:8000"
environment:
REDIS_HOST: redis
…

bellyflop
- 145
- 1
- 1
- 6
12
votes
1 answer
docker --net vs --network
i can't seem to find a good explanation for the reason behind using --net vs --network with docker.
--help doesn't show --net but only shows --network, can somebody please explain the difference ?
Thank you !

Mohamed Benkedadra
- 1,964
- 3
- 21
- 48
11
votes
4 answers
Nginx does not re-resolve DNS names in Docker
I am running nginx as part of the docker-compose template.
In nginx config I am referring to other services by their docker hostnames (e.g. backend, ui).
That works fine until I do that trick:
docker stop backend
docker stop ui
docker start…

Nikita Mendelbaum
- 659
- 5
- 16
10
votes
2 answers
Access a container by hostname in github actions from within an action
I start a docker container within my github action and try to access it from an action. But the action is not able to resolve the hostname. How do add my container to the same docker network as the action and let the action access it by its…

white_gecko
- 4,808
- 4
- 55
- 76
10
votes
1 answer
What is the extra container with "lb-" prefix in docker swarm network? How to set up docker network not to have that?
Docker network is created in a docker swarm, which contains several nodes, with this command:
docker network create --attachable --driver overlay [network-name]
And containers are attached to the network with "docker service create" command.
There…

gdenuf
- 840
- 1
- 12
- 16
8
votes
1 answer
Docker Compose use both host and bridge network
I have 2 images that I want to talk to each other via compose's default bridge network, but I also want them to be able to access my host network.
To allow images to talk to each other within compose's default bridge network, I don't need to do…

Connor Graham
- 263
- 3
- 8
8
votes
1 answer
Default network gateway value for docker-compose version 3
I'm creating a Nginx container using docker-compose under version 3.7
I'm trying to specify the ipam attribute. But when I read from the below official reference:
https://docs.docker.com/compose/compose-file/#network-configuration-reference
There is…

Binh Nguyen
- 1,891
- 10
- 17
8
votes
2 answers
How to delete/disable docker0 bridge on docker startup
Is there any way we can disable docker0 bridge on docker startup ?
Tried "bridge": "none" in daemon.json but its not working.
Also removed default docker bridge using "ip link delete docker0" but when we restart docker it came up automatically. So…

Jyothish
- 1,031
- 1
- 9
- 19
8
votes
1 answer
Can Testcontainers create docker network for me if it does not exist?
Looks like I need a network because I would like to reference one container by hostname from another.
I could also use the --link but it is deprecated and can disappear soon. That's why I wonder if Testcontainers can create a docker network for…

Kirill
- 6,762
- 4
- 51
- 81
7
votes
5 answers
The Name of Hyperledger Fabric Test Network is not detected by an Application given in the fabric samples
I just reinstalled Fabric Samples v2.2.0 from Hyperledger Fabric repository according to the documentation.
But when I try to run asset-transfer-basic application located in fabric-samples/asset-transfer-basic/application-javascript directory by…

sayhan
- 95
- 2
- 7