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-container-isolation-task.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Azure Batch offers an isolation configuration at the task level, allowing tasks
16
16
17
17
## Why we need isolation feature in container task
18
18
19
-
In a Windows container task workload, the entire ephemeral disk (D:) is attached to the task's container. For a Linux container task workload, Azure Batch attaches the entire `AZ_BATCH_NODE_ROOT_DIR` to the task's container, both in ReadWrite mode. However, if you want to customize your container volumes, this setup may cause some data to be shared across all containers running on the node. To address this, we support customizing the Azure Batch data paths that you want to attach to the task container.
19
+
In a Windows container task workload, the entire ephemeral disk (D:) is attached to the task's container. For a Linux container task workload, Azure Batch attaches the entire `AZ_BATCH_NODE_ROOT_DIR` to the task's container, both in ReadWrite mode. However, if you want to customize your container volumes, this setup may cause some data to be shared across all containers running on the node. To address the same, we support the ability to customize the Azure Batch data paths that you want to attach to the task container.
20
20
21
21
-**Security**: Prevents the container task data from leaking into the host machine or altering data on the host machine.
22
22
-**Customize**: You can customize your container task volumes as needed.
@@ -26,8 +26,8 @@ In a Windows container task workload, the entire ephemeral disk (D:) is attached
26
26
27
27
## The Roles of Host Data Path Attach to Container
28
28
29
-
For Linux node, we can just attach the same path into container.
30
-
For Windows node, due to windows container do not have D disk, we have to mount the path according to this table below.
29
+
*For Linux node: We can just attach the same path into container.
30
+
*For Windows node: Since Windows containers don't have a D: disk, we need to mount the path. Refer to the listed paths that you can choose to mount.
31
31
32
32
| Azure Batch Data Path | Path in Host Machine | Path in Container |
Refer to the listed data paths that you can choose to attach to the container. Any data paths you do not select will have their associated environment variables removed.
45
+
Refer to the listed data paths that you can choose to attach to the container. Any unselected data paths have their associated environment variables removed.
46
46
47
47
|Data Path Enum|Data Path with be attached to container|
48
48
|:--------:|------------|
@@ -57,9 +57,9 @@ Refer to the listed data paths that you can choose to attach to the container. A
57
57
58
58
> [!Note]
59
59
> * If you use an empty list, the NodeAgent will not mount any data paths into the task's container. If you use null, the NodeAgent will mount the entire ephemeral disk (in Windows) or `AZ_BATCH_NODE_ROOT_DIR` (in Linux).
60
-
> * If you do not mount the task data path into the container, you must set the task's property [workingDirectory](/rest/api/batchservice/task/add?tabs=HTTP#containerworkingdirectory) to containerImageDefault.
60
+
> * If you don't mount the task data path into the container, you must set the task's property [workingDirectory](/rest/api/batchservice/task/add?tabs=HTTP#containerworkingdirectory) to containerImageDefault.
61
61
62
-
Before running a container isolation task, you must create a pool with a container. For details on how to create it, see this guide [Docker container workload](batch-docker-container-workloads.md).
62
+
Before running a container isolation task, you must create a pool with a container. For more information on how to create it, see this guide [Docker container workload](batch-docker-container-workloads.md).
0 commit comments