> For the complete documentation index, see [llms.txt](https://docs.quadratichq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.quadratichq.com/self-hosting/docker.md).

# Docker

Deploy Quadratic with Docker to almost any hardware.

Docker deployments with Quadratic are a few easy steps away. Instructions vary depending on operating system.&#x20;

## MacOS and Linux

**Basic requirements:**&#x20;

* License Key (available at <https://selfhost.quadratichq.com/>)
* The following open ports: 80, 443, 3001, 3002, 3003, 4433, 4455, and 8000
* [Docker](https://www.docker.com/get-started/)

```bash
curl -sSf https://raw.githubusercontent.com/quadratichq/quadratic-selfhost/main/init-local.sh -o init.sh && bash -i init.sh
```

This will start the process of downloading and running containers, also prompting for the license key that you can acquire for free at <https://selfhost.quadratichq.com/>. Quadratic self-hosting is free for up to three users on a single deployment.&#x20;

Need help? Enterprise users can  [Contact us](https://quadratichq.com/contact).

## Windows

Running on Windows requires using WSL 2 with Docker integration enabled.&#x20;

1. WSL 2 set up, here are installation instructions: <https://learn.microsoft.com/en-us/windows/wsl/install>
2. Add Docker to WSL: <https://docs.docker.com/desktop/features/wsl/>
3. Retrieve license key: <https://selfhost.quadratichq.com/>
4. Run command to download and run containers, this step will also prompt for license&#x20;

```bash
curl -sSf https://raw.githubusercontent.com/quadratichq/quadratic-selfhost/main/init-local.sh -o init.sh && bash -i init.sh
```

Need help? Enterprise users can  [Contact us](https://quadratichq.com/contact).

## Common errors

**Toomanyrequests**: this error will happen if you have not logged in to Docker when trying to download and run containers. Use `Docker login` in your terminal to fix.&#x20;

**Error getting credentials:** <https://forums.docker.com/t/error-failed-to-solve-error-getting-credentials-err-exit-status-1-out/136124>

**Docker + WSL virtualization errors:** ensure virtualization is enabled in your BIOS: <https://support.microsoft.com/en-us/windows/enable-virtualization-on-windows-c5578302-6e43-4b4b-a449-8ced115f58e1>

## Contact us

Enterprise users can [contact us](https://quadratichq.com/contact) if you need any more help setting up a deployment of Quadratic using Docker.&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.quadratichq.com/self-hosting/docker.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
