This is great – I can’t recall how I did part of this….duh. You have to install:

  1. Docker
  2. Ollama
  3. OpenWeb GUI
  4. …and download a model (of course)

Install Ollama

curl -fsSL https://ollama.com/install.sh | sh

I think you can install Docker first – in the case of these two programs I’m not sure it matters.

Downloading a Model and Testing in a Terminal

I originally downloaded (and ran) the deepseek-r1 model by simple typing the following in a terminal:

ollama run deepseek-r1

I could then run DeepSeek from a command line.

The Problems

To see results in amore polished format I then tried all sorts of things trying to get docker installed, and, working with OpenWeb GUI. The big problem is that I cannot recall exactly how I installed OpenWeb GUI nor Docker.

I think this was how I installed Docker (Mint 20.04)

sudo apt install docker.io

Then:

sudo usermod -a -G docker guy

Restart the docker service:

sudo systemctl restart docker

You can see if the service is running with:

sudo systemctl status docker

Installing OpenWeb GUI

Okay – this gets weird. Download this archive, unarchive, and enter the directory – download. The following is taken from the web and I don’t recall what I ran:

  • If Ollama is on your computer, use this command:

    docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main
  • If Ollama is on a Different Server, use this command:

    To connect to Ollama on another server, change the OLLAMA_BASE_URL to the server’s URL:

    docker run -d -p 3000:8080 -e OLLAMA_BASE_URL=https://example.com -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main
  • To run Open WebUI with Nvidia GPU support, use this command:

    docker run -d -p 3000:8080 --gpus all --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:cuda

Connecting Things

if all goes well you should be able to open a browser and go to http://localhost:3000 where you’ll be asked to create a username and pass.

I did that but there were no models listed in the drop down box at the top of the page. Eventually, I pasted “deepseek-r1” into the form and it recognized it and asked if I wanted it installed. I said yes, and, it downloaded.

Connection Problem

So it took awhile to download and, then, a red box popped in the right hand, top corner (after I’d waited for the thing to download) and it said there was some sort of connection problem.

This, from the web, fixed the thing:

I am facing the same problem. By default, Ollama only listens to the local IP address 127.0.0.1, which means that the network inside the Docker container cannot bind to the host port 11434.

To resolve this issue, you can follow these steps:

  1. Open the ollama unit file located at /etc/systemd/system/ollama.service.
  2. In the [Service] section of the file, add the following line: Environment="OLLAMA_HOST=0.0.0.0".
  3. Reload systemctl sudo systemctl daemon-reload
  4. Restart the service sudo systemctl restart ollama.service

Why run DeepSeek Locally?

Running a model like DeepSeek locally (such as DeepSeek-R1 or smaller distilled/open-source variants) provides distinct advantages over using a cloud-hosted, more powerful model like Anthropic’s Claude, primarily around privacy, cost, control, and independence.[1, 2]

Key benefits of running DeepSeek locally

  • Complete data privacy

    Your prompts, code, and documents never leave your computer or private network. This is crucial for handling sensitive medical data, proprietary corporate code, or confidential personal information that you cannot risk sending to a third-party server.[1, 2]

  • Zero per-token or subscription costs

    Once you have the local hardware (like a capable Mac or a PC with a strong GPU), running open-source DeepSeek models via tools like Ollama is completely free. You avoid recurring monthly subscription fees or expensive API pay-per-token charges.[1, 2, 3]

  • Offline access

    Local models run directly on your machine, meaning you can code, write, or brainstorm without needing an active internet connection.[1, 2]

  • No censorship or rate limits

    Cloud providers like Anthropic enforce strict safety filters, usage caps, and rate limits (such as message windows or token throttles over 5 hours). A local model gives you unrestricted access without getting blocked or rate-limited during heavy workloads.[1, 2]

  • Customizability and control

    Open-source architectures allow you to tweak parameters, integrate them into local agentic harnesses, or customize system behavior in ways that closed-source cloud models do not allow.[1]

By admin