2016-08-03 102 views
0

在Windows 10上安裝泊塢窗工具箱和啓動泊塢窗機後,我跑docker-compose up,我碰到這個錯誤:泊塢窗 - 撰寫 - MongoDB中無法被驗證

The following packages cannot be authenticated mongodb-org-shell

在dockerfile的代碼:

RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 RUN echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.2.list RUN apt-get update RUN apt-get install -y mongodb-org-shell RUN apt-get install -y mongodb-org-tools

這是使用Ubuntu作爲可信賴的MongoDB的每個文檔的建議。 https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/

我錯過了什麼才能成功下載?

回答

0

現在我已經更新了最後兩行,讓--force-yes繞過驗證。

RUN apt-get install -y --force-yes mongodb-org-shell RUN apt-get install -y --force-yes mongodb-org-tools