containers icon indicating copy to clipboard operation
containers copied to clipboard

[bitnami/opencart] All uploaded catalog media is lost on container restart (image folder is not mapped as a volume)

Open doublehelix opened this issue 7 months ago • 0 comments

Name and Version

bitnami/opencart:4.0.2-3

What architecture are you using?

amd64

What steps will reproduce the bug?

  1. Run the latest bitnami/opencart (and MariaDB etc.)
  2. Ensure the persistent volumes are configured as per https://hub.docker.com/r/bitnami/opencart
    • --volume /path/to/opencart_data:/bitnami/opencart
  3. log into the administration console
  4. Upload a new product image to the media manager
  5. Stop the stack
  6. 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

doublehelix avatar Jul 02 '24 08:07 doublehelix