diff --git a/engine/examples/mongodb.md b/engine/examples/mongodb.md index 2ef9d4e83bb..eb007e37888 100644 --- a/engine/examples/mongodb.md +++ b/engine/examples/mongodb.md @@ -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/) \ No newline at end of file + - [Creating an Automated Build](/docker-hub/builds/)