Update /etc/docker/daemon.json file.
{
"log-opts": {
"max-size": "10m",
"max-file": "3"
}
}~/.docker/config.json
{
"auths": ...,
"status": "OK"
}# sudo crontab -e
@daily docker system prune --all --force
@reboot docker system prune --all --force
sudo du -h --max-depth=1 /var/lib/docker | sort -hrsudo ufw allow from 172.16.0.0/12docker restart $(docker ps -a -q)# Debian / Ubuntu
sudo apt install podman podman-compose
# Fedora / AlmaLinux
sudo dnf install podman podman-compose
sudo loginctl enable-linger $UID
systemctl --user enable podman-restartsystemctl --user start podman-auto-update# sudo crontab -e
@daily podman system prune --all --force
@reboot podman system prune --all --force
${XDG_RUNTIME_DIR}/containers/auth.json
# or
${XDG_CONFIG_HOME}/containers/auth.json (usually ~/.config/containers/auth.json)
$HOME/.docker/config.json
$HOME/.dockercfg
/etc/containers/containers.conf
# $HOME/.config/containers/containers.conf
[containers]
log_size_max=10485760