I am submitting jobs to GCP AI Platform as
gcloud ai-platform jobs submit training "${job_name}" \
--job-dir="gs://${job_root}/${job_name}" \
--region=${region} \
--master-image-uri=${image_uri} \
--scale-tier=basic_gpu \
--python-version=3.7 \
-- \
--other-args
But my custom image needs docker to run with --ipc=host. Is it possible to add this switch?
UPDATE: never mind the --ipc=host switch because as pointed out in the comment it shouldn't be needed (and it's not). Now I have to pass --device /dev/fuse --cap-add SYS_ADMIN to ai-platform's docker so that I can mount GCP bucket to docker image's file system with gcsfuse. Any ideas? Hacking gcloud is acceptable (by e.g., replacing part of the sources of gcloud inside the docker image), but I am not sure where the docker command is inside gcloud's source code.