Skip to content

Commit cfb7fcf

Browse files
authored
Merge pull request #162980 from ashly1yeo/patch-112
Update docker-run-health-container.md
2 parents c6b95b7 + f2fcdf1 commit cfb7fcf

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

articles/cognitive-services/text-analytics/includes/docker-run-health-container.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,16 @@ There are multiple ways you can install and run the Text Analytics for health co
2121

2222
### Run the container locally
2323

24-
To run the container in your own environment after downloading the container image, find its image ID:
25-
26-
```bash
27-
docker images --format "table {{.ID}}\t{{.Repository}}\t{{.Tag}}"
28-
```
29-
30-
Execute the following `docker run` command. Replace the placeholders below with your own values:
24+
To run the container in your own environment after downloading the container image, execute the following `docker run` command. Replace the placeholders below with your own values:
3125

3226
| Placeholder | Value | Format or example |
3327
|-------------|-------|---|
3428
| **{API_KEY}** | The key for your Text Analytics resource. You can find it on your resource's **Key and endpoint** page, on the Azure portal. |`xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`|
3529
| **{ENDPOINT_URI}** | The endpoint for accessing the Text Analytics API. You can find it on your resource's **Key and endpoint** page, on the Azure portal. | `https://<your-custom-subdomain>.cognitiveservices.azure.com` |
36-
| **{IMAGE_ID}** | The image ID for your container. | `d216a68f0a09` |
37-
| **{INPUT_DIR}** | The input directory for the container. | Windows: `C:\healthcareMount` <br> Linux/MacOS: `/home/username/input` |
3830

3931
```bash
4032
docker run --rm -it -p 5000:5000 --cpus 6 --memory 12g \
41-
--mount type=bind,src={INPUT_DIR},target=/output {IMAGE_ID} \
33+
mcr.microsoft.com/azure-cognitive-services/textanalytics/healthcare:latest \
4234
Eula=accept \
4335
rai_terms=accept \
4436
Billing={ENDPOINT_URI} \
@@ -48,8 +40,7 @@ Logging:Disk:Format=json
4840

4941
This command:
5042

51-
- Assumes that the input directory exists on the host machine
52-
- Runs a Text Analytics for Health container from the container image
43+
- Runs the *Text Analytics for health* container from the container image
5344
- Allocates 6 CPU core and 12 gigabytes (GB) of memory
5445
- Exposes TCP port 5000 and allocates a pseudo-TTY for the container
5546
- Accepts the end user license agreement (Eula) and responsible AI (RAI) terms

0 commit comments

Comments
 (0)