简体   繁体   中英

Docker-compose - mongodb could not be authenticated

After installing Docker Toolbox on Windows 10 and starting docker-machine, I run docker-compose up , I run into this error:

The following packages cannot be authenticated mongodb-org-shell

The code in the 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

It's using ubuntu trusty as per mongodb docs recommendations. https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/

What am I missing for this to successfully download?

现在,我已经将最后两行更新为--force-yes来绕过身份验证。

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM