> 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/tr/baslarken/requirements/setup-docker.md).

# Docker'ı kurun

Overleaf Docker üzerinde çalışır. Şunları kurmanız gerekir:

* Docker Engine (Docker CE)
* Docker Compose **eklenti** (`docker compose`, v2)

Bu adımlar, yakın tarihli bir Ubuntu LTS sürümünü (20.04/22.04/24.04) hedefler.

{% hint style="warning" %}
Kurmayın `docker.io` Ubuntu’nun varsayılan apt deposundan.\
Güncel bir Docker sürümü ve\
eklenti elde etmek için Docker’ın resmi deposunu kullanın. `docker compose` eklenti.
{% endhint %}

Resmî belge şuradan alınmıştır: <https://docs.docker.com/engine/install/ubuntu/>.

{% stepper %}
{% step %}

### 1) Eski/çakışan paketleri kaldırın (varsa)

Docker daha önce başka bir kaynaktan yüklendiyse, önce onu kaldırın:

{% 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 %}

Bu komut, bazı paketler yüklü değilse de güvenlidir.
{% endstep %}

{% step %}

### 2) Docker’ın resmi apt deposunu ekleyin

Gerekli önkoşulları kurun:

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

Docker GPG anahtarını ekleyin:

{% 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 %}

Depoyu ekleyin:

{% code overflow="wrap" %}

```bash
# Depoyu Apt kaynaklarına ekleyin:
sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
Türler: deb
URI’ler: https://download.docker.com/linux/ubuntu
Sürümler: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
Bileşenler: stable
İmza-Anahtarı: /etc/apt/keyrings/docker.asc
EOF

sudo apt update
```

{% endcode %}
{% endstep %}

{% step %}

### 3) Docker Engine + Compose eklentisini kurun

Docker ve Compose eklentisini kurun:

{% code overflow="wrap" %}

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

{% endcode %}

Docker’ı önyüklemede başlatın:

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

{% endstep %}

{% step %}

### 4) Kurulumu doğrulayın

Bu komutlar hatasız çalışmalıdır:

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

{% endstep %}

{% step %}

### 5) (İsteğe bağlı) Docker’ı sudo olmadan çalıştırın

Kullanıcınızı şuna ekleyin: `docker` grup:

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

Sonra **çıkış yapıp tekrar giriş yapın**, veya şunu çalıştırın:

```bash
newgrp docker
```

Artık bu, olmadan çalışmalıdır `sudo`:

```bash
docker ps
```

{% hint style="danger" %}
Bu `docker` grubu, ana makinede root düzeyine eşdeğer erişime sahiptir.\
Bu, tipik Overleaf kurulumları için beklenen bir durumdur ve Sandboxed Compiles’i etkinleştirirseniz özellikle önemlidir.
{% endhint %}
{% endstep %}
{% endstepper %}

### Sonraki adım

Docker çalıştıktan sonra, Toolkit kurulum adımlarına şuradan devam edin: [Toolkit’i Kullanma](/on-premises/tr/kurulum/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/tr/baslarken/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.
