Skip to content

Commit ee6098b

Browse files
Merge pull request #215274 from seesharprun/cosmos-emulator-ports
Cosmos DB | Updated Docker emulator port ranges
2 parents 4e35945 + b5de891 commit ee6098b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

articles/cosmos-db/includes/linux-emulator-instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
```bash
1818
docker run \
1919
--publish 8081:8081 \
20-
--publish 10251-10254:10251-10254 \
20+
--publish 10250-10255:10250-10255 \
2121
--memory 3g --cpus=2.0 \
2222
--name=test-linux-emulator \
2323
--env AZURE_COSMOS_EMULATOR_PARTITION_COUNT=10 \
@@ -33,7 +33,7 @@
3333
```bash
3434
docker run \
3535
--publish 8081:8081 \
36-
--publish 10251-10254:10251-10254 \
36+
--publish 10250-10255:10250-10255 \
3737
--name=test-linux-emulator-mongo \
3838
--env AZURE_COSMOS_EMULATOR_PARTITION_COUNT=10 \
3939
--env AZURE_COSMOS_EMULATOR_ENABLE_DATA_PERSISTENCE=true \

articles/cosmos-db/linux-emulator.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Use the following steps to run the emulator on Linux:
142142

143143
|Name |Default |Description |
144144
|---------|---------|---------|
145-
| Ports: `-p` | | Currently, only ports 8081 and 10251-10255 are needed by the emulator endpoint. |
145+
| Ports: `-p` | | Currently, only ports `8081` and `10250-10255` are needed by the emulator endpoint. |
146146
| `AZURE_COSMOS_EMULATOR_PARTITION_COUNT` | 10 | Controls the total number of physical partitions, which in return controls the number of containers that can be created and can exist at a given point in time. We recommend starting small to improve the emulator start up time, i.e 3. |
147147
| Memory: `-m` | | On memory, 3 GB or more is required. |
148148
| Cores: `--cpus` | | Make sure to allocate enough memory and CPU cores. At least four cores are recommended. |
@@ -165,9 +165,9 @@ This section provides tips to troubleshoot errors when using the Linux emulator.
165165

166166
- Verify that the specific emulator container is in a running state.
167167

168-
- Verify that no other applications are using emulator ports: 8081 and 10250-10255.
168+
- Verify that no other applications are using emulator ports: `8081` and `10250-10255`.
169169

170-
- Verify that the container port 8081, is mapped correctly and accessible from an environment outside of the container.
170+
- Verify that the container port `8081`, is mapped correctly and accessible from an environment outside of the container.
171171

172172
```bash
173173
netstat -lt

0 commit comments

Comments
 (0)