agent-zero icon indicating copy to clipboard operation
agent-zero copied to clipboard

Can you document the full details for running it in Docker for real?

Open jerkstorecaller opened this issue 8 months ago • 3 comments

The README just says to run docker run -p 80:80 agent0ai/agent-zero.

In reality people who use Docker expect to persist the container's important data on the host, via volumes: configuration, memory, the app's own runtime data, etc. The idea is that Docker containers are ephemeral, but the data should never be lost. It's also essential for backups.

In other words, if the data is inside the Docker container without using volumes to save it on the host, it won't be there when you pull the latest version and launch a newer container. Obviously no one wants to start over everytime they update Agent Zero.

So a docker command is usually more like this: docker run -p 80:80 -v ./config:/workspace/config/ -v ./memory:/workspace/memory -v ./data:/workspace/data agent0ai/agent-zero. The user's data is always saved on the host, new containers read it from the same location (./config/ on the host, which is /workspace/config/ inside the container. I invented the paths as an example, the devs know more than anyone what paths their app uses in Docker)

jerkstorecaller avatar Mar 28 '26 04:03 jerkstorecaller

Hi, you can execute follow this is:

docker run -p 8080:80 -v ./agent0:/a0/usr agent0ai/agent-zero

fernandobayit avatar Mar 28 '26 09:03 fernandobayit

Hey, you can Also use a Compose.yaml configuration file and docker compose.

The The Fastest way for a Linux/Mac setup is to install "opencode" and have an amazing assistant help you install and configure everything. (Big Pickle Zen FREE model is amazing. - both Thumbs up!)

edhooksjr-ai avatar Mar 28 '26 23:03 edhooksjr-ai

Closing due to inactivity of 90 days.

github-actions[bot] avatar Jun 27 '26 04:06 github-actions[bot]