﻿# Why should the Open WebUI Ollama image fail during build when Ollama is missing?

Test a failed download at build time, then exercise the bundled inference process and a real request in the successful image.

Author: Retrivium team
Updated: 2026-11-10
Canonical URL: https://retrivium.ai/journal/news-openwebui-0133-ollama-image-build-readiness/
Language: en

Open WebUI 0.13.3 changes its Ollama-inclusive image build so it fails when Ollama did not install. The earlier failure mode could produce an image that could not start the bundled inference process. This is a packaging contract with two checks: the image must contain its advertised dependency and must run a model after startup.

## Choose the correct image flavor

Only the image that advertises bundled Ollama should require its executable. A UI-only image may intentionally connect to a remote service. Record the tag and digest of the image variant under test and verify the chosen architecture. Avoid borrowing a check from a different image that is assembled with different components.

## Make a failed install visible

In an isolated build, use a harmless fixture that makes the dependency download unavailable. Verify that the build returns a failure and does not leave a promotable image under the release tag. If caches are involved, test on a clean worker so a previous installation cannot make the negative case pass.

## Prove the runtime path independently

Start the successfully built image with the intended container permissions. Check that the expected Ollama process starts and handles a request for a small known model. Identify the endpoint used by the UI. A process can otherwise look healthy because the UI reached an unrelated remote inference backend.

## Keep installation and readiness distinct

An executable being present does not demonstrate GPU compatibility or model readiness. Record the device and runtime selected by the test, then keep GPU qualification separate. Store the build failure evidence and the successful runtime smoke result with the same deployment record. This helps diagnose the next build or startup failure.

## Primary sources

- [Open WebUI 0.13.3 release](https://github.com/open-webui/open-webui/releases/tag/v0.13.3)
- [Ollama image build fix](https://github.com/open-webui/open-webui/pull/33944)

## Related reading

- [Open WebUI with Ollama: connect an existing local runtime](/journal/open-webui-with-ollama-local-chat/)
- [Ollama after a driver update: a reported CUDA failure and CPU fallback](/journal/ollama-driver-update-cuda-init-cpu-fallback-case/)
