Issues with docker build command and github

I’m trying to run a dev env as docker machine,

I created the following docker file

  • Docker: setup proxy to download images
  • Not able to login in docker private repositry
  • Docker automated build shows empty Dockerfile
  • Error creating default \“bridge\” network: cannot create network (docker0): conflicts with network (docker0): networks have same bridge name
  • Docker containers on AWS
  • Can't build docker image via gradle on Windows 10
  • FROM rails:4.2
    MAINTAINER Chen Kinnrot <kinnrot@gmail.com>
    RUN mkdir -p /var/app
    COPY Gemfile /var/app/Gemfile
    WORKDIR /var/app
    RUN bundle install
    CMD rails s -b 0.0.0.0
    

    When Running docker build -t dev .

    I get the follwing message

    fatal: unable to connect to github.com:
    github.com: Name or service not known

    Why is that, and how can I solve this annoying issue?

  • Apache Kafka / How to rolling upgrade to 0.10.2.0 with docker
  • Writing to docker volume from Dockerfile does not work
  • ECS Service other than HTTP keeps restarting
  • Restarting docker engine and keeping containers running
  • Cannot start simple docker container with “docker start” command from created image
  • Docker error on Windows 2016 “Client.Timeout exceeded while awaiting headers”
  • One Solution collect form web for “Issues with docker build command and github”

    This is a known issue with VirtualBox / boot2docker; when switching networks, boot2docker sometimes looses its DNS information. See these issues; https://github.com/boot2docker/boot2docker/issues/776, https://github.com/docker/machine/issues/1857

    You can either try to restart the machine;

    docker-machine stop default
    docker-machine start default
    

    Or set the right name server to the virtual machine;

    docker-machine ssh default
    echo "nameserver 8.8.8.8" > /etc/resolv.conf
    
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.