Skip to content

Allow local jobs to omit gcloud mounts#71

Open
hartikainen wants to merge 1 commit into
google-deepmind:mainfrom
hartikainen:gcloud-mounts
Open

Allow local jobs to omit gcloud mounts#71
hartikainen wants to merge 1 commit into
google-deepmind:mainfrom
hartikainen:gcloud-mounts

Conversation

@hartikainen

Copy link
Copy Markdown

Local container jobs currently mount the host's entire ~/.config/gcloud directory at /root/.config/gcloud unconditionally.

This commit adds DockerOptions.mount_gcloud_config, defaulting to True for compatibility. Setting it to False allows credential-free containers to reject ambient host configuration.

The launch path also copies user-provided volumes before adding implicit mounts, avoiding mutation of caller-owned state.

Local container jobs currently mount the host's entire
`~/.config/gcloud` directory at `/root/.config/gcloud` unconditionally.

This commit adds `DockerOptions.mount_gcloud_config`, defaulting to
`True` for compatibility. Setting it to `False` allows credential-free
containers to reject ambient host configuration.

The launch path also copies user-provided `volumes` before adding
implicit mounts, avoiding mutation of caller-owned state.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant