Since my nvidia sync was giving me error port 11000 and unable to do custom port 12000 configuration for nvidia sync to access webui.
Instead I follow the instruction for the setup manually my open webui, but when I reboot my spark and reopen webui I got 500: internal error, I check docker ps on terminal the command return blank if like I never install docker and open-webui.
i test it out with two different command I found on the forum just to make sure I was not making a mistake. Both command erase every time i reboot my spark.
well, the docker rm will delete your container. If you docker run --restart=unless-stopped … then the same container will automatically start whenever the machine reboots, instead of deleting the old one and starting a new one as your script is doing.
I understand, you want to have your container start on boot automatically right? I would recommend following coder543’s suggestion by using the --restart flag. You can find more details here: Start containers automatically | Docker Docs
what happen are I install open-webui by following the instruction but every time i reboot my spark, I have to reinstall my webui again with the model. I don’t want to keep reinstall open-webui and docker everytime I open my spark. I guess I have to do something else beside the instruction mention.
Docker containers will automatically shut down when you reboot your machine. In order to start the container again you would have to run the above command again. However, the --restart=always flag will tell the docker service to start the container any time it sees it is not running, due to an error, system reboot, etc. I would recommend going through the Docker documentation to learn how containers work and how they can be customized.
@learnerbs22 instead of invoking docker run start the container you already have used previously, before the reboot. Look at your containers with docker container list –all to show active and inactive containers. Then on boot just have the desired container, i.e. open-webui you already used, with docker container start command. This way all your data will be there!