New Tool Radar

Local AI

How to Install AnythingLLM as a Docker Server

Run AnythingLLM in Docker with a mounted storage folder so your documents survive restarts.

Schematic illustration with three step boxes: Check Docker; Run the container; Open the setup page.

AnythingLLM runs as a Docker container with its data in a mounted storage folder, which keeps your workspaces and documents when the container is replaced. The image is mintplexlabs/anythingllm and the web interface listens on port 3001. This guide starts it and opens the first-run setup.

Before you start

  • Docker installed and running.
  • At least 4 GB of free disk for the image and the first documents.
  • A terminal and a browser.

Check Docker works

Confirm Docker answers:

docker --version
docker ps

If docker ps fails, start the Docker daemon first. Create a folder for storage, for example ~/anythingllm-storage.

Run the container

Start AnythingLLM with the storage folder mounted:

docker run -d -p 3001:3001 --cap-add SYS_ADMIN -v ~/anythingllm-storage:/app/server/storage -v ~/anythingllm-storage:/app/collector/hotdir -e STORAGE_DIR="/app/server/storage" mintplexlabs/anythingllm

The first pull downloads the image, which takes a few minutes. The storage mount is what keeps your data when the container is removed.

Open the setup page

Open http://localhost:3001 in a browser. The first-run setup asks for an admin password and a workspace name. Set the password first: this is the access control for the server, and it should be set before you upload any private documents.

Worked example

Worked example: after the container starts, open localhost:3001 and create a workspace called “Manuals”. Upload a 2-page text file, wait for the embedding step, and ask “What does the manual say about the warranty?” The answer should quote the file.

Expected result

UNTESTED in this guide: no container was run while writing it. The expected result is that the setup page opens at localhost:3001, the workspace is created, and the uploaded document is searchable.

Limitations

The Docker image does not include every feature: MCP server support, for example, is available in the Docker setup but not in the Cloud version, and some tools are not supported. Check the docs for the feature you need before relying on it.

Sources

See all