fix(docs): upgrade to mongodb 4.0 (#41557)
* fix(docs): upgrade to mongodb 4.0 * chore(docs): apply suggestions from code review Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com> Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
This commit is contained in:
committed by
GitHub
parent
ad9b1f89d8
commit
c75cd9ae53
@ -69,10 +69,10 @@ Once you have configured Docker Desktop to work with WSL2, follow these steps to
|
||||
|
||||
1. Launch a new Ubuntu-18.04 terminal
|
||||
|
||||
2. Pull `MongoDB 3.6` from dockerhub
|
||||
2. Pull `MongoDB 4.0.x` from dockerhub
|
||||
|
||||
```console
|
||||
docker pull mongo:3
|
||||
docker pull mongo:4.0
|
||||
```
|
||||
|
||||
3. Start the MongoDB service at port `27017`, and configure it to run automatically on system restarts
|
||||
@ -83,7 +83,7 @@ Once you have configured Docker Desktop to work with WSL2, follow these steps to
|
||||
-p 27017:27017 \
|
||||
--name mongodb \
|
||||
--restart unless-stopped \
|
||||
-d mongo:3
|
||||
-d mongo:4.0
|
||||
```
|
||||
|
||||
4. You can now access the service from both Windows or Ubuntu at `mongodb://localhost:27017`.
|
||||
|
Reference in New Issue
Block a user