Merge pull request #1302 from wedog/patch-1

Fix typo in mongo description
This commit is contained in:
Tianon Gravi 2018-09-06 10:17:38 -07:00 committed by GitHub
commit 5743b68fb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ $ docker run --name some-%%REPO%% -d %%IMAGE%%:tag
## Connect to MongoDB from another Docker container ## Connect to MongoDB from another Docker container
The MongoDB server in the image listens on the standard MongoDB port, `27017`, so connecting via container linking or Docker networks will be the be the same as connecting to a remote `mongod`. The following example starts another MongoDB container instance and runs the `mongo` command line client against the original MongoDB container from the example above, allowing you to execute MongoDB statements against your database instance: The MongoDB server in the image listens on the standard MongoDB port, `27017`, so connecting via container linking or Docker networks will be the same as connecting to a remote `mongod`. The following example starts another MongoDB container instance and runs the `mongo` command line client against the original MongoDB container from the example above, allowing you to execute MongoDB statements against your database instance:
```console ```console
$ docker run -it --link some-%%REPO%%:mongo --rm %%IMAGE%% mongo --host mongo test $ docker run -it --link some-%%REPO%%:mongo --rm %%IMAGE%% mongo --host mongo test