I have ollama container runs on Debian Trixie.
docker version: Docker version 26.1.5+dfsg1, build a72d7cd
The container is ran with the command docker run -d -v "/home/user/ollama:/root/.ollama" -p 11434:11434 --name ollama ollama/ollama. And I attempted to download a model with this command: docker exec -it ollama ollama run x/z-image-turbo "a cat says hello". I understand x/z-image-turbo is for mac. The problem is not related to this model.
The problem is my network bandwidth is not huge, so I occasionally need to interrupt the downloading process by ctrl+c. Sadly, when resuming with docker exec -it ollama ollama run x/z-image-turbo "a cat says hello" command. the progress is frequently reverted. For instance, the process shows that the model downloaded models reverted from 16% to 14% after resuming the operation. I tried with Linux sync, but the issue remains. Any way that can force the downloaded file will be persisted to physical disk like Linux sync? Thanks.
pulling model: 16% ▕█████████ ▏ 2.1 GB/ 12 GB 685 KB/s 4h20m^C
user@debian:~/ollama$ docker exec -it ollama ollama run x/z-image-turbo "a cat says hello"
pulling manifest
pulling model: 14% ▕███████ ▏ 1.8 GB/ 12 GB 972 KB/s 3h8m