# Useful Commands

## Starting and Stopping Monolith Server

```
// Deploy and Run Monolith Containers
// Must be run in same directory as docker-compose.yml
docker compose up -d

// Remove Monolith containers
// ust be run in same directory as docker-compose.yml
docker compose down
```

These commands can be used together to conduct a "hard" restart of Monolith.

{% hint style="info" %}
Restarting Monolith in this way does not cause any data loss and should be used when you need to update your licensing from a license token.
{% endhint %}

## Various Docker Commands

```
// Show resource usage of docker containers
docker stats

// Show running containers
docker container ls -a

// Show downloaded container images
docker image ls -a

// Download fresh container image
docker pull [container-name]

// Restart container
docker container restart [container-name]
```

## Docker CLI Reference

Additional Docker commands can be reviewed on Dockers official documentation pages:

<https://docs.docker.com/engine/reference/run/>

## Docker Compose CLI Reference

Additional Docker compose commands can be reviewed on Docker's official documentations pages:

<https://docs.docker.com/compose/reference/>


---

# 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.monolithforensics.com/monolith/monolith-features/on-premises-deployments/deployment/useful-commands.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.
