Page MenuHomeVyOS Platform

Recreate only a specific container
In progress, Requires assessmentPublicBUG

Description

All containers are recreated during change any container

set container name c1 allow-host-networks
set container name c1 image 'busybox'
set container name c2 allow-host-networks
set container name c2 image 'busybox'
commit

Both containers were added:

[email protected]# run show container 
CONTAINER ID  IMAGE                             COMMAND     CREATED         STATUS             PORTS       NAMES
61508ea6196e  docker.io/library/busybox:latest  sh          41 seconds ago  Up 41 seconds ago              c1
54d593d360da  docker.io/library/busybox:latest  sh          40 seconds ago  Up 41 seconds ago              c2
[edit]
[email protected]#

Change container c1 option. Both containers were recreated.

[email protected]# set container name c1 host-name c1.local
[edit]
[email protected]# commit

[email protected]# run show container 
CONTAINER ID  IMAGE                             COMMAND     CREATED         STATUS             PORTS       NAMES
020ab4fb4d7b  docker.io/library/busybox:latest  sh          13 seconds ago  Up 14 seconds ago              c1
6955626eebe2  docker.io/library/busybox:latest  sh          7 seconds ago   Up 8 seconds ago               c2
[edit]
[email protected]#

Expected behavior, only c1 container should be changed/recreated.

If any node changed, there is a dict trigger to remove containers in apply section

Details

Difficulty level
Normal (likely a few hours)
Version
VyOS 1.4-rolling-202303020317
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)