文件操作 - podman-clean-transient.service
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/systemd/system/podman-clean-transient.service
编辑文件内容
# This service runs once each boot to remove potential leftover # container state from previous boots. # This is needed when using transient storage mode in podman where the # database and other configs are stored in tmpfs, but some other files # are not. If we don't run this after an unclean boot then there may # be some leftover files that grow over time. [Unit] Description=Clean up podman transient data RequiresMountsFor=%t/containers Documentation=man:podman-system-prune(1) Requires=boot-complete.target After=local-fs.target boot-complete.target [Service] Type=oneshot ExecStart=/usr/bin/podman system prune --external [Install] WantedBy=default.target
修改文件时间
将文件时间修改为当前时间的前一年
删除文件