this post was submitted on 21 Nov 2023
5 points (100.0% liked)

Linux 101 stuff. Questions are encouraged, noobs are welcome!

1086 readers
1 users here now

Linux introductions, tips and tutorials. Questions are encouraged. Any distro, any platform! Explicitly noob-friendly.

founded 2 years ago
MODERATORS
 

Title. I'm trying to expose my nextdns ip (running on docker) to another network.

Thanks in advance.

you are viewing a single comment's thread
view the rest of the comments
[–] bulwark 0 points 1 year ago

Docker has 4 different types of network modes. Bridge, Host, Overlay, Macvlan. If you want your container to have an external IP your should use Host.

https://docs.docker.com/network/network-tutorial-host/