github.com/containers/podman/v4@v4.9.4/contrib/systemd/system/podman-clean-transient.service.in (about)

     1  # This service runs once each boot to remove potential leftover
     2  # container state from previous boots.
     3  
     4  # This is needed when using transient storage mode in podman where the
     5  # database and other configs are stored in tmpfs, but some other files
     6  # are not. If we don't run this after an unclean boot then there may
     7  # be some leftover files that grow over time.
     8  
     9  [Unit]
    10  Description=Clean up podman transient data
    11  RequiresMountsFor=%t/containers
    12  Documentation=man:podman-system-prune(1)
    13  Requires=boot-complete.target
    14  After=local-fs.target boot-complete.target
    15  
    16  [Service]
    17  Type=oneshot
    18  ExecStart=@@PODMAN@@ system prune --external
    19  
    20  [Install]
    21  WantedBy=default.target