• 2 Posts
  • 30 Comments
Joined 1 year ago
cake
Cake day: June 11th, 2023

help-circle


















  • I don’t know if this works in docker (usually there is 1:1 equivalency between the two), but with podman you can do something like:

    podman stop --filter name=foo
    

    man podman-stop tells us:

       --filter, -f=filter
           Filter what containers are going to be stopped.  Multiple filters can be given with multiple uses of the --filter flag.  Filters with the same  key  work
           inclusive with the only exception being label which is exclusive. Filters with different keys always work exclusive.
    

  • If you do a rollback, I assume your data remains? I assume you might need to reinstall apps which were not in the original? Or does it keep apps, data and settings across a restore?

    In CoreOS (Silverblue), /etc, /var and /home (which is in fact a symlink towards /var/home) are regular writable partitions, so your data, configs and personal files are not touched by the upgrade/rollback procedure.

    All the packages (and their dependencies) you’ve installed extra are also upgraded/rolledback when you do a system upgrade.


  • The immutable part (again, only speaking about Silverblue, I don’t know about others) refers to the inability to make changes online (i.e. without rebooting), but you can eventually change whatever file you want. The way it works is you would make your changes in a copy of the current filesystem and at boot simply mount and use the copy. If something goes wrong, you just mount the original at next boot and you have rolled back.