I've created DockerImage for virtual building agent machine for CI.
On host machine I have installed JAVA. JAVA is linked to docker container via VOLUME. host(with Java) -- VOLUME -- docker container
java is working perfectly from docker container.
Project is using gradle. When gradle tries to download dependencies, error:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
When I use wget to download the very same URL as gradle, it works on both -- inside a docker container and host machine.
Host machine/docker container: ubuntu:16:04
Java: openjdk version "1.8.0_121"
我没有挂载/etc/java-8-openjdk
和/etc/ssl
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.