RUN git config --global httpproxy http19216844377890 && git -c sslVerify=false fetch -q --depth 1 origin v170 +refstagsrefstags && git checkout -q FETCH_HEAD#0 0890 error key does not contain a sectio
这个错误是因为命令中使用了"-c sslVerify=false"参数,但是该参数没有被正确解析。可以尝试将该参数移动到"git config"命令中:
RUN git config --global http.proxy http://192.168.44.37:7890
RUN git config --global --add http.sslVerify false
RUN git fetch -q --depth 1 origin "v1.7.0" +refs/tags/*:refs/tags/* && git checkout -q FETCH_HEAD
这里使用了"git config --global --add http.sslVerify false"命令来添加"sslVerify"配置项,并将其设置为"false"。然后再执行"git fetch"和"git checkout"命令即可。
原文地址: https://www.cveoy.top/t/topic/eHw2 著作权归作者所有。请勿转载和采集!