在我的docker文件中,我有以下命令
RUN wget -o test.jar https://bintray.com/artifact/download/thesamet/maven/gerrit-saml-plugin-2.11.4-2.jar
但是在构建中,我得到以下错误:
The command '/bin/sh -c wget -o test.jar https://bintray.com/artifact/download/thesamet/maven/gerrit-saml-plugin-2.11.4-2.jar' returned a non-zero code: 8
我尝试了
--no-check-certificate
和-U
,但遇到了相同的错误。
最佳答案
下面的命令有效。我应该使用ADD
ADD https://bintray.com/artifact/download/thesamet/maven/gerrit-saml-plugin-2.11.4-2.jar .
关于bash - Docker:https的wget不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34125989/