Code Monkey home page Code Monkey logo

Comments (6)

pjdog avatar pjdog commented on May 19, 2024 1

I think theres an additional piece of information still missing. I think mac dockers interacts with the virtual machine interfaces. I have two interfaces to the machine this is running on, ethernet en3 and wifi en0. Both give the same log in dhcp except replacing enp2s0 in the message with the other two. I think only eth0 is available in a docker container for mac. I verified that by going into the containers and running ifconfig. Heres the documentation: https://docker-docs.uclv.cu/docker-for-mac/networking/#:~:text=Known%20limitations%2C%20use%20cases%2C%20and%20workarounds%20%F0%9F%94%97%201,two%20scenarios%20that%20the%20above%20limitations%20affect%3A%20

I changed that line to replace enp2s0 with eth0 and now the dhcp container is no longer constantly unhealthy and restarting. However; we still have only a response of 502 bad gateway when you actually go to the url/ip of the adguardhome. I think I need to reclone this repo and pruin any images to make sure I'm not carrying along wrong info (for example I've changed the ip since I made the letsencrypt acme.json). Then I think i'll have to change the rest of the containers to fit the port mapping detailed on the above link

from docker-compose-nas.

AdrienPoupa avatar AdrienPoupa commented on May 19, 2024

Hi there, I'm not sure to understand the "not resolving"; are you talking about the Adguard Home dashboard itself or websites not resolving due to a DNS issue after setting Adguard Home as your resolver?

from docker-compose-nas.

pjdog avatar pjdog commented on May 19, 2024

Sorry I've spent some time making sure I haven't missed something. Thank you again for your help.

For some reason I can't as you said get the web ui to resolve, and cant reach adguard home. I'm running on a mac which may be part of the reason, but I have an ethernet and a wifi connection. I've tried setting the adguardhome address to the ip of either of those. I've only once been able to reach the adguard setup page. I cannot for the life of me figure out why they wont resolve. I believe it has something to do with the way mac interacts with the vpn and ethernet adaper. Here are the relevant logs from the failing dhcp container2024-01-09 20:50:30 exiting. 2024-01-09 20:51:30 Requesting: enp2s0 as upstream: N downstream: Y 2024-01-09 20:51:30 Requesting: br_adguard as upstream: Y downstream: N 2024-01-09 20:51:30 Internet Systems Consortium DHCP Relay Agent 4.4.3-P1 2024-01-09 20:51:30 Copyright 2004-2022 Internet Systems Consortium. 2024-01-09 20:51:30 All rights reserved. 2024-01-09 20:51:30 For info, please visit https://www.isc.org/software/dhcp/ 2024-01-09 20:51:30 Listening on LPF/br_adguard/02:42:80:91:01:fd 2024-01-09 20:51:30 Sending on LPF/br_adguard/02:42:80:91:01:fd 2024-01-09 20:51:30 Failed to get interface index: No such device

from docker-compose-nas.

AdrienPoupa avatar AdrienPoupa commented on May 19, 2024

Thanks for the details, I think this makes sense: Failed to get interface index: No such device. On Mac, there is no enp2s0 network interface, it will usually be one of enX. You may use ifconfig to determine which one you are using, and replace enp2s0.

from docker-compose-nas.

pjdog avatar pjdog commented on May 19, 2024

Also I really appreciate you coming back and helping multiple times. I will submit the changes necessary into a commit changing the README.md detailing how I got this working if I ever do.

from docker-compose-nas.

AdrienPoupa avatar AdrienPoupa commented on May 19, 2024

In theory, network_mode: host should make the host network interfaces available in Docker, but it looks like it does not work on Windows and Mac: https://docs.docker.com/network/drivers/host/

The host networking driver only works on Linux hosts, and is not supported on Docker Desktop for Mac, Docker Desktop for Windows, or Docker EE for Windows Server.

As a workaround, I'd disable DHCP in Mac/Windows installations and use a native DHCP server if needed, or use the one in your router.

I don't think the bad gateway in Adguard Home is related though, are there other logs?

from docker-compose-nas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.