Build Your Private Image Generator: Docker Model Runner & Open WebUI Step-by-Step

By

Overview

We've all been there: you need a few quick images for a project, so you fire up an AI image service—and suddenly you're wondering where your prompts go, how many credits you have left, or why that "safe content" filter rejected your perfectly reasonable request for a dragon wearing a business suit. What if you could skip all that and run the whole thing on your own machine, with a slick chat interface on top?

Build Your Private Image Generator: Docker Model Runner & Open WebUI Step-by-Step
Source: www.docker.com

That's exactly what Docker Model Runner now makes possible. With just a couple of commands, you can pull an image-generation model, connect it to Open WebUI, and start generating images right from a chat interface—fully local, fully private, fully yours.

Let's build it. Your own private DALL-E, no cloud subscription required.

What You'll Need

Before diving in, make sure you have the following:

Step-by-Step Setup

Step 1: Pull an Image Generation Model

Docker Model Runner uses a compact packaging format called DDUF (Diffusers Unified Format) to distribute image generation models through Docker Hub—just like any other OCI artifact.

Pull a model to get started:

docker model pull stable-diffusion

You can confirm it's ready by inspecting the model:

docker model inspect stable-diffusion
{
    "id": "sha256:5f60862074a4c585126288d08555e5ad9ef65044bf490ff3a64855fc84d06823",
    "tags": [
        "docker.io/ai/stable-diffusion:latest"
    ],
    "created": 1768470632,
    "config": {
        "format": "diffusers",
        "architecture": "diffusers",
        "size": "6.94GB",
        "diffusers": {
            "dduf_file": "stable-diffusion-xl-base-1.0-FP16.dduf",
            "layout": "dduf"
        }
    }
}

What's happening under the hood? The model is stored locally as a DDUF file—a single-file format that bundles all the components of a diffusion model (text encoder, VAE, UNet/DiT, scheduler config) into one portable artifact. Docker Model Runner knows how to unpack it at runtime.

Step 2: Launch Open WebUI

Here comes the magic: Docker Model Runner has a built-in launch command that knows exactly how to wire up Open WebUI against your local inference endpoint.

docker model launch openwebui

That's it. Behind the scenes, this command:

Step 3: Generate Your First Image

Once Open WebUI is running, open your browser to the provided URL (usually http://localhost:8080). You'll see a familiar chat interface. Type a prompt like:

Build Your Private Image Generator: Docker Model Runner & Open WebUI Step-by-Step
Source: www.docker.com
"A dragon wearing a business suit, sitting at a boardroom table, photorealistic, cinematic lighting"

Press enter, and within seconds your image appears—no credits, filters, or privacy concerns. You can iterate freely, refine prompts, or generate variations. All data stays on your machine.

Common Pitfalls and How to Avoid Them

Summary

You now have a fully private, local image generation setup running on your own machine—no internet required, no data leaving your computer, and no recurring fees. With Docker Model Runner handling the heavy lifting and Open WebUI providing a clean chat interface, you can create images as easily as sending a message. This approach puts the power of modern diffusion models in your hands, with complete control and privacy. Now go ahead—your dragon in a business suit awaits.

Tags:

Related Articles

Recommended

Discover More

Mastering the Elite Hackathon: A Complete Guide to TreeHacks at StanfordThe Readout LOUD: Hair Loss Hype, AI Trials, and Servier's M&A StrategyLinux 7.2 Brings Mainline Support for Realtek RTL8159 10GbE USB AdaptersHow to Shield Your Supply Chain from Cyber-Enabled Cargo TheftHow to Navigate the Evolving Artemis III Mission Plan: A Step-by-Step Guide