Skip to content

Commit b57a7f4

Browse files
authored
Updating docker run commands and Speech section
Updating docker run commands and Speech default directories to be easier to interpret for customers.
1 parent e948a72 commit b57a7f4

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

articles/cognitive-services/containers/disconnected-containers.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,18 +100,20 @@ The following example shows the formatting of the `docker run` command you'll us
100100
| Placeholder | Value | Format or example |
101101
|-------------|-------|---|
102102
| `{IMAGE}` | The container image you want to use. | `mcr.microsoft.com/azure-cognitive-services/form-recognizer/invoice` |
103-
| `{LICENSE_MOUNT}` | The path where the license will be downloaded, and mounted. | `/volume/license:/path/to/license/directory` |
103+
| `{LICENSE_MOUNT}` | The path where the license will be downloaded, and mounted. | `/host/license:/path/to/license/directory` |
104104
| `{ENDPOINT_URI}` | The endpoint for authenticating your service request. You can find it on your resource's **Key and endpoint** page, on the Azure portal. | `https://<your-custom-subdomain>.cognitiveservices.azure.com` |
105105
| `{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`|
106+
| `{CONTAINER_LICENSE_DIRECTORY}` | Location of the license folder on the container's local filesystem. | `/path/to/license/directory` |
106107

107108
```bash
108-
docker run {IMAGE} --rm -it -p 5000:5000 \
109+
docker run --rm -it -p 5000:5000 \
109110
-v {LICENSE_MOUNT} \
111+
{IMAGE} \
110112
eula=accept \
111113
billing={ENDPOINT_URI} \
112114
apikey={API_KEY} \
113115
DownloadLicense=True \
114-
Mounts:License={LICENSE_MOUNT} \
116+
Mounts:License={CONTAINER_LICENSE_DIRECTORY}
115117
```
116118

117119
After you've configured the container, use the next section to run the container in your environment with the license, and appropriate memory and CPU allocations.
@@ -130,16 +132,19 @@ Placeholder | Value | Format or example |
130132
| `{IMAGE}` | The container image you want to use. | `mcr.microsoft.com/azure-cognitive-services/form-recognizer/invoice` |
131133
`{MEMORY_SIZE}` | The appropriate size of memory to allocate for your container. | `4g` |
132134
| `{NUMBER_CPUS}` | The appropriate number of CPUs to allocate for your container. | `4` |
133-
| `{LICENSE_MOUNT}` | The path where the license will be located and mounted. | `/volume/license:/path/to/license/directory` |
135+
| `{LICENSE_MOUNT}` | The path where the license will be located and mounted. | `/host/license:/path/to/license/directory` |
134136
| `{OUTPUT_PATH}` | The output path for logging [usage records](#usage-records). | `/host/output:/path/to/output/directory` |
137+
| `{CONTAINER_LICENSE_DIRECTORY}` | Location of the license folder on the container's local filesystem. | `/path/to/license/directory` |
138+
| `{CONTAINER_OUTPUT_DIRECTORY}` | Location of the output folder on the container's local filesystem. | `/path/to/output/directory` |
135139

136140
```bash
137-
docker run {IMAGE} --rm -it -p 5000:5000 --memory {MEMORY_SIZE} --cpus {NUMBER_CPUS} \
141+
docker run --rm -it -p 5000:5000 --memory {MEMORY_SIZE} --cpus {NUMBER_CPUS} \
138142
-v {LICENSE_MOUNT} \
139143
-v {OUTPUT_PATH} \
144+
{IMAGE} \
140145
eula=accept \
141-
Mounts:License={LICENSE_MOUNT}
142-
Mounts:Output={OUTPUT_PATH}
146+
Mounts:License={CONTAINER_LICENSE_DIRECTORY}
147+
Mounts:Output={CONTAINER_OUTPUT_DIRECTORY}
143148
```
144149

145150
### Additional parameters and commands
@@ -157,7 +162,9 @@ If you're using the [Translator container](../translator/containers/translator-h
157162

158163
#### Speech-to-text and Neural text-to-speech containers
159164

160-
The [speech-to-text](../speech-service/speech-container-howto.md?tabs=stt) and [neural text-to-speech](../speech-service/speech-container-howto.md?tabs=ntts) containers provide a default directory for writing the license file and billing log at runtime. When you're mounting these directories to the container with the `docker run -v` command, make sure the local machine directory is set ownership to `user:group nonroot:nonroot` before running the container.
165+
The [speech-to-text](../speech-service/speech-container-howto.md?tabs=stt) and [neural text-to-speech](../speech-service/speech-container-howto.md?tabs=ntts) containers provide a default directory for writing the license file and billing log at runtime. The default directories are /license and /output respectively.
166+
167+
When you're mounting these directories to the container with the `docker run -v` command, make sure the local machine directory is set ownership to `user:group nonroot:nonroot` before running the container.
161168

162169
Below is a sample command to set file/directory ownership.
163170

0 commit comments

Comments
 (0)