# Docker Guide

This guide will walk you through downloading the latest release of CSS Bans, setting it up using Docker, and running the project.

### Prerequisites

* Docker installed on your system

### Steps

1. **Download the Latest Release**

   Download the latest release of CSS Bans from the [GitHub releases page](https://github.com/css-bans/css-bans).
2. **Unzip the Release**

   Unzip the `release.zip` file to a folder. For example, create a folder named `bans` and extract the contents there.

   ```sh
   mkdir bans
   unzip release.zip -d bans
   ```
3. **Navigate to the Bans Directory**

   Change your current directory to the `bans` directory.

   ```sh
   cd bans
   ```
4. **Download the Docker Image**

   Pull the Docker image from Docker Hub.

   ```sh
   docker pull cssbans/cssbans-php-nginx
   ```
5. **Run the Docker Container**

   Run the Docker container with the following command:

   ```sh
   sudo docker run -p 80:8080 -v $(pwd):/var/www/html cssbans/cssbans-php-nginx
   ```
6. **Visit Your Site**

   Open your web browser and navigate to `http://localhost` (or the appropriate IP address if you are running on a remote server).
7. **Continue with Panel Setup**

   Follow the on-screen instructions to complete the panel setup for CSS Bans.

### Additional Information

For more details and configuration options, refer to the [CSS Bans documentation](https://github.com/css-bans/css-bans).

***

By following these steps, you should have the CSS Bans project up and running using Docker. If you encounter any issues, please refer to the project's GitHub page for troubleshooting and support.


---

# 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://css-bans.gitbook.io/css-bans-counterstirkesharp-admin-web-panel/self-hosting-optional/docker-guide.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.
