Sistem Gereksinimleri
- 64-bit işletim sistemi
- Linux kernel 3.10 veya üstü
- En az 4GB RAM önerilir
- Yeterli disk alanı (en az 20GB)
Ubuntu 22.04 LTS Kurulum
Adım 1: Eski Sürümleri Kaldır
sudo apt remove docker docker-engine docker.io containerd runc
Adım 2: Repository Ayarları
# Gerekli paketleri yükle
sudo apt update
sudo apt install ca-certificates curl gnupg lsb-release -y
# Docker GPG key ekle
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
# Repository ekle
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
Adım 3: Docker Engine Kurulumu
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
Adım 4: Sudo'suz Kullanım
sudo usermod -aG docker $USER
newgrp docker
Değişikliklerin aktif olması için oturumu kapatıp açmanız gerekebilir.
Adım 5: Kurulum Testi
docker run hello-world
Hello from Docker!
This message shows that your installation appears to be working correctly.
Kurulum Doğrulama
# Versiyon kontrolü
docker --version
docker compose version
# Sistem bilgisi
docker info