# 01) Docker installation

### Installing Docker

You probably already know how to install Docker, but I wanted to include it because it may be useful to some and, of course, Docker is required to run the Cosmos Server, so we must first install it.

I'll only keep a Linux tutorial because I have no experience with Docker running on Windows.

### Linux

1. Go to your terminal, that's connected to your server.\
   In my case, I use the [PuTTY client](https://putty.org/) for Windows.
2. Execute this command:

   <pre class="language-bash"><code class="lang-bash"><strong>sudo -v ; curl -fsSL https://get.docker.com | sudo sh
   </strong></code></pre>
3. This will download and execute the official [Docker installation script](https://get.docker.com/).
4. It should look something like this, when executed:\
   [![asciicast](https://asciinema.org/a/4Bm9j6ndOBbkjx0ElLYjHEmkf.svg)](https://asciinema.org/a/4Bm9j6ndOBbkjx0ElLYjHEmkf)
5. When the script is finished, run the following command to enable you to run Docker without using sudo all the time:

```bash
sudo usermod -aG docker ${USER}
```

6. This'll add your username to the `docker` group

{% hint style="info" %}
**NB:** You need to exit and re-enter your terminal session, before it takes effect
{% endhint %}

### On to the next step!


---

# 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://guides.engels.zip/docker-and-compose-setup/01-docker-installation.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.
