2016-05-10 75 views
0

我有一個Docker安全註冊表設置,我想從我的Mac推/拉圖像。我已經在Mac安裝泊塢窗快速啓動終端,我可以驗證到註冊表中的唯一方法是將Docker註冊表證書添加到我的Mac上的Docker應用程序

1. Do a docker-machine ssh default 
2. Drop the CRT file in /etc/docker/certs.d/abc-registry.com/ca.crt 
3. sudo /etc/init.d/docker restart 

如果我不這樣做在每次啓動上述步驟,我得到以下錯誤:

v2 ping attempt failed with error: Get https://abc-registry.com/v2/: x509: certificate signed by unknown authority 
v1 ping attempt failed with error: Get https://abc-registry.com/v1/_ping: x509: certificate signed by unknown authority 

有沒有辦法將證書永久添加到docker?或停止碼頭應用程序重新生成證書?

回答

0

https://github.com/SvenDowideit/boot2docker/blob/4942238743be6a4c6cb930353c7f09dc01006cfa/README.md

From Boot2Docker version 1.6.0, you can add your Registry server's public certificate (in .pem format) into the /var/lib/boot2docker/certs/ directory, and Boot2Docker will automatically load it from the persistence partition at boot.

+0

試試這個但這是適用於boot2docker但沒有爲搬運工終端Mac應用程序嗎? – KarthikJ

+0

Boot2docker實際上是用於'docker終端mac應用程序'的操作系統映像,所以是的,它應該可以工作。 –

相關問題