docker - Magento 2: Custom Theme Images Not Displaying (Only Default Images) - Stack Overflow

admin2025-04-28  2

I installed the Mark Shust Magento 2 Docker environment on Docker Desktop. Everything works fine, but I have an issue when I install custom themes. The CSS styles load correctly, but images don’t show up as expected. Instead of displaying the custom theme images, Magento falls back to the default images.

Here’s what I’ve tried so far:

Ran commands:

php bin/magento setup:upgrade  
php bin/magento setup:static-content:deploy -f  
php bin/magento cache:flush  
php bin/magento cache:clean  
php bin/magento indexer:reindex  

Checked the Developer Console in the browser:

All image requests return HTTP 200 status. But the images displayed are still default Magento images. I have developer mode. Has anyone encountered a similar issue or can provide guidance? Could it be related to file permissions, symlinks, or some specific Docker configuration? Any advice or recommendations would be highly appreciated!

转载请注明原文地址:http://anycun.com/QandA/1745780713a91197.html