Having problems with runnable.container.options in batch script

Hi, new in the forum. I’m starting to dive in gcloud and when launching a simple batch with a docker container, I’m having trouble with the shared memory. When I work in local, I can set this as an argument in the docker run, but with this script, it seems to not be working.

I added the runnable.container.options = “–shm-size 2048mb” to avoid this, but it seems to be not working. Added another option which is easier to check as “-e ENV_VARIABLE=DADADA” and echoed in the commands and its empty. Do you know what might be causing this? Documentation is also very short (no python, only cli).

Thanks in advance, have a nice day, Isaac

PD: I tried several times to add the python code but it’s giving me 403 forbidden output.

Hello. I have tested in the options setting the shmsize as 512m. In the options, I have put something like “–shm-size 512m” and I can verify this through the docker command on the host. Do you have an example job spec for how did you set the shm-size.

2 Likes

Thanks @nomi . I was using Streaming Image option which it seems to be in contradiction with more options that the ones in the docu (shm-size is one of them). Thanks for your time and your answer :slightly_smiling_face: