New Tool Radar

Local AI

How to Run Text Generation WebUI in Docker

Clone the Atinoda Docker wrapper, pick the default image variant in docker-compose.yml, and run docker compose up to open Text Generation WebUI at 127.0.0.1:7860.

Schematic diagram with three steps: clone the Docker wrapper repo, pick the default image variant, then run docker compose up and open 127.0.0.1:7860.

The manual install of Text Generation WebUI (oobabooga) runs a startup script that builds a conda environment on your machine. The Docker route keeps that whole environment inside a container instead: you pull a pre-built image, start it with one command, and your models, presets, and extensions live in folders on your host that survive container updates. This guide covers the Docker route only — the manual install is a different guide.

Check the prerequisites and clone the wrapper

You need Docker and Docker Compose installed, plus the CUDA Docker runtime if you want Nvidia GPU inference. The community Docker wrapper’s README lists exactly those prerequisites, then gives the quick start:

git clone https://github.com/Atinoda/text-generation-webui-docker
cd text-generation-webui-docker

The wrapper targets Linux officially, and its README says the images also work on Docker Desktop for Windows. There is no plan to support Apple Silicon, because that platform runs Docker inside a virtual machine and Apple has chosen not to support virtualised hardware access there.

Pick the image variant

Choose the variant by setting the image tag in docker-compose.yml, using the pattern {VARIANT}-{PLATFORM}. The README’s table says the default variant is the full standard deployment with all default bundled extensions installed, set up for Nvidia GPU inference, and is recommended for most users:

Tag What it is Use it when
default (same as default-nvidia) Full deployment, all default extensions, Nvidia GPU inference You have an Nvidia GPU — the recommended choice
default-cpu Full deployment, all default extensions, CPU-only inference You have no supported GPU
base-* Basic deployment with no extensions installed You want a slimmer image to customise yourself
transformers-* Full deployment with the latest transformers re-installed on top You need a more recent transformers than the image ships

Editing docker-compose.yml is optional — the default tag already points at the Nvidia variant.

Start it and open the page

Start the service and open the web interface:

docker compose up

The image is pulled automatically on the first run. Then navigate to 127.0.0.1:7860. The compose file maps several volumes from the local config directory into the container — loras, models, presets, prompts, training, and extensions — so put your model files in the config/models folder and they persist between container launches. Port 7860 is the web UI; the API port 5000 is exposed only if you add --api --extensions api to the launch arguments and uncomment its mapping in the compose file.

Check What you should see If you do not see it
Started docker compose up pulls the image and the container starts Docker is not running, or the CUDA runtime is missing for the Nvidia variant — try default-cpu
Page Text Generation WebUI opens at 127.0.0.1:7860 The container is still starting — wait, then check the container logs
Models Your model file appears in the Model tab It is not in the mapped config/models folder on the host

Expected result. We checked the Atinoda Docker wrapper README for the clone, the variant table, docker compose up, the 7860 address, and the mapped volumes. We did not run Docker.

Limits

This is a community wrapper, not an official Docker image from the Text Generation WebUI project — a self-hosting guide notes the same point, and the wrapper’s own README sends you to the project’s documentation for how the app itself works. The rocm and arc variants are described as experimental and unstable in the README. Updating is docker compose pull followed by docker compose up; removing the service is docker compose down -v. The default launch arguments are --verbose and --listen, which makes the interface available on your local network — do not expose port 7860 to the internet. We did not run Docker, so no container here is a recorded result.

Sources

See all