> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openhands.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Run with Podman

> Run the Docker Compose stack with Podman instead of Docker

You can run the [Docker Compose](https://docs.openhands.dev/enterprise/docker-compose) stack with Podman instead of Docker.
You don't need to change `docker-compose.yml`. We recommend rootless Podman.

## Prerequisites

* Git
* [Podman](https://podman.io/docs/installation)
* Docker Compose. On Linux, [install it as a plugin](https://docs.docker.com/compose/install/linux/#install-the-plugin-manually)
  for all users.
* Model credentials for your chosen [model or gateway setup](https://docs.openhands.dev/enterprise/integrations/models-and-gateways)

`podman compose` uses Docker Compose to run the stack against the Podman socket. You don't need
Docker Engine.

## Install

**1. Clone the repository**

```bash theme={null}
git clone https://github.com/OpenHands/enterprise.git
cd enterprise
```

**2. Set up Podman**

> [tab] Linux
>
> For rootless Podman, run every command as the user that will run OpenHands, not as root.
>
> Start the Podman socket, keep the stack running across logouts and reboots, and point the
> stack at the socket:
>
> ```bash theme={null}
> systemctl --user enable --now podman.socket
> systemctl --user enable podman-restart.service
> sudo loginctl enable-linger $USER
> echo "DOCKER_SOCKET=$XDG_RUNTIME_DIR/podman/podman.sock" >> .env
> ```
>
> The application uses the socket at `DOCKER_SOCKET` to start sandbox containers.

> [tab] macOS
>
> Create and start a Podman machine. We recommend giving it 8 GB of memory:
>
> ```bash theme={null}
> podman machine init --memory 8192
> podman machine start
> ```
>
> To resize an existing machine, stop it and run `podman machine set --memory 8192`.
>
> The stack finds the machine's socket at the default path, so you don't need to set
> `DOCKER_SOCKET`.

**3. Start the stack**

```bash theme={null}
podman compose up -d
```

On the first start, Podman pulls images, which can take several minutes.

**4. Complete onboarding**

Open `http://localhost:9043` and follow the onboarding flow to create your first user and
configure your LLM provider.

## Manage the Stack

Follow the other Compose guides with Podman commands. Run `podman compose` wherever they use
`docker compose`, and `podman compose up -d` wherever they use `./scripts/setup.sh`. For example,
the [upgrade](https://docs.openhands.dev/enterprise/docker-compose#upgrade) steps become `git pull`, `podman compose down`,
and `podman compose up -d`.

## Serve Over HTTPS

The [HTTPS guide](https://docs.openhands.dev/enterprise/docker-compose/https.md) serves the stack on ports 80 and 443. Rootless
Podman on Linux can only publish ports 1024 and above by default. Allow it to publish port 80 and
above before you start the stack:

```bash theme={null}
echo "net.ipv4.ip_unprivileged_port_start=80" | sudo tee /etc/sysctl.d/90-openhands.conf
sudo sysctl --system
```

If you use your own certificate on a host with SELinux enforcing, such as RHEL, label the `certs`
directory so Caddy can read it:

```bash theme={null}
chcon -R -t container_file_t certs
```

## Use Rootful Podman

To run rootful Podman on Linux, replace the **Set up Podman** and **Start the stack** steps with
these commands. Run every `podman compose` command with `sudo`:

```bash theme={null}
sudo systemctl enable --now podman.socket
sudo systemctl enable podman-restart.service
echo "DOCKER_SOCKET=/run/podman/podman.sock" >> .env
sudo podman compose up -d
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.