Skip to content

Commit 4f679c0

Browse files
authored
Merge pull request MicrosoftDocs#67300 from diberry/0221-containers-multiple-containers
[Cogsvcs] Containers - public issue - 25471
2 parents 76b6541 + ce234f8 commit 4f679c0

File tree

5 files changed

+50
-4
lines changed

5 files changed

+50
-4
lines changed

articles/cognitive-services/Computer-vision/computer-vision-how-to-install-containers.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: computer-vision
1010
ms.topic: article
11-
ms.date: 02/08/2019
11+
ms.date: 02/21/2019
1212
ms.author: diberry
1313
ms.custom: seodec18
1414
---
@@ -111,6 +111,9 @@ More [examples](./computer-vision-resource-container-config.md#example-docker-ru
111111
> [!IMPORTANT]
112112
> The `Eula`, `Billing`, and `ApiKey` options must be specified to run the container; otherwise, the container won't start. For more information, see [Billing](#billing).
113113
114+
[!INCLUDE [Running multiple containers on the same host](../../../includes/cognitive-services-containers-run-multiple-same-host.md)]
115+
116+
114117
## Query the container's prediction endpoint
115118

116119
The container provides REST-based query prediction endpoint APIs.

articles/cognitive-services/Face/face-how-to-install-containers.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.custom: seodec18
99
ms.service: cognitive-services
1010
ms.subservice: face-api
1111
ms.topic: article
12-
ms.date: 02/11/2019
12+
ms.date: 02/21/2019
1313
ms.author: diberry
1414
---
1515

@@ -105,6 +105,9 @@ More [examples](./face-resource-container-config.md#example-docker-run-commands)
105105
> [!IMPORTANT]
106106
> The `Eula`, `Billing`, and `ApiKey` options must be specified to run the container; otherwise, the container won't start. For more information, see [Billing](#billing).
107107
108+
[!INCLUDE [Running multiple containers on the same host](../../../includes/cognitive-services-containers-run-multiple-same-host.md)]
109+
110+
108111
## Query the container's prediction endpoint
109112

110113
The container provides REST-based query prediction endpoint APIs.

articles/cognitive-services/LUIS/luis-container-howto.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.custom: seodec18
99
ms.service: cognitive-services
1010
ms.subservice: language-understanding
1111
ms.topic: article
12-
ms.date: 02/08/2019
12+
ms.date: 02/21/2019
1313
ms.author: diberry
1414
---
1515

@@ -244,6 +244,8 @@ More [examples](luis-container-configuration.md#example-docker-run-commands) of
244244
> The `Eula`, `Billing`, and `ApiKey` options must be specified to run the container; otherwise, the container won't start. For more information, see [Billing](#billing).
245245
> The ApiKey value is the **Key** from the Keys and Endpoints page in the LUIS portal and is also available on the Azure Language Understanding Resource keys page.
246246
247+
[!INCLUDE [Running multiple containers on the same host](../../../includes/cognitive-services-containers-run-multiple-same-host.md)]
248+
247249
## Query the container's prediction endpoint
248250

249251
The container provides REST-based query prediction endpoint APIs. Endpoints for published (staging or production) apps have a _different_ route than endpoints for trained apps.

articles/cognitive-services/text-analytics/how-tos/text-analytics-how-to-install-containers.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.custom: seodec18
99
ms.service: cognitive-services
1010
ms.subservice: text-analytics
1111
ms.topic: article
12-
ms.date: 02/08/2019
12+
ms.date: 02/21/2019
1313
ms.author: diberry
1414
---
1515

@@ -129,6 +129,8 @@ More [examples](../text-analytics-resource-container-config.md#example-docker-ru
129129
> [!IMPORTANT]
130130
> The `Eula`, `Billing`, and `ApiKey` options must be specified to run the container; otherwise, the container won't start. For more information, see [Billing](#billing).
131131
132+
[!INCLUDE [Running multiple containers on the same host](../../../../includes/cognitive-services-containers-run-multiple-same-host.md)]
133+
132134
## Query the container's prediction endpoint
133135

134136
The container provides REST-based query prediction endpoint APIs.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
author: diberry
3+
ms.author: diberry
4+
ms.service: cognitive-services
5+
ms.topic: include
6+
ms.date: 02/21/2019
7+
---
8+
9+
### Running multiple containers on the same host
10+
11+
If you intend to run multiple containers with exposed ports, make sure to run each container with a different port. For example, run the first container on port 5000 and the second container on port 5001.
12+
13+
Replace the `<container-registry>` and `<container-name>` with the values of the containers you use. These do not have to be the same container. You can have the Face container and the LUIS container running on the HOST together or you can have multiple Face containers running.
14+
15+
Run the first container on port 5000.
16+
17+
```bash
18+
docker run --rm -it -p 5000:5000 --memory 4g --cpus 1 \
19+
<container-registry>/microsoft/<container-name> \
20+
Eula=accept \
21+
Billing={BILLING_ENDPOINT_URI} \
22+
ApiKey={BILLING_KEY}
23+
```
24+
25+
Run the second container on port 5001.
26+
27+
28+
```bash
29+
docker run --rm -it -p 5001:5001 --memory 4g --cpus 1 \
30+
<container-registry>/microsoft/<container-name> \
31+
Eula=accept \
32+
Billing={BILLING_ENDPOINT_URI} \
33+
ApiKey={BILLING_KEY}
34+
```
35+
36+
Each subsequent container should be on a different port.

0 commit comments

Comments
 (0)