Page MenuHomeVyOS Platform

Containers add bind-propagation option rshared
Closed, ResolvedPublicFEATURE REQUEST

Description

Containers add bind-propagation option rshared
The default value should be rprivate
Examples

podman run --replace --rm -dit -v /config/containers:/etc/foo:rshared --name mypod1 --net host busybox

podman run --replace --rm -dit -v /config/containers:/etc/foo:ro,rshared --name mypod1 --net host busybox

podman run --replace --rm -dit -v /config/containers:/etc/foo:rw,rshared --name mypod1 --net host busybox

Request from the forum

Details

Version
1.4
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)

Event Timeline

Viacheslav changed Version from - to 1.4.
Viacheslav renamed this task from Containers add propagation option rshared to Containers add bind-propagation option rshared.Jun 20 2023, 6:03 AM
Viacheslav updated the task description. (Show Details)

PR https://github.com/vyos/vyos-1x/pull/2051

vyos@r14# run show conf com | match cont
set container name c1 allow-host-networks
set container name c1 description 'foof'
set container name c1 image 'busybox'
set container name c1 volume myvlm destination '/tmp'
set container name c1 volume myvlm propagation 'rshared'
set container name c1 volume myvlm source '/tmp'
set system sysctl parameter net.ipv4.tcp_congestion_control value 'bbr'
[edit]
vyos@r14# 
[edit]
vyos@r14# sudo podman inspect -f '{{.Mounts}}' c1
[{bind  /tmp /tmp   [nosuid nodev rbind] true rshared}]
[edit]
vyos@r14#
Viacheslav changed the task status from Open to In progress.Jun 21 2023, 2:03 PM
Viacheslav claimed this task.
Viacheslav moved this task from Open to Finished on the VyOS 1.4 Sagitta board.