Update containers like you update packages.
THIS IS A WORK IN PROGRESS In other words, this is a starting point for further work.
- It may not work and possibly do weird things :-P
- Only tested with system containers so far
- The atomic commands libraries are available in the same site-packages that dnf uses
- Updates always update all containers to the latest version for the installed tag
WARNING This may break stuff!!
- Create a path for plugins
- Add
pluginpath=$YOUR_NEW_PATH
- Place
container.py
in $YOUR_NEW_PATH - Use
dnf container
$ sudo atomic containers list --no-trunc
CONTAINER ID IMAGE COMMAND CREATED STATE BACKEND RUNTIME
aaaaz test:0.4.rc2 /usr/bin/run.sh 2017-10-18 09:17 failed ostree runc
$ sudo atomic images list
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE TYPE
test 0.4.rc2 2848e6699c97 2017-10-17 17:34 ostree
$ sudo dnf container check
Checking 1 local container(s) for updates
The following containers need updating:
aaaaz
To update your containers use dnf containers update or, to update specific containers, the atomic command
Example: sudo atomic containers update aaaaz
$ sudo dnf container update -y
Checking 1 local container(s) for updates
The following containers need updating:
aaaaz
To update your containers use dnf containers update or, to update specific containers, the atomic command
Example: sudo atomic containers update aaaaz
Pulling test:0.4.rc2 ...
Updating aaaaz ...
Extracting to /var/lib/containers/atomic/aaaaz.1
systemd-tmpfiles --remove /etc/tmpfiles.d/aaaaz.conf
systemctl daemon-reload
systemd-tmpfiles --create /etc/tmpfiles.d/aaaaz.conf
$ sudo atomic images list
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE TYPE
test 0.4.rc2 aa3d7accac3b 2017-10-18 09:18 ostree
$ sudo dnf container check
Checking 1 local container(s) for updates
No updates found
Reports on containers which have updates available.
$ sudo dnf container check
Checking 1 local container(s) for updates
The following containers need updating:
aaaaz
To update your containers use dnf containers update or, to update specific containers, the atomic command
Example: sudo atomic containers update aaaaz
Updates all system containers to the latest image for the installed tag.
$ sudo dnf container update -y
Checking 1 local container(s) for updates
The following containers need updating:
aaaaz
To update your containers use dnf containers update or, to update specific containers, the atomic command
Example: sudo atomic containers update aaaaz
Pulling <test image> ...
Updating aaaaz ...
Extracting to /var/lib/containers/atomic/aaaaz.1
systemd-tmpfiles --remove /etc/tmpfiles.d/aaaaz.conf
systemctl daemon-reload
systemd-tmpfiles --create /etc/tmpfiles.d/aaaaz.conf
$
$ sudo dnf container check
Checking 1 local container(s) for updates
No updates found