Closed maksimt closed 6 years ago
It was a DNS issue,
For docker run --dns=8.8.8.8
works, but for build
there is no --dns
option. Instead, I had to prepend
echo "search dns.example.com" > /etc/resolv.conf && echo "nameserver 10.1.35.1" > /etc/resolv.conf
to the sudo apt-get
RUN and the mvn clean
lines.
@maksimt I am sorry that you encountered this problem. Thanks for posting the solution :+1:
Hi I am trying to build the docker container. The reason is I am trying to evaluate a lot of different topic models (hyper parameter tuning), and using the web API as well as the
jar
is really slow.I issue the command:
docker build -t palmetto .
The error seems to be about the docker not being able to resolve the apt-get repository:
I am new to docker. I tried the default
FROM tomcat:8.0.32-jre8
as well asFROM tomcat:8.0.47-jre8
andFROM tomcat:9.0.1-jre8
. All lead to the same error.