Failure Building Docker Image - No Internet Access

Comments

6 comments

  • Avatar
    Firewalla

    Check your DNS server, make sure you are not doing filtering, or have a customized DNS server doing DNS filtering

    0
    Comment actions Permalink
  • Avatar
    Ciaran Mcguire

    Hi Firewalla,

    I am running the Firewalla Purple pretty much standard.

    I am using the Cloudflare DNS servers 1.1.1.1 and 1.0.0.1.  I have also checked the resolution from the SSH console by performing the following command,

    curl ipinfo.io

    Which successfully returns the JSON payload result.

    The DNS issue or(internet access issue) appears to only be an issue when its running from the Docker context within the Docker build command.

    Is anything additional needed to allow Docker context to access the internet?.

     

    Ciaran

     

     

     

     

    0
    Comment actions Permalink
  • Avatar
    Firewalla

    I don't think you will need to do anything special to access the internet ... for example, see this https://help.firewalla.com/hc/en-us/articles/360053441074-Guide-How-to-run-UniFi-Controller-on-the-Firewalla-Gold-or-Purple-

    Unless the docker builder itself needs something special, you will have to ask the originator.

    0
    Comment actions Permalink
  • Avatar
    Alak

    I know this is long after the question was asked but in case someone else faces this issue, try adding --network=host to your docker build command to resolve this issue.

    sudo docker build ... --network=host
    0
    Comment actions Permalink
  • Avatar
    Jeff Whiting

    Thank you for you post Alak! It solved my problem.

    1
    Comment actions Permalink
  • Avatar
    Alak

    @Jeff you're welcome!  I'm glad it helped somone!

    0
    Comment actions Permalink

Please sign in to leave a comment.