We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the mount property in the devcontainer.json as described here https://containers.dev/implementors/json_reference/#general-properties accepts a list of <property>:<value>. How can I flag the mount to be readonly using this type of definition?
mount
devcontainer.json
<property>:<value>
readonly
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]
The text was updated successfully, but these errors were encountered:
I can workaround the limitation with
"mounts": [ { "source": "...", "target": "...", "type": "bind,readonly", } ]
but in this case the linter will complain that the property type is not correct
type
Value is not accepted. Valid values: "bind", "volume".
Sorry, something went wrong.
No branches or pull requests
the
mount
property in thedevcontainer.json
as described here https://containers.dev/implementors/json_reference/#general-properties accepts a list of<property>:<value>
. How can I flag the mount to bereadonly
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 likeThe text was updated successfully, but these errors were encountered: