当Docker关闭时如何安装Java

时间:2019-03-18 09:34:19

标签: java docker installation

我正在使用docker(Docker版本1.13.1,内部版本07f3374 / 1.13.1)运行jenkins(jenkins / jenkins:2.164.1),使用openjdk运行jenkins。我删除了容器的openjdk,并在容器中安装了Oracle jdk。但是我重新启动容器失败,docker logs --tail="100" 4ed55631985b显示此错误:

INFO: I/O exception (javax.net.ssl.SSLException) caught when processing request: java.lang.RuntimeEx                                         ception: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parame                                         ter must be non-empty
Mar 18, 2019 9:08:01 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
Mar 18, 2019 9:08:01 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (javax.net.ssl.SSLException) caught when processing request: java.lang.RuntimeEx                                         ception: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parame                                         ter must be non-empty
Mar 18, 2019 9:08:01 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
Mar 18, 2019 9:09:24 AM winstone.Logger logInternal
INFO: JVM is terminating. Shutting down Jetty
/usr/local/bin/jenkins.sh: line 30: exec: java: not found
/usr/local/bin/jenkins.sh: line 30: exec: java: not found

如何在集装箱停运时将其固定?我应该重新安装整个docker应用程序吗?

0 个答案:

没有答案