# 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="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FsNCzbGknqbHCk2K7LxwX%2Finstall.png?alt=media&#x26;token=98c9aeec-a9fa-446f-a907-eb687b7509b0">install.png</a></td><td><a href="docker/docker-installation">docker-installation</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="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2F2hEHJTWnqigrAWBEPxhf%2Fdocker.png?alt=media&#x26;token=d9d35f8f-d848-4627-b51a-af573c447a38">docker.png</a></td><td><a href="docker/running-mikopbx-in-container">running-mikopbx-in-container</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="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FSj4ug3OGiW3DwfY7KCdC%2Fcompose.png?alt=media&#x26;token=abf028b2-8b4d-4f73-a2d4-5fabda153c57">compose.png</a></td><td><a href="docker/running-mikopbx-using-docker-compose">running-mikopbx-using-docker-compose</a></td></tr></tbody></table>
