You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
```yaml
# Create or edit a file in the guest filesystem by using `yq`.
# The file specified by `path` will be updated by `expression`.
# An empty file of the required `format` will be created if it does not yet exist.
# `format` defaults to "auto" and will be detected by file extension of `path`.
# If the extension is not recognized by `yq` then `format` must be set to a
# value from this list:
# "auto", "csv", "ini", "json", "props", "tsv", "toml", "xml", "yaml"
# See https://github.com/mikefarah/yq for more info.
# Any missing directories will be created as needed.
# The file permissions will be set to the specified value.
# The file and directory creation will be performed as the specified owner.
# If the existing file is not writable by the specified owner, the operation will fail.
# `path` and `expression` are required.
# `owner` and `permissions` are optional. Defaults to "root:root" and 644.
- mode: yq
path: "{{.Home}}/.config/docker/daemon.json"
expression: ".features.containerd-snapshotter = {{.Param.containerdSnapshotter}}"
format: auto
owner: "{{.User}}"
permissions: 644
```
Signed-off-by: Norio Nomura <norio.nomura@gmail.com>
0 commit comments