對于以下問題,我最終的解決方法是說服我們的IT人員不要讓dockerhub注冊表處于中間位置。a,我無能為力。我最初嘗試使Docker在運行10.8.5的Mac上運行時遇到問題??磥砦夜镜淖C書重寫代理似乎在獲取圖像:orflongpmacx8:docker pohl_longsine$ docker run hello-worldUnable to find image 'hello-world:latest' locallyPulling repository hello-worldFATA[0001] Get https://index.docker.io/v1/repositories/library/hello-world/images: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "bcauth") (實際上,當我登錄不帶代理代理的來賓無線設備時,我可以跳過這一步。但是,我需要弄清楚如何通過代理服務器來完成這項工作,因為使用來賓無線設備是不可行的長期解決方案。)從表面上看,我的問題似乎很像在這個問題上回答的問題。但是,該問題的可接受答案對我不起作用,因為他們討論的root_unix.go文件在Mac上不會被調用。(通過瀏覽,我想可能會涉及到root_cgo_darwin.go和/或root_darwin.go。)這實際上并沒有告訴我,在操作上,我需要做些等效的工作來安裝某種受信任的證書。我設法獲得了一份*.cer我認為是我需要的文件,但是我對如何處理卻一無所知。我希望有人能指出我正確的方向。
3 回答

慕姐4208626
TA貢獻1852條經驗 獲得超7個贊
根據boot2docker自述文件
Insecure Registry
As of Docker version 1.3.1, if your registry doesn't support HTTPS, you must add it as an insecure registry.
$ boot2docker init
$ boot2docker up
$ boot2docker ssh
$ echo 'EXTRA_ARGS="--insecure-registry <YOUR INSECURE HOST>"' | sudo tee -a /var/lib/boot2docker/profile
$ sudo /etc/init.d/docker restart
then you should be able to do a docker push/pull.

嗶嗶one
TA貢獻1854條經驗 獲得超8個贊
如果您使用docker-machine
編輯$ USER / .docker / machine / machines / default / config.json
"EngineOptions": {
"InsecureRegistry": [
"XXX.XXX.virtual"
],
}
- 3 回答
- 0 關注
- 286 瀏覽
添加回答
舉報
0/150
提交
取消