When we create a new container but do not have yet image, commit shows a warning, but applied
set container name alp01 image 'alpine' set container name alp01 network net01 set container network net01 prefix '10.0.0.0/24'
Commit
vyos@r14# compare +container { + name alp01 { + image alpine + network net01 { + } + } + network net01 { + prefix 10.0.0.0/24 + } +} [edit] vyos@r14# vyos@r14# commit WARNING: Image "alpine" used in contianer "alp01" does not exist locally. Please use "add container image alpine" to add it to the system! Container "alp01" will not be started! [edit] vyos@r14# [edit] vyos@r14# [edit] vyos@r14# compare No changes between working and active configurations. [edit] vyos@r14#
It causes an issue after we download an image, the container doesn't start anyway as previous commit applied and did nothing
vyos@r14# run add container image alpine Resolved "alpine" as an alias (/etc/containers/registries.conf.d/shortnames.conf) Trying to pull docker.io/library/alpine:latest... Getting image source signatures Copying blob 2408cc74d12b done Copying config e66264b987 done Writing manifest to image destination Storing signatures e66264b98777e12192600bf9b4d663655c98a090072e1bab49e233d7531d1294 [edit] vyos@r14# [edit] vyos@r14# [edit] vyos@r14# [edit] vyos@r14# sudo podman ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES [edit] vyos@r14#
To get the container working it required to delete the container configuration and applied it again.