Skip to content

Commit 57bb2d5

Browse files
authored
Update batch-docker-container-workloads.md
I forked from a wrong repo "Azure/azure-docs" The correct repo should be "MicrosoftDocs/azure-docs" So I submit a new pull request. The diff is the same.
1 parent f1685f2 commit 57bb2d5

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,30 @@ 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 lie 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. This 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+
a) Change the docker data root in a start task when creating a pool in BatchExplorer,example of Start Task command like this:
86+
```csharp
87+
1) sudo systemctl stop docker
88+
2) sudo vi /lib/systemd/system/docker.service
89+
+++
90+
FROM:
91+
ExecStart=/usr/bin/docker daemon -H fd://
92+
TO:
93+
ExecStart=/usr/bin/docker daemon -g /new/path/docker -H fd://
94+
+++
95+
3) sudo systemctl daemon-reload
96+
4) sudo systemctl start docker
97+
```
98+
7599
These images are only supported for use in Azure Batch pools and are geared for Docker container execution. They feature:
76100

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

0 commit comments

Comments
 (0)