Skip to content

Commit b3ba3e6

Browse files
authored
Merge pull request #115060 from rachel271/rachel271-containerDocUpdate
Update batch-docker-container-workloads.md
2 parents edf6c33 + c689bbf commit b3ba3e6

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,31 @@ For Linux container workloads, Batch currently supports the following Linux imag
7272
- Offer: `centos-container-rdma`
7373
- Offer: `ubuntu-server-container-rdma`
7474

75+
- Publisher: `microsoft-dsvm`
76+
- Offer: `ubuntu-hpc`
77+
78+
#### Notes
79+
The docker data root of the above images lies in different places:
80+
- For the batch image `microsoft-azure-batch` (Offer: `centos-container-rdma`, etc), the docker data root is mapped to `/mnt/batch/docker`, which is usually located on the temporary disk.
81+
- For the HPC image, or `microsoft-dsvm` (Offer: `ubuntu-hpc`, etc), the docker data root is unchanged from the Docker default which is `/var/lib/docker` on Linux and `C:\ProgramData\Docker` on Windows. These folders are usually located on the OS disk.
82+
83+
When using non-Batch images, the OS disk has the potential risk of being filled up quickly as container images are downloaded.
84+
#### Potential solutions for customer
85+
86+
Change the docker data root in a start task when creating a pool in BatchExplorer. Here's an example of the Start Task command:
87+
```csharp
88+
1) sudo systemctl stop docker
89+
2) sudo vi /lib/systemd/system/docker.service
90+
+++
91+
FROM:
92+
ExecStart=/usr/bin/docker daemon -H fd://
93+
TO:
94+
ExecStart=/usr/bin/docker daemon -g /new/path/docker -H fd://
95+
+++
96+
3) sudo systemctl daemon-reload
97+
4) sudo systemctl start docker
98+
```
99+
75100
These images are only supported for use in Azure Batch pools and are geared for Docker container execution. They feature:
76101

77102
- A pre-installed Docker-compatible [Moby container runtime](https://github.com/moby/moby).

0 commit comments

Comments
 (0)