> For the complete documentation index, see [llms.txt](https://howto.thec2matrix.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://howto.thec2matrix.com/lab-infrastructure/untitled.md).

# Docker

Using Docker is a great idea for creating lab and attack infrastructure. Many C2s use Docker or have the option.

## Install Docker on Kali

```bash
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
echo 'deb [arch=amd64] https://download.docker.com/linux/debian buster stable' > /etc/apt/sources.list.d/docker.list
apt-get update
apt-get install docker-ce
apt-get install docker-compose
```

## Start Docker

```bash
systemctl start docker
```
