# Docker container

{% hint style="danger" %}
The "**Host system**" must run on Linux 5+. Tested on Debian 11, Ubuntu 21.04, and Ubuntu Server 22.04 LTS.
{% endhint %}

MikoPBX can be run in Docker using two main methods. The first method involves running the container directly using a Docker command with the necessary parameters. The second method involves using Docker Compose, which simplifies managing multi-container applications and allows the entire configuration to be described in a yaml file, making the deployment and maintenance of the system more convenient.

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Docker installation and creating a user and directories</strong></td><td>Commands to install Docker and Docker Compose and configuration before creating the container</td><td><a href="/files/ChL8hipVRc9uY2RDC4Bt">/files/ChL8hipVRc9uY2RDC4Bt</a></td><td><a href="/pages/S855fTXTiCSkuWUQRot1">/pages/S855fTXTiCSkuWUQRot1</a></td></tr><tr><td><strong>Running MikoPBX in a container</strong></td><td>Instructions for running a ready-made MikoPBX container, creating a container from a custom image, and running it</td><td><a href="/files/O95h0sEMV1paPsJ7vxZP">/files/O95h0sEMV1paPsJ7vxZP</a></td><td><a href="/pages/tB5H931p2HF5cg4vVNWj">/pages/tB5H931p2HF5cg4vVNWj</a></td></tr><tr><td><strong>Running MikoPBX using docker compose</strong></td><td>Instructions for running multiple MikoPBX instances on a single host using Docker Compose</td><td><a href="/files/bJBYkjJDihbFaq4BPoOh">/files/bJBYkjJDihbFaq4BPoOh</a></td><td><a href="/pages/t4GJnAcXeqep7nWSGyPJ">/pages/t4GJnAcXeqep7nWSGyPJ</a></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mikopbx.com/mikopbx/english/setup/docker.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
