kuchenblech
Cadet
- Joined
- Dec 19, 2020
- Messages
- 3
Hi everyone,
I was glad to see the new release and have already upgraded from 20.10.
I have checked out the new Applications GUI and set up the Plex container.
However, there are also a couple of docker-compose stacks that I would like to continue using as is, until gaining some experience with Kubernetes.
As mentioned in another post it should be possible to just run docker-compose up. And indeed, all images come up, but they have no network access. The docker network is created but I cannot reach any host outside, and have no DNS either.
Consider this:
The only host that is reachable by ping from inside is the gateway 172.17.0.1, but nothing beyond that. Also, (I guess as a consequence) hostname resolution doesn't work.
Is there any setting that I am missing to get the routing to work?
Best
Thomas
I was glad to see the new release and have already upgraded from 20.10.
I have checked out the new Applications GUI and set up the Plex container.
However, there are also a couple of docker-compose stacks that I would like to continue using as is, until gaining some experience with Kubernetes.
As mentioned in another post it should be possible to just run docker-compose up. And indeed, all images come up, but they have no network access. The docker network is created but I cannot reach any host outside, and have no DNS either.
Consider this:
Code:
$ docker create network foo $ docker run -it --network foo alpine /bin/sh / # ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever 120: eth0@if121: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1500 qdisc noqueue state UP link/ether 02:42:ac:11:00:02 brd ff:ff:ff:ff:ff:ff inet 172.17.0.2/16 brd 172.17.255.255 scope global eth0 valid_lft forever preferred_lft forever / # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 172.17.0.1 0.0.0.0 UG 0 0 0 eth0 172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 / # cat /etc/resolv.conf search fritz.box nameserver 127.0.0.11 options ndots:0
The only host that is reachable by ping from inside is the gateway 172.17.0.1, but nothing beyond that. Also, (I guess as a consequence) hostname resolution doesn't work.
Is there any setting that I am missing to get the routing to work?
Best
Thomas