in docker can't route to internet


Recommended Posts

Docker containers in different networks (one is bridge and the other one is eth0/br0) can not communicate with each other, this is a Docker restriction.

 

To make this work, the containers need to be of the same network type.

 

If you are running Unraid 6.8.2 or newer you can try to enable the setting "Host access to custom networks" and test if it works (I have never tested this, but it may work).

Edited by bonienl
Link to comment
1 minute ago, bonienl said:

Docker containers in different networks (one is bridge and the other one is eth0/br0) can not communicate with each other, this is a Docker restriction.

 

To make this work, the containers need to be of the same network type.

I don't need docker containers  communicate with each other . My problom is my docker containers  con't route to the Internet please look image.png

Link to comment
5 minutes ago, sheiy said:

I don't need docker containers  communicate with each other

Sorry, I misread the openwrt VM and thought it was a Docker container.

 

A docker container on a bridge network uses address translation (NAT), that's why you see the 172.17.x.x address.

The traceroute stops after openwrt, which indicates openwrt does not forward the packets.

Check if openwrt has some firewall rule for NATed addresses in place which blocks the communication.

 

Link to comment
59 minutes ago, bonienl said:

Sorry, I misread the openwrt VM and thought it was a Docker container.

 

A docker container on a bridge network uses address translation (NAT), that's why you see the 172.17.x.x address.

The traceroute stops after openwrt, which indicates openwrt does not forward the packets.

Check if openwrt has some firewall rule for NATed addresses in place which blocks the communication.

 

can you help me to set the openwrt config? I try and search on google but no ideas

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.