docker large log file

docker

Posted by JXLIU on November 20, 2022

remove useless file

log file

1
2
ls /var/lib/docker/containers/*/*-json.log -lh|awk '{print $9}'
echo  >  *.log

unused volumn files

1
docker volume rm $(docker volume ls -qf dangling=true)

unused containers, images, etc…

1
docker system prune -f