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/batch/batch-docker-container-workloads.md
+15-5Lines changed: 15 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Container workloads on Azure Batch
3
3
description: Learn how to run and scale apps from container images on Azure Batch. Create a pool of compute nodes that support running container tasks.
@@ -51,7 +51,7 @@ Keep in mind the following limitations:
51
51
52
52
> [!IMPORTANT]
53
53
> Docker, by default, will create a network bridge with a subnet specification of `172.17.0.0/16`. If you are specifying a
54
-
> [virtual network](batch-virtual-network.md) for your pool, please ensure that there are no conflicting IP ranges.
54
+
> [virtual network](batch-virtual-network.md) for your pool, ensure that there are no conflicting IP ranges.
55
55
56
56
## Supported VM images
57
57
@@ -77,6 +77,9 @@ without the need for a custom image.
77
77
78
78
- Publisher: `microsoft-dsvm`
79
79
- Offer: `ubuntu-hpc`
80
+
- Publisher: `almalinux`
81
+
- Offer: `8-hpc-gen1`
82
+
- Offer: `8-hpc-gen2`
80
83
81
84
#### Alternate image options
82
85
@@ -88,9 +91,9 @@ Currently there are other images published by `microsoft-azure-batch` that suppo
88
91
- Offer: `ubuntu-server-container`
89
92
- Offer: `ubuntu-server-container-rdma` (For use exclusively on VM SKUs with Infiniband)
90
93
91
-
> [!IMPORTANT]
92
-
> It is recommended to use the `microsoft-dsvm``ubuntu-hpc` VM image instead of images published by
93
-
> `microsoft-azure-batch`. This image may be used on any VM SKU.
94
+
> [!WARNING]
95
+
> It is recommended to use images other than those published by `microsoft-azure-batch` as these
96
+
> images are deprecated due to imminent image end-of-life.
94
97
95
98
#### Notes
96
99
The docker data root of the above images lies in different places:
@@ -145,6 +148,13 @@ You can create a container-enabled pool with or without prefetched container ima
145
148
146
149
The advantage of prefetching container images is that when tasks first start running, they don't have to wait for the container image to download. The container configuration pulls container images to the VMs when the pool is created. Tasks that run on the pool can then reference the list of container images and container run options.
147
150
151
+
> [!NOTE]
152
+
> Docker Hub limits the number of image pulls. Ensure that your workload doesn't
153
+
> [exceed published rate limits](https://docs.docker.com/docker-hub/download-rate-limit/) for Docker
154
+
> Hub-based images. It's recommended to use
155
+
> [Azure Container Registry](../container-registry/container-registry-intro.md) directly or leverage
156
+
> [Artifact cache in ACR](../container-registry/container-registry-artifact-cache.md).
157
+
148
158
### Pool without prefetched container images
149
159
150
160
To configure a container-enabled pool without prefetched container images, define `ContainerConfiguration` and `VirtualMachineConfiguration` objects as shown in the following examples. These examples use the Ubuntu Server for Azure Batch container pools image from the Marketplace.
Copy file name to clipboardExpand all lines: articles/batch/best-practices.md
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Best practices
3
3
description: Learn best practices and useful tips for developing your Azure Batch solutions.
4
-
ms.date: 04/02/2024
4
+
ms.date: 05/31/2024
5
5
ms.topic: conceptual
6
6
---
7
7
@@ -120,6 +120,19 @@ When you create an Azure Batch pool using the Virtual Machine Configuration, you
120
120
121
121
Pools can be created using third-party images published to Azure Marketplace. With user subscription mode Batch accounts, you may see the error "Allocation failed due to marketplace purchase eligibility check" when creating a pool with certain third-party images. To resolve this error, accept the terms set by the publisher of the image. You can do so by using [Azure PowerShell](/powershell/module/azurerm.marketplaceordering/set-azurermmarketplaceterms) or [Azure CLI](/cli/azure/vm/image/terms).
122
122
123
+
### Container pools
124
+
125
+
When specifying a Batch pool with a [virtual network](batch-virtual-network.md), there can be interaction
126
+
side effects between the specified virtual network and the default Docker bridge. Docker, by default, will
127
+
create a network bridge with a subnet specification of `172.17.0.0/16`. Ensure that there are no conflicting
128
+
IP ranges between the Docker network bridge and your virtual network.
129
+
130
+
Docker Hub limits the number of image pulls. Ensure that your workload doesn't
131
+
[exceed published rate limits](https://docs.docker.com/docker-hub/download-rate-limit/) for Docker
132
+
Hub-based images. It's recommended to use
133
+
[Azure Container Registry](../container-registry/container-registry-intro.md) directly or leverage
134
+
[Artifact cache in ACR](../container-registry/container-registry-artifact-cache.md).
135
+
123
136
### Azure region dependency
124
137
125
138
You shouldn't rely on a single Azure region if you have a time-sensitive or production workload. While rare, there are issues that can affect an entire region. For example, if your processing needs to start at a specific time, consider scaling up the pool in your primary region *well before your start time*. If that pool scale fails, you can fall back to scaling up a pool in a backup region (or regions).
0 commit comments