> For the complete documentation index, see [llms.txt](https://screamz2k.gitbook.io/phoenixc2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://screamz2k.gitbook.io/phoenixc2/setup/docker.md).

# Docker

## Get the image

### From Docker Hub

```bash
docker pull screamz2k/phoenixc2
```

### From source

```bash
git clone https://github.com/screamz2k/PhoenixC2
```

Change directory

```bash
cd PhoenixC2
```

Build the image

```bash
docker build . -t phoenixc2
```

## Create a container

Run the image and expose all ports to the underlying host, so stagers can connect to the listeners. (Only works on Linux)

```
docker run -it --network host screamz2k/phoenixc2
```
