example.container: Update example config with volume mount options
Volumes can be mounted with some different flags or no flags at all. Since converting the string into an object would be overkill, as most of the time the default options should suffice, and branching in Volumes.from_json() to handle both strings and objects is also no the cleanest method, implement it by using what already exists. Mount points are not checked by the script, so the mount options can just be added to the CONTAINER-DIR part of the volume config. Signed-off-by: Enno Tensing <tenno@suij.in>
This commit is contained in:
parent
3616cc9abd
commit
4ce53cb20b
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@
|
|||
}
|
||||
},
|
||||
"volumes": {
|
||||
"etc": "/etc",
|
||||
"etc": "/etc:ro,noexec",
|
||||
"var": "/var"
|
||||
},
|
||||
"capabilities": {
|
||||
|
|
Loading…
Add table
Reference in a new issue