containers
containers copied to clipboard
[bitnami/opencart] All uploaded catalog media is lost on container restart (image folder is not mapped as a volume)
Name and Version
bitnami/opencart:4.0.2-3
What architecture are you using?
amd64
What steps will reproduce the bug?
- Run the latest bitnami/opencart (and MariaDB etc.)
- Ensure the persistent volumes are configured as per https://hub.docker.com/r/bitnami/opencart
-
--volume /path/to/opencart_data:/bitnami/opencart
-
- log into the administration console
- Upload a new product image to the media manager
- Stop the stack
- Start the stack
What is the expected behavior?
Images uploaded to the opencart volume are persisted
What do you see instead?
All images are gone.
It seems OpenCart 4.x stores images in /opt/bitnami/opencart/images
which is NOT mounted as a volume. Meaning, all catalog images (as well as the store logo etc.) are lost if the container restarts or is updated.
Additional information
No response