When I try to build my container I get the following errors:
E: Unable to locate package wget
E: Unable to locate package unzip
E: Package 'git' has no installation candidate
E: Unable to locate package default-jdk
The command '/bin/sh -c apt-get install wget unzip git default-jdk -y' returned a non-zero code: 100
Here's a list of commands which are supposed to be executed:
RUN apt-get update
RUN apt-get install wget unzip git default-jdk -y
From my limited understanding of linux and docker, it's clear that docker has no access to internet.
Docker version:
- Server Version: 20.10.2
- Docker Inc., v0.9.1-beta3
- Docker Inc., v0.5.1-docker
Ubuntu: 16.04LTS
Things I tried:
- added to
/etc/default/docker
this lineDOCKER_OPTS="--ip-masq=true --dns MY_DNS1 --dns MY_DNS2"
- commeted out
#dns=dnsmasq
from/etc/NetworkManager/NetworkManager.conf