Disk Cleaning Docker Linux & Windows Machine

Hi,

We’re having docker windows and Linux cluster and we often see there is disk space issue in every two months.

I’ve see docker image prune, docker container prune commands. If I execute this command every week, Do I break something? So in order to create a job weekly job to clean the disk what is the best approach we can adopt for both windows and Linux machines?