You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cognitive-services/containers/disconnected-containers.md
+15-8Lines changed: 15 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,18 +100,20 @@ The following example shows the formatting of the `docker run` command you'll us
100
100
| Placeholder | Value | Format or example |
101
101
|-------------|-------|---|
102
102
|`{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`|
104
104
|`{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`|
105
105
|`{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`|
106
107
107
108
```bash
108
-
docker run {IMAGE} --rm -it -p 5000:5000 \
109
+
docker run --rm -it -p 5000:5000 \
109
110
-v {LICENSE_MOUNT} \
111
+
{IMAGE} \
110
112
eula=accept \
111
113
billing={ENDPOINT_URI} \
112
114
apikey={API_KEY} \
113
115
DownloadLicense=True \
114
-
Mounts:License={LICENSE_MOUNT} \
116
+
Mounts:License={CONTAINER_LICENSE_DIRECTORY}
115
117
```
116
118
117
119
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 |
130
132
|`{IMAGE}`| The container image you want to use. |`mcr.microsoft.com/azure-cognitive-services/form-recognizer/invoice`|
131
133
`{MEMORY_SIZE}` | The appropriate size of memory to allocate for your container. | `4g` |
132
134
|`{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`|
134
136
|`{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`|
@@ -157,7 +162,9 @@ If you're using the [Translator container](../translator/containers/translator-h
157
162
158
163
#### Speech-to-text and Neural text-to-speech containers
159
164
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.
161
168
162
169
Below is a sample command to set file/directory ownership.
0 commit comments