我試圖讓helloworld樣本運行。問題是我的公司使用MITM代理,用它自己的HTTPS連接取代所有的證書。因此,所有嘗試訪問https網址的工具都會失敗。在查找Docker映像時無法獲取自簽名證書
在這種情況下,它是從官方下載註冊表碼頭工人形象代碼:
resource script '/opt/resource/check []' failed: exit status 1
stderr:
failed to ping registry: 2 error(s) occurred:
* ping https: Get https://registry-1.docker.io/v2/: x509: certificate signed by unknown authority
* ping http: Get https://registry-1.docker.io/v2/: x509: certificate signed by unknown authority
我嘗試添加了insecure_registries
選項,但似乎並沒有工作:
jobs:
- name: hello-world
plan:
- task: say-hello
config:
platform: linux
image_resource:
type: docker-image
source:
repository: ubuntu,
insecure_registries: ["docker.io:80"]
run:
path: echo
args: ["Hello, world!"]
任何想法我可能做錯了什麼?
怎麼樣,而不是'docker.io'使用'註冊表1.docker.io' –
感謝,但我想,已經,是我的第一次嘗試 –
你的情況如何設置concourse ci? –