2016-08-03 40 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