devcontainers / devcontainers/spec

readonly mount

Open
#511 3 comments 2 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
5.7k
Forks
496
PR merge metrics
No merged PRs in 30d

Description

the `mount` property in the `devcontainer.json` as described here https://containers.dev/implementors/json_reference/#general-properties accepts a list of `:`. How can I flag the mount to be `readonly` using this type of definition?

Most often, the mount instruction is a one-liner (https://code.visualstudio.com/remote/advancedcontainers/add-local-file-mount), and in that case I can specify the `readonly` flag like

```
"mounts": ["source=...,target=...,type=bind,readonly]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.