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: 8.8.8.8 8.8.4.4 So I did the same for docker.
I updated /etc/default/docker. I also explicitely set the DNS via docker-compose.
Example: nginx: restart: always build: ./nginx/ ports: - “8000:80” - “8443:443” dns: - 8.8.8.8 - 8.8.4.4
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?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
It seems like this error has nothing to do with DNS but rather that the apt process does not understand https based on the error:
The method driver /usr/lib/apt/methods/https could not be found.
You may want to verify your apt sources and try an apt-get update also. The following may be helpful in resolving this issue:
http://askubuntu.com/questions/104160/method-driver-usr-lib-apt-methods-https-could-not-be-found-update-error
Please let us know if there is anything else we can help you with.
Best, Mike DigitalOcean Support Check out our community for great tutorials, articles and FAQs! https://digitalocean.com/community
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.