diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-06-21 13:59:41 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-06-27 12:35:54 +0000 |
commit | b47b73f5820e6ae2b428a3e36d3d9c2fe9076dc8 (patch) | |
tree | 0cc6c7486f7673b1d22b172098f0bfd8f4aace5e /src/conf_mode/container.py | |
parent | 3f197566f957cb0e354a474bccee0aefd62b33be (diff) | |
download | vyos-1x-b47b73f5820e6ae2b428a3e36d3d9c2fe9076dc8.tar.gz vyos-1x-b47b73f5820e6ae2b428a3e36d3d9c2fe9076dc8.zip |
T5304: Container add volume bind propagation option
set container name c1 volume myvlm propagation rshared
Diffstat (limited to 'src/conf_mode/container.py')
-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} ' \ |