Zend certified PHP/Magento developer

error when running setup:di:compile

I create a custom model and di.xml was wrote up, however when I try to run setup:di:compile, it said the

“generated/code/Magento/MediaStorage/Model/File/Storage/Response/Interceptor.php” file can’t be deleted……No such file or directory

I am running docker at windows machine, I can see the files inside the folder, but I don’t have permission to do it, I did google the result but can’t find any solution. such as “setup:static-content:deploy -f” or chmd 777

please help