File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ a MongoDB repository file for the package manager.
63
63
# Installation:
64
64
# Import MongoDB public GPG key AND create a MongoDB list file
65
65
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
66
+ RUN apt-get install --no-install-recommends software-properties-common
66
67
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
67
68
```
68
69
@@ -74,8 +75,9 @@ RUN apt-get update && apt-get install -y mongodb-org
74
75
```
75
76
76
77
> ** Tip** : You can install a specific version of MongoDB by using a list of required packages with versions, e.g.:
77
- ``` dockerfile
78
- RUN apt-get update && apt-get install -y mongodb-org=3.0.1 mongodb-org-server=3.0.1 mongodb-org-shell=3.0.1 mongodb-org-mongos=3.0.1 mongodb-org-tools=3.0.1
78
+ >
79
+ > ``` dockerfile
80
+ > RUN apt-get update && apt-get install -y mongodb-org=3.0.1 mongodb-org-server=3.0.1 mongodb-org-shell=3.0.1 mongodb-org-> mongos=3.0.1 mongodb-org-tools=3.0.1
79
81
```
80
82
81
83
MongoDB requires a data directory. Let's create it as the final step of our
You can’t perform that action at this time.
0 commit comments