Size of /dev/shm in container app job
LarsFalkPetersen-4488
0
Reputation points
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?
Sign in to answer