Docker + DigitalOcean DNS resolution
I’m running Ubuntu 15.10 hosted by digitalocean which hosts a few docker environments that are running. This used to work before, but lately no matter what I do I can’t seem to get internet access inside the dockerize container.
My development environment is also Ubuntu 15.10 and that seems to work perfectly fine.
I VPS dns is set to google’s DNS: 126.96.36.199 188.8.131.52 So I did the same for docker.
I updated /etc/default/docker. I also explicitely set the DNS via docker-compose.
Then when I try to build the image. using docker or docker-compose I get the following errors.
Step 5 : RUN apt-get update; apt-get install links inetutils-telnet nmap -y
—> Running in 345b2d3ce907
E: The method driver /usr/lib/apt/methods/https could not be found.
Reading package lists…
Building dependency tree…
Reading state information…
E: Unable to locate package links
E: Unable to locate package inetutils-telnet
E: Unable to locate package nmap
Does anyone have any suggestions? I mean I could push every image up to docker-hub and pull them down, but that seems silly. There’s really no reason I should be able to re-build the image in digitaloceans environment.
Any thoughts / suggestions?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×