Size of /dev/shm in container app job

LarsFalkPetersen-4488 0 Reputation points
2025-01-17T11:18:54.25+00:00

I'm attempting to run a pytorch job in a azure container app job. Pytorch complains about the size of /dev/shm. On my workstation I can avoid this by using the hosts /dev/shm using --ipc=host like so:

docker run -it --rm --ipc=host -t <image name>

How can I modify /dev/shm in container app jobs? I've tried mounting emptydir on /dev/shm:

volumeMounts:- volumeName: shm
 mountPath: /dev/shm
volumes:
 - name: shm
storageType: EmptyDir

Any other suggestions?

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
511 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.