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/ai-services/content-safety/how-to/containers/image-container.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,20 +2,20 @@
2
2
title: Analyze image container - Azure AI content safety
3
3
titleSuffix: Azure AI services
4
4
description: Install and run content safety analyze image containers with Docker to detect harmful content in image.
5
-
author:
6
-
manager:
5
+
author: PatrickFarley
6
+
manager: nitinme
7
7
ms.service: azure-ai-content-safety
8
-
ms.topic:
8
+
ms.topic: how-to
9
9
ms.date: 9/11/2024
10
-
ms.author:
10
+
ms.author: pafarley
11
11
keywords: on-premises, Docker, container
12
12
---
13
13
14
14
# Analyze image content with docker containers
15
15
16
16
The Analyze image container scans image for sexual content, violence, hate, and self harm with multi-severity levels. In this article, you learn how to download, install, and run a content safety to image container.
17
17
18
-
For more information about prerequisites, validating that a container is running, running multiple containers on the same host, and running disconnected containers, see [Install and run content safety containers with Docker](container-install-run.md).
18
+
For more information about prerequisites, validating that a container is running, running multiple containers on the same host, and running disconnected containers, see [Install and run content safety containers with Docker](./install-run-container.md).
19
19
20
20
## Container images
21
21
@@ -35,7 +35,7 @@ The fully qualified container image name is, `mcr.microsoft.com/en-us/product/az
35
35
36
36
## Get the container image with docker pull
37
37
38
-
You need the [prerequisites](container-install-run.md#prerequisites) including required hardware. Also see the [recommended allocation of resources](container-install-run.md#host-computer-requirements-and-recommendations)
38
+
You need the [prerequisites](./install-run-container.md#prerequisites) including required hardware. Also see the [recommended allocation of resources](./install-run-container.md#host-computer-requirements-and-recommendations)
39
39
for each content safety container.
40
40
41
41
Use the [docker pull](https://docs.docker.com/engine/reference/commandline/pull/) command to download a container image from Microsoft Container Registry:
@@ -78,7 +78,7 @@ This command:
78
78
79
79
# [Disconnected container](#tab/disconnected)
80
80
81
-
To run disconnected containers (not connected to the internet), you must submit [this request form](https://aka.ms/csdisconnectedcontainers) and wait for approval. For more information about applying and purchasing a commitment plan to use containers in disconnected environments, see [Use containers in disconnected environments](../containers/disconnected-containers.md) in the Azure AI services documentation.
81
+
To run disconnected containers (not connected to the internet), you must submit [this request form](https://aka.ms/csdisconnectedcontainers) and wait for approval. For more information about applying and purchasing a commitment plan to use containers in disconnected environments, see [Use containers in disconnected environments](../../../containers/disconnected-containers.md) in the Azure AI services documentation.
82
82
83
83
If you're approved to run the container disconnected from the internet, the following example shows the formatting of the `docker run` command to use, with placeholder values. Replace these placeholder values with your own values.
84
84
@@ -113,7 +113,7 @@ Placeholder | Value | Format or example |
113
113
`{MEMORY_SIZE}` | The appropriate size of memory to allocate for your container.<br/><br/>For example: `4g` |
114
114
|`{NUMBER_CPUS}`| The appropriate number of CPUs to allocate for your container.<br/><br/>For example: `4`|
115
115
|`{LICENSE_MOUNT}`| The path where the license is located and mounted.<br/><br/>For example: `/host/license:/path/to/license/directory`|
116
-
|`{OUTPUT_PATH}`| The output path for logging.<br/><br/>For example: `/host/output:/path/to/output/directory`<br/><br/>For more information, see [usage records](../containers/disconnected-containers.md#usage-records) in the Azure AI services documentation. |
116
+
|`{OUTPUT_PATH}`| The output path for logging.<br/><br/>For example: `/host/output:/path/to/output/directory`<br/><br/>For more information, see [usage records](../../../containers/disconnected-containers.md#usage-records) in the Azure AI services documentation. |
117
117
|`{CONTAINER_LICENSE_DIRECTORY}`| Location of the license folder on the container's local filesystem.<br/><br/>For example: `/path/to/license/directory`|
118
118
|`{CONTAINER_OUTPUT_DIRECTORY}`| Location of the output folder on the container's local filesystem.<br/><br/>For example: `/path/to/output/directory`|
Once the container is up and running, you can validate its operation by sending a request to the REST endpoint deployed within the container. To do this, follow below article. Note, you need to replace the endpoint URL with the Docker URL specific to your container deployment. Also, ensure that you're using host authentication, rather than key-based authentication.
Copy file name to clipboardExpand all lines: articles/ai-services/content-safety/how-to/containers/install-run-container.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,12 @@
2
2
title: Install and run content safety containers with Docker - content safety service
3
3
titleSuffix: Azure AI services
4
4
description: Use the content safety containers with Docker to perform content safety check on-premises.
5
-
author:
6
-
manager:
5
+
author: PatrickFarley
6
+
manager: nitinme
7
7
ms.service: azure-ai-content-safety
8
8
ms.topic: how-to
9
9
ms.date: 9/11/2024
10
-
ms.author:
10
+
ms.author:pafarley
11
11
keywords: on-premises, Docker, container
12
12
---
13
13
@@ -44,7 +44,7 @@ The <a href="https://docs.docker.com/engine/reference/commandline/run/" target="
44
44
45
45
> [!IMPORTANT]
46
46
> These subscription keys are used to access your Azure AI services API. Don't share your keys. Store them securely. For example, use Azure Key Vault. We also recommend that you regenerate these keys regularly. Only one key is necessary to make an API call. When you regenerate the first key, you can use the second key for continued access to the service.
47
-
The container needs the billing argument values to run. These values allow the container to connect to the billing endpoint. The container reports usage about every 10 to 15 minutes. If the container doesn't connect to Azure within the allowed time window, the container continues to run but doesn't serve queries until the billing endpoint is restored. The connection is attempted 10 times at the same time interval of 10 to 15 minutes. If it can't connect to the billing endpoint within the 10 tries, the container stops serving requests. For an example of the information sent to Microsoft for billing, see the [Azure AI container FAQ](../containers/container-faq.yml#how-does-billing-work) in the Azure AI services documentation.
47
+
The container needs the billing argument values to run. These values allow the container to connect to the billing endpoint. The container reports usage about every 10 to 15 minutes. If the container doesn't connect to Azure within the allowed time window, the container continues to run but doesn't serve queries until the billing endpoint is restored. The connection is attempted 10 times at the same time interval of 10 to 15 minutes. If it can't connect to the billing endpoint within the 10 tries, the container stops serving requests. For an example of the information sent to Microsoft for billing, see the [Azure AI container FAQ](../../../containers/container-faq.yml#how-does-billing-work) in the Azure AI services documentation.
48
48
49
49
50
50
### Host computer requirements and recommendations
@@ -138,10 +138,10 @@ You can have this container and a different Azure AI container running on the HO
138
138
139
139
> [!NOTE]
140
140
> Use a unique port number if you're running multiple containers.
141
-
| Protocol | Host URL |
142
-
|--|--
143
-
| WS |`ws://localhost:5000`|
144
-
| HTTP |`http://localhost:5000`|
141
+
> | Protocol | Host URL |
142
+
> |--|--
143
+
> | WS |`ws://localhost:5000`|
144
+
> | HTTP |`http://localhost:5000`|
145
145
146
146
For more information on using WSS and HTTPS protocols, see [Container security](../cognitive-services-container-support.md#azure-ai-services-container-security) in the Azure AI services documentation.
147
147
@@ -190,10 +190,10 @@ The container tests for network connectivity to the billing endpoint.
190
190
191
191
## Run disconnected containers
192
192
193
-
To run disconnected containers (not connected to the internet), you must submit [this request form](https://aka.ms/csdisconnectedcontainers) and wait for approval. For more information about applying and purchasing a commitment plan to use containers in disconnected environments, see [Use containers in disconnected environments](../containers/disconnected-containers.md) in the Azure AI services documentation.
193
+
To run disconnected containers (not connected to the internet), you must submit [this request form](https://aka.ms/csdisconnectedcontainers) and wait for approval. For more information about applying and purchasing a commitment plan to use containers in disconnected environments, see [Use containers in disconnected environments](../../../containers/disconnected-containers.md) in the Azure AI services documentation.
194
194
195
195
## Next steps
196
196
197
-
* Review [analyze text container](./analyze-text-container.md) for text container configuration settings.
198
-
* Review [analyze image container](./analyze-image-container.md) for image container configuration settings.
197
+
* Review [analyze text container](./text-container.md) for text container configuration settings.
198
+
* Review [analyze image container](./image-container.md) for image container configuration settings.
199
199
* Use more [Azure AI containers](../cognitive-services-container-support.md).
0 commit comments