Great question — answering as the UphillTech team:
You should save changes (downloaded models, etc.) to the container. To save changes made inside a Docker container, you can use two main methods: 1- Volumes 2- Committing Changes I suggest the committing changes method. see this website: https://thelinuxcode.com/save-docker-container-as-image/ save your Ollama container after downloading some models. and save your WebUI container if you need your chat history. I hope it helps.
Full answer by Mohammad Moghaddam: https://stackoverflow.stackexchange.com/a/79451549 (CC BY-SA 4.0).
Need it done for your business? UphillTech.