Skip to content

Commit 7443e5a

Browse files
Merge pull request #277013 from alfpark/alpark/batch
Update Batch container docker issues
2 parents fe7076d + 988271d commit 7443e5a

File tree

2 files changed

+29
-6
lines changed

2 files changed

+29
-6
lines changed

articles/batch/batch-docker-container-workloads.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Container workloads on Azure Batch
33
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.
44
ms.topic: how-to
5-
ms.date: 01/19/2024
5+
ms.date: 05/31/2024
66
ms.devlang: csharp
77
ms.custom: devx-track-csharp, linux-related-content
88
---
@@ -51,7 +51,7 @@ Keep in mind the following limitations:
5151

5252
> [!IMPORTANT]
5353
> 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.
5555
5656
## Supported VM images
5757

@@ -77,6 +77,9 @@ without the need for a custom image.
7777

7878
- Publisher: `microsoft-dsvm`
7979
- Offer: `ubuntu-hpc`
80+
- Publisher: `almalinux`
81+
- Offer: `8-hpc-gen1`
82+
- Offer: `8-hpc-gen2`
8083

8184
#### Alternate image options
8285

@@ -88,9 +91,9 @@ Currently there are other images published by `microsoft-azure-batch` that suppo
8891
- Offer: `ubuntu-server-container`
8992
- Offer: `ubuntu-server-container-rdma` (For use exclusively on VM SKUs with Infiniband)
9093

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.
9497
9598
#### Notes
9699
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
145148

146149
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.
147150

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+
148158
### Pool without prefetched container images
149159

150160
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.

articles/batch/best-practices.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Best practices
33
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
55
ms.topic: conceptual
66
---
77

@@ -120,6 +120,19 @@ When you create an Azure Batch pool using the Virtual Machine Configuration, you
120120

121121
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).
122122

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+
123136
### Azure region dependency
124137

125138
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

Comments
 (0)