Questions tagged [docker-networking]

57 questions
6
votes
0 answers

Docker on Ubuntu Server (Rasberry Pi) failed to create endpoint on network bridge, operation not supported

I am using Ubuntu 21.10 on a Rasberry Pi 4 (aarch64) and when I try to run a Docker (using version 20.10.7) container it returns the following error message: docker: Error response from daemon: failed to create endpoint goofy_hypatia on network…
Potatoes
  • 69
  • 3
3
votes
1 answer

Why is firewalld allowing public traffic to my non-public ports, bound to Docker containers?

I'm trying to implement a pretty simple firewall in Fedora, where the public internet can access SSH, HTTP, HTTPS and Cockpit, but nothing else. Meanwhile, the servers run microservices via Docker that can talk to each other on ports 8000-8999. I…
3
votes
2 answers

Docker Swarm. Containers in one overlay network but on different nodes can't reach each other via tcp

I have a docker swarm cluster with 12 nodes. Containers deployed on single node can reach each other fine via overlay network, but when they are deployed on different nodes, there are connectivity issue: hostnames are resolved and I can ping one…
hattivatt
  • 71
  • 4
3
votes
1 answer

Docker bridge network shadows IP of SSH client, how to recover gracefully?

We're running a RHEL 7 VM with Docker to host a couple of internal services. Last time I ran docker-compose up to spin up a new Docker container, I lost my SSH connection to the server and could also not re-establish it. A colleague was able to…
2
votes
0 answers

Docker Swarm over IPSec VTI (Unifi site-to-site)

I have setup a Docker Swarm using 3 servers; Master node Home - local IP 192.168.178.250 Worker node 1 Remote - local IP 10.10.10.200 Worker node 2 Remote - local IP 10.10.10.250 Both sites have a Unifi gateway (USG Pro/USG) and I've setup a…
GRX
  • 71
  • 4
2
votes
1 answer

Docker compose - disable default gateway route

Is it possible to prevent docker from defining default route when using docker-compose yaml file? If my docker-compose.yaml defines network ipam with default driver and any subnet, seams like docker (or docker compose) automatically assigns default…
Boris
  • 173
  • 10
2
votes
1 answer

What routing algorithm does the docker mesh use?

We want to know what algorithm the Docker mesh uses to route requests to containers. Here's why: We deploy our applications to self-hosted docker swarms. We use the docker routing mesh to direct traffic to the individual nodes, like this: internet…
Wayne Conrad
  • 635
  • 1
  • 7
  • 20
2
votes
2 answers

can't initialize iptables table 'nat' under qemu

I am facing an issue while starting docker inside s390x container under qemu on Ubuntu 18.04 host running on amd64. Steps followed (On amd64 host): docker run --rm --privileged multiarch/qemu-user-static --reset -p yes docker run --privileged -it…
2
votes
1 answer

Accessing different host's docker containers via portainer

I have a few containers (running various services) on my ubuntu server and i manage those containers via portainer, which is also one of these containers. I would like to also manage a pihole container (running on a different server (raspberry pi))…
1
vote
0 answers

Override hostname in all docker containers

My server has got a publicly accessible hostname, which obviously points to the public ip address of the network. This works great to access the server from elsewhere. When using this hostname/public ip address internally... nothing will happen,…
Jelle De Loecker
  • 1,055
  • 6
  • 16
  • 29
1
vote
0 answers

Docker Swarm Ports becomes non responsive

I am running a swarm cluster with only 3 masters. I have a few ports exposed across various services in the swarm. And an Nginx service running in all 3 nodes acts as a reverse proxy. When I start the stacks, all these ports are accessible and…
1
vote
1 answer

Still can't connect from my grafana docker container to prometheus

...after having followed a bunch of tutorials, e.g. https://medium.com/@TimvanBaarsen/how-to-connect-to-the-docker-host-from-inside-a-docker-container-112b4c71bc66 I started the grafana container with: %box docker run -d -p 3000:3000…
transient_loop
  • 459
  • 1
  • 4
  • 11
1
vote
2 answers

Set MacVLAN in Portainer to get IP from DHCP server

I have a Portainer VM with 3 interfaces attached (eth0-eth2). I would like the containers to request IP from the DHCP Server that is located on each interface at x.x.x.1. Lets take as an example eth0: The subnet of this interface is 172.16.0/27 and…
Bobys
  • 133
  • 6
1
vote
1 answer

Docker creates additional bridge in wrong IP range

I followed the answers here and changed the daemon.json to: { "bip": "10.200.0.1/24", "default-address-pools": [ { "base":"10.201.0.0/16","size":24 }, { "base":"10.202.0.0/16","size":24 } ] } as I wanted to change the IP range…
Sim
  • 111
  • 6
1
vote
0 answers

Can't curl Docker Containers

I'm trying to setup docker on a company VM on Ubuntu 20.04. At first I couldn't even start the service because it seems there was a conflict with the pre-existing routes. If I run the route command I get this: Destination Gateway Genmask…
Alex Weitz
  • 123
  • 7
1
2 3 4