Page MenuHomeVyOS Platform

update container image with unexpected error
In progress, NormalPublicBUG

Description

Update container command is incorrect

vyos@vyos:~$ update container image stunmesh
-vbash: syntax error near unexpected token `then'

Fix:

  1. update container image stunmesh
  2. show environment sensors
  3. show log cert

Details

Version
VyOS 2025.07.13-0023-rolling
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

Workaround:

vi /opt/vyatta/share/vyatta-op/templates/update/container/image/node.tag/node.def

Replace the run command with

bash -c 'if cli-shell-api existsActive container name "'$4'"; then podman pull $(cli-shell-api returnActiveValue container name "'$4'" image); else echo "Container '$4' does not exist"; fi'

Full file will be like:

help: Update container image
allowed: ls /opt/vyatta/config/active/container/name 2>/dev/null
run: bash -c 'if cli-shell-api existsActive container name "'$4'"; then podman pull $(cli-shell-api returnActiveValue container name "'$4'" image); else echo "Container '$4' does not exist"; fi'
Viacheslav changed the task status from Open to In progress.Jul 14 2025, 12:03 PM
Viacheslav assigned this task to tjjh89017.
Viacheslav triaged this task as Normal priority.