Update mongodb.md (#1122)

In older version docker build was failing.
This commit is contained in:
Konrad 2017-01-17 22:05:40 +01:00 committed by John Mulhausen
parent 5fb142c5e9
commit 4272c6bf2e
1 changed files with 3 additions and 3 deletions

View File

@ -69,8 +69,8 @@ a MongoDB repository file for the package manager.
```dockerfile
# Installation:
# Import MongoDB public GPG key AND create a MongoDB list file
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
RUN echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.0.list
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
RUN echo "deb http://repo.mongodb.org/apt/ubuntu $(cat /etc/lsb-release | grep DISTRIB_CODENAME | cut -d= -f2)/mongodb-org/3.2 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.2.list
```
After this initial preparation we can update our packages and install MongoDB.
@ -192,4 +192,4 @@ $ mongo --port 28002
- [Linking containers](../userguide/networking/default_network/dockerlinks.md)
- [Cross-host linking containers](../admin/ambassador_pattern_linking.md)
- [Creating an Automated Build](/docker-hub/builds/)
- [Creating an Automated Build](/docker-hub/builds/)