diff options
author | Christian Breunig <christian@breunig.cc> | 2023-06-27 20:03:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-27 20:03:47 +0200 |
commit | 6a2ddc478d61db6b177bd7ac49dcff0df9f69db8 (patch) | |
tree | a94ffd53b4cafa19f63767c4053e1f5d387e05c9 /src | |
parent | 90c0c2c4c81cdbf2ec3f928499f3e1719bfd6f9a (diff) | |
parent | b47b73f5820e6ae2b428a3e36d3d9c2fe9076dc8 (diff) | |
download | vyos-1x-6a2ddc478d61db6b177bd7ac49dcff0df9f69db8.tar.gz vyos-1x-6a2ddc478d61db6b177bd7ac49dcff0df9f69db8.zip |
Merge pull request #2051 from sever-sever/T5304
T5304: Container add volume bind propagation option
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/container.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/conf_mode/container.py b/src/conf_mode/container.py index aceb27fb0..6198bb65f 100755 --- a/src/conf_mode/container.py +++ b/src/conf_mode/container.py @@ -321,7 +321,8 @@ def generate_run_arguments(name, container_config): svol = vol_config['source'] dvol = vol_config['destination'] mode = vol_config['mode'] - volume += f' --volume {svol}:{dvol}:{mode}' + prop = vol_config['propagation'] + volume += f' --volume {svol}:{dvol}:{mode},{prop}' container_base_cmd = f'--detach --interactive --tty --replace {cap_add} ' \ f'--memory {memory}m --shm-size {shared_memory}m --memory-swap 0 --restart {restart} ' \ |