> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/on-premises/el/ksekinontas/requirements/setup-docker.md).

# Ρύθμιση του Docker

Το Overleaf εκτελείται πάνω σε Docker. Πρέπει να εγκαταστήσετε:

* Μηχανή Docker (Docker CE)
* Docker Compose **πρόσθετο** (`docker compose`, v2)

Αυτά τα βήματα αφορούν μια πρόσφατη έκδοση Ubuntu LTS (20.04/22.04/24.04).

{% hint style="warning" %}
Αποφύγετε να εγκαταστήσετε `docker.io` από το προεπιλεγμένο αποθετήριο apt του Ubuntu.\
Χρησιμοποιήστε το επίσημο αποθετήριο του Docker ώστε να έχετε μια πρόσφατη έκδοση του Docker και το `docker compose` πρόσθετο.
{% endhint %}

Το επίσημο έγγραφο προέρχεται από: <https://docs.docker.com/engine/install/ubuntu/>.

{% stepper %}
{% step %}

### 1) Αφαιρέστε παλιά/αντικρουόμενα πακέτα (αν υπάρχουν)

Αν το Docker είχε εγκατασταθεί προηγουμένως από άλλη πηγή, αφαιρέστε το πρώτα:

{% code overflow="wrap" %}

```bash
 sudo apt remove $(dpkg --get-selections docker.io docker-compose docker-compose-v2 docker-doc podman-docker containerd runc | cut -f1)
```

{% endcode %}

Αυτή η εντολή είναι ασφαλής αν κάποια πακέτα δεν είναι εγκατεστημένα.
{% endstep %}

{% step %}

### 2) Προσθέστε το επίσημο αποθετήριο apt του Docker

Εγκαταστήστε τις προαπαιτήσεις:

```bash
sudo apt update
sudo apt install -y ca-certificates curl
```

Προσθέστε το κλειδί GPG του Docker:

{% code overflow="wrap" %}

```bash
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
```

{% endcode %}

Προσθέστε το αποθετήριο:

{% code overflow="wrap" %}

```bash
# Προσθέστε το αποθετήριο στις πηγές του Apt:
sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://download.docker.com/linux/ubuntu
Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
Components: stable
Signed-By: /etc/apt/keyrings/docker.asc
EOF

sudo apt update
```

{% endcode %}
{% endstep %}

{% step %}

### 3) Εγκαταστήστε τη Μηχανή Docker + το πρόσθετο Compose

Εγκαταστήστε το Docker και το πρόσθετο Compose:

{% code overflow="wrap" %}

```bash
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
```

{% endcode %}

Εκκινήστε το Docker κατά την εκκίνηση:

```bash
sudo systemctl enable --now docker
```

{% endstep %}

{% step %}

### 4) Επαληθεύστε την εγκατάσταση

Αυτές οι εντολές θα πρέπει να εκτελούνται χωρίς σφάλματα:

```bash
docker --version
docker compose version
sudo docker run --rm hello-world
docker ps
```

{% endstep %}

{% step %}

### 5) (Προαιρετικό) Εκτελέστε το Docker χωρίς sudo

Προσθέστε τον χρήστη σας στην `docker` ομάδα:

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

Στη συνέχεια **αποσυνδεθείτε και συνδεθείτε ξανά**, ή εκτελέστε:

```bash
newgrp docker
```

Τώρα αυτό θα πρέπει να λειτουργεί χωρίς `sudo`:

```bash
docker ps
```

{% hint style="danger" %}
Το `docker` η ομάδα έχει πρόσβαση ισοδύναμη με root στον host.\
Αυτό αναμένεται για τυπικές εγκαταστάσεις Overleaf και είναι ιδιαίτερα σχετικό αν ενεργοποιήσετε τα Sandboxed Compiles.
{% endhint %}
{% endstep %}
{% endstepper %}

### Επόμενο βήμα

Μόλις το Docker λειτουργεί, συνεχίστε με τα βήματα εγκατάστασης του Toolkit στο [Χρήση του Toolkit](/on-premises/el/egkatastasi/using-the-toolkit.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/on-premises/el/ksekinontas/requirements/setup-docker.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
