{"id":471,"date":"2025-09-10T13:14:03","date_gmt":"2025-09-10T10:14:03","guid":{"rendered":"https:\/\/destek.narhost.com\/?p=471"},"modified":"2026-09-14T20:12:45","modified_gmt":"2026-09-14T17:12:45","slug":"ubuntu-docker-kurulumu","status":"publish","type":"post","link":"https:\/\/narhost.com\/destek\/ubuntu-docker-kurulumu\/","title":{"rendered":"Ubuntu&#8217;da Docker Kurulumu"},"content":{"rendered":"<p class=\"kb-dogrulama\">Son do\u011frulama: Eyl\u00fcl 2026 \u00b7 Ubuntu 24.04 test sunucusunda denendi<\/p>\n<div id=\"hizli-cozum\" class=\"ai-box ai-box--cozum\">\n<p class=\"ai-box-title\">H\u0131zl\u0131 \u00e7\u00f6z\u00fcm<\/p>\n<p><strong>Ubuntu Docker kurulumu<\/strong> Docker&#8217;\u0131n resmi apt deposu eklenip <code>docker-ce<\/code> paketleri kurularak tamamlan\u0131r; ayr\u0131 bir Docker sitesinden dosya indirmeye gerek yoktur.<\/p>\n<ol>\n<li>\u00d6n ko\u015ful paketlerini kurun: <code>ca-certificates<\/code>, <code>curl<\/code>.<\/li>\n<li>Docker&#8217;\u0131n resmi GPG anahtar\u0131n\u0131 ve apt deposunu ekleyin.<\/li>\n<li><code>docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin<\/code> paketlerini kurun.<\/li>\n<li><code>docker run --rm hello-world<\/code> ile kurulumu test edin.<\/li>\n<\/ol>\n<\/div>\n<table class=\"kb-uyg\">\n<tr>\n<th>Panel<\/th>\n<td>Yok \u2014 komut sat\u0131r\u0131ndan (SSH veya konsol)<\/td>\n<\/tr>\n<tr>\n<th>Sistem<\/th>\n<td>VPS\/VDS: Ubuntu 22.04 \/ 24.04<\/td>\n<\/tr>\n<tr>\n<th>Yetki<\/th>\n<td>root veya sudo yetkili kullan\u0131c\u0131<\/td>\n<\/tr>\n<tr>\n<th>Narhost \u00fcr\u00fcn\u00fc<\/th>\n<td><a href=\"https:\/\/narhost.com\/vps-sunucu\" title=\"VPS Sunucu - Narhost\">VPS Sunucu<\/a><\/td>\n<\/tr>\n<\/table>\n<div class=\"kb-once\">\n<p class=\"label\">Ba\u015flamadan \u00f6nce<\/p>\n<ul>\n<li>Sunucunuza <strong>root veya sudo yetkili bir kullan\u0131c\u0131yla<\/strong> ba\u011flanabiliyor olmal\u0131s\u0131n\u0131z; SSH yan\u0131t vermiyorsa <a href=\"https:\/\/narhost.com\/destek\/konsol-baglantisi-ile-sunucuya-nasil-erisilir\/\" title=\"Konsol ba\u011flant\u0131s\u0131 ile sunucuya nas\u0131l eri\u015filir - Narhost Destek\">konsol ba\u011flant\u0131s\u0131n\u0131<\/a> kullan\u0131n.<\/li>\n<li>Sunucunun disk bo\u015flu\u011funu kontrol edin; imajlar ve katmanlar <code>\/var\/lib\/docker<\/code> alt\u0131nda birikir ve zamanla gigabaytlarca yer kaplayabilir.<\/li>\n<li>Sunucunuzda cPanel ya da Plesk kuruluysa Docker&#8217;\u0131 kurmadan \u00f6nce panelin container deste\u011fiyle (\u00f6rne\u011fin WP Toolkit, Docker Manager eklentisi) \u00e7ak\u0131\u015f\u0131p \u00e7ak\u0131\u015fmayaca\u011f\u0131n\u0131 de\u011ferlendirin.<\/li>\n<li>Eski bir Docker kurulumu varsa (<code>docker.io<\/code>, <code>docker-engine<\/code> gibi da\u011f\u0131t\u0131m paketleri) \u00f6nce onu kald\u0131r\u0131n; ayn\u0131 anda iki Docker motoru \u00e7ak\u0131\u015f\u0131r.<\/li>\n<\/ul>\n<\/div>\n<h2>Ubuntu Docker kurulumu ne i\u015fe yarar, ne zaman gerekir<\/h2>\n<p>Docker, uygulamalar\u0131 ba\u011f\u0131ml\u0131l\u0131klar\u0131yla birlikte izole bir konteynerde \u00e7al\u0131\u015ft\u0131rman\u0131z\u0131 sa\u011flar; sunucunun i\u015fletim sistemini kirletmeden birden fazla s\u00fcr\u00fcm\u00fc yan yana test edebilir, bir uygulamay\u0131 <code>docker-compose.yml<\/code> ile tek komutla aya\u011fa kald\u0131rabilirsiniz. Da\u011f\u0131t\u0131m\u0131n kendi depolar\u0131ndaki <code>docker.io<\/code> paketi genellikle eski bir s\u00fcr\u00fcmd\u00fcr; bu y\u00fczden g\u00fcncel \u00f6zellikler ve d\u00fczenli g\u00fcvenlik yamas\u0131 i\u00e7in <a href=\"https:\/\/docs.docker.com\/engine\/install\/ubuntu\/\" title=\"Docker Engine \u2013 Ubuntu&#039;da kurulum (resmi dok\u00fcman)\" target=\"_blank\" rel=\"noopener\">Docker&#8217;\u0131n resmi apt deposu<\/a> tercih edilir. VPS ve VDS sunucular\u0131n\u0131z tam sanalla\u015ft\u0131rma kulland\u0131\u011f\u0131ndan Docker&#8217;\u0131n ihtiya\u00e7 duydu\u011fu \u00e7ekirdek \u00f6zellikleri (cgroup, namespace) do\u011frudan \u00e7al\u0131\u015f\u0131r; bu ad\u0131mlar payla\u015f\u0131ml\u0131 hosting hesaplar\u0131nda uygulanamaz.<\/p>\n<figure class=\"nh-sema\"><img src=\"https:\/\/narhost.com\/destek\/wp-content\/uploads\/2026\/09\/ubuntu-docker-kurulumu-sema-narhost.webp\" alt=\"Ubuntu docker kurulumu ak\u0131\u015f \u015femas\u0131 \u2014 \u00f6n ko\u015ful kurulumu, resmi anahtar ve depo ekleme, paket kurulumu ve hello-world testi\" width=\"1200\" height=\"500\" loading=\"lazy\" decoding=\"async\"><figcaption>\u00d6n ko\u015fuldan teste be\u015f ad\u0131m: anahtar ve depo ekleyip docker-ce paketlerini kurun.<\/figcaption><\/figure>\n<h2>Ad\u0131m ad\u0131m Ubuntu Docker kurulumu<\/h2>\n<ol class=\"kb-adimlar\">\n<li><strong>Paket listesini g\u00fcncelleyin ve \u00f6n ko\u015fullar\u0131 kurun:<\/strong>\n<pre><code class=\"language-bash\">apt update\napt install -y ca-certificates curl<\/code><\/pre>\n<p class=\"kb-cikti\">Beklenen sonu\u00e7: paketler g\u00fcncellenir; test sunucusunda <code>ca-certificates<\/code> ve <code>curl<\/code> sorunsuz kuruldu.<\/p>\n<\/li>\n<li><strong>Docker&#8217;\u0131n resmi anahtar\u0131n\u0131 ekleyin:<\/strong>\n<pre><code class=\"language-bash\">install -m 0755 -d \/etc\/apt\/keyrings\ncurl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg -o \/etc\/apt\/keyrings\/docker.asc\nchmod a+r \/etc\/apt\/keyrings\/docker.asc<\/code><\/pre>\n<\/li>\n<li><strong>Resmi depoyu tan\u0131mlay\u0131n:<\/strong>\n<pre><code class=\"language-bash\">echo \"deb [arch=$(dpkg --print-architecture) signed-by=\/etc\/apt\/keyrings\/docker.asc] https:\/\/download.docker.com\/linux\/ubuntu $(. \/etc\/os-release && echo \"$VERSION_CODENAME\") stable\" | tee \/etc\/apt\/sources.list.d\/docker.list\napt update<\/code><\/pre>\n<p class=\"kb-cikti\">Beklenen sonu\u00e7: <code>\/etc\/apt\/sources.list.d\/docker.list<\/code> i\u00e7inde <code>https:\/\/download.docker.com\/linux\/ubuntu<\/code> sat\u0131r\u0131 g\u00f6r\u00fcn\u00fcr; test sunucusunda (Ubuntu 24.04, kod ad\u0131 <code>noble<\/code>) bu sat\u0131r birebir bu \u015fekilde olu\u015ftu.<\/p>\n<\/li>\n<li><strong>Docker paketlerini kurun:<\/strong>\n<pre><code class=\"language-bash\">apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin<\/code><\/pre>\n<p class=\"kb-cikti\">Beklenen sonu\u00e7: <code>containerd.io<\/code>, <code>docker-ce-cli<\/code>, <code>docker-ce<\/code> ve eklentiler s\u0131rayla kurulur; test sunucusunda kurulum hatas\u0131z tamamland\u0131.<\/p>\n<\/li>\n<li><strong>S\u00fcr\u00fcm\u00fc ve servis durumunu do\u011frulay\u0131n:<\/strong>\n<pre><code class=\"language-bash\">docker --version\nsystemctl is-active docker\nsystemctl is-enabled docker<\/code><\/pre>\n<p class=\"kb-cikti\">Beklenen sonu\u00e7: test sunucusunda <code>Docker version 29.8.0, build 88096ef<\/code>, ard\u0131ndan <code>active<\/code> ve <code>enabled<\/code> sat\u0131rlar\u0131 d\u00f6nd\u00fc.<\/p>\n<\/li>\n<li><strong>Kurulumu test edin:<\/strong>\n<pre><code class=\"language-bash\">docker run --rm hello-world<\/code><\/pre>\n<p class=\"kb-cikti\">Beklenen sonu\u00e7: imaj indirilir ve <code>Hello from Docker!<\/code> mesaj\u0131 g\u00f6r\u00fcn\u00fcr; test sunucusunda bu mesaj birebir al\u0131nd\u0131, konteyner <code>--rm<\/code> sayesinde otomatik silindi.<\/p>\n<\/li>\n<\/ol>\n<div class=\"highlight-box\">\n<p class=\"label\">Bilgi<\/p>\n<p>Docker komutlar\u0131n\u0131 her seferinde <code>sudo<\/code> ile yazmak istemiyorsan\u0131z <a href=\"https:\/\/docs.docker.com\/engine\/install\/linux-postinstall\/\" target=\"_blank\" rel=\"noopener\" title=\"Docker Engine \u2013 Linux kurulum sonras\u0131 ad\u0131mlar (resmi dok\u00fcman)\">Docker&#8217;\u0131n resmi kurulum sonras\u0131 dok\u00fcman\u0131ndaki<\/a> ad\u0131mla kullan\u0131c\u0131n\u0131z\u0131 <code>docker<\/code> grubuna ekleyebilirsiniz (<code>usermod -aG docker $USER<\/code>); bu, kullan\u0131c\u0131ya sunucu \u00fczerinde k\u00f6k yetkisine yak\u0131n bir eri\u015fim verir, bu y\u00fczden yaln\u0131zca g\u00fcvendi\u011finiz hesaplarda uygulanmal\u0131d\u0131r.<\/p>\n<\/div>\n<h2>Do\u011frulama<\/h2>\n<div class=\"success-box\">\n<p class=\"label\">Sonu\u00e7<\/p>\n<p><code>docker run --rm hello-world<\/code> komutu <code>Hello from Docker!<\/code> mesaj\u0131n\u0131 g\u00f6steriyor ve <code>systemctl is-active docker<\/code><code>active<\/code> d\u00f6nd\u00fcr\u00fcyorsa kurulum tamamlanm\u0131\u015f demektir.<\/p>\n<\/div>\n<h2>H\u00e2l\u00e2 \u00e7\u00f6z\u00fclmediyse<\/h2>\n<ul>\n<li><strong>&#8220;Cannot connect to the Docker daemon&#8221; hatas\u0131.<\/strong> Servis \u00e7al\u0131\u015fm\u0131yor olabilir; <a href=\"https:\/\/narhost.com\/destek\/linux-servisini-durdurma-ve-aktif-etme\/\" title=\"Linux servisini durdurma ve aktif etme - Narhost Destek\">servisi durdurma ve aktif etme<\/a> kart\u0131ndaki ad\u0131mlarla <code>docker<\/code> servisini yeniden ba\u015flat\u0131n.<\/li>\n<li><strong>&#8220;Permission denied&#8221; hatas\u0131 (root olmayan kullan\u0131c\u0131).<\/strong> Kullan\u0131c\u0131n\u0131z <code>docker<\/code> grubunda de\u011fildir; komutu <code>sudo<\/code> ile \u00e7al\u0131\u015ft\u0131r\u0131n veya kullan\u0131c\u0131y\u0131 gruba ekleyip oturumu yeniden a\u00e7\u0131n.<\/li>\n<li><strong>Disk h\u0131zla doluyor.<\/strong> Kullan\u0131lmayan imaj ve katmanlar birikmi\u015f olabilir; <a href=\"https:\/\/narhost.com\/destek\/linux-sunucuda-disk-kullanimi-nasil-denetlenir\/\" title=\"Linux sunucuda disk kullan\u0131m\u0131 nas\u0131l denetlenir - Narhost Destek\">disk kullan\u0131m\u0131n\u0131 denetleme<\/a> kart\u0131yla <code>\/var\/lib\/docker<\/code> alt\u0131n\u0131 kontrol edin.<\/li>\n<li><strong>SSH ile ba\u011flanam\u0131yorsunuz.<\/strong><a href=\"https:\/\/narhost.com\/destek\/konsol-baglantisi-ile-sunucuya-nasil-erisilir\/\" title=\"Konsol ba\u011flant\u0131s\u0131 ile sunucuya nas\u0131l eri\u015filir - Narhost Destek\">konsol ba\u011flant\u0131s\u0131<\/a> \u00fczerinden eri\u015fip komutlar\u0131 oradan \u00e7al\u0131\u015ft\u0131r\u0131n.<\/li>\n<\/ul>\n<div class=\"cta-box\">\n<p class=\"label\">Narhost deste\u011fi<\/p>\n<p>Bu kurulum ad\u0131mlar\u0131n\u0131 uygulad\u0131n\u0131z ama servis ba\u015flam\u0131yorsa destek talebinize sunucunuzun IP adresini, Ubuntu s\u00fcr\u00fcm\u00fcn\u00fc, <code>docker --version<\/code> \u00e7\u0131kt\u0131s\u0131n\u0131 ve <code>systemctl status docker<\/code> sonucunu ekleyin.<\/p>\n<p><a class=\"cta-btn\" href=\"https:\/\/narhost.com\/submitticket.php\" title=\"Narhost destek talebi a\u00e7\">Destek talebi a\u00e7<\/a><\/div>\n<div class=\"kb-ilgili\">\n<p class=\"label\">Sonraki ad\u0131mlar<\/p>\n<ul>\n<li><a href=\"https:\/\/narhost.com\/destek\/vps-vds-ilk-kurulum-rehberi\/\" title=\"VPS VDS Sunucu \u0130lk Kurulum Rehberi - Narhost Destek\">VPS VDS Sunucu \u0130lk Kurulum Rehberi<\/a><\/li>\n<li><a href=\"https:\/\/narhost.com\/destek\/top-htop-ile-kaynak-izleme\/\" title=\"Top ve htop ile kaynak izleme - Narhost Destek\">Top ve htop ile kaynak izleme<\/a><\/li>\n<li><a href=\"https:\/\/narhost.com\/destek\/linux-sunucuda-disk-kullanimi-nasil-denetlenir\/\" title=\"Linux sunucuda disk kullan\u0131m\u0131 nas\u0131l denetlenir - Narhost Destek\">Linux sunucuda disk kullan\u0131m\u0131 nas\u0131l denetlenir<\/a><\/li>\n<li><a href=\"https:\/\/narhost.com\/destek\/linux-servisini-durdurma-ve-aktif-etme\/\" title=\"Linux servisini durdurma ve aktif etme - Narhost Destek\">Linux servisini durdurma ve aktif etme<\/a><\/li>\n<li><a href=\"https:\/\/narhost.com\/destek\/konsol-baglantisi-ile-sunucuya-nasil-erisilir\/\" title=\"Konsol ba\u011flant\u0131s\u0131 ile sunucuya nas\u0131l eri\u015filir - Narhost Destek\">Konsol ba\u011flant\u0131s\u0131 ile sunucuya nas\u0131l eri\u015filir<\/a><\/li>\n<\/ul>\n<\/div>\n<div class=\"kb-faq\">\n<h2>S\u0131k\u00e7a sorulan sorular<\/h2>\n<h3>Ubuntu Docker kurulumu ne kadar s\u00fcrer?<\/h3>\n<p>Test sunucusunda anahtar ekleme, depo tan\u0131mlama ve paket kurulumuyla birlikte t\u00fcm i\u015flem \u00fc\u00e7 dakikadan k\u0131sa s\u00fcrd\u00fc; ba\u011flant\u0131 h\u0131z\u0131na g\u00f6re bu s\u00fcre de\u011fi\u015febilir.<\/p>\n<h3>Da\u011f\u0131t\u0131m\u0131n kendi <code>docker.io<\/code> paketini kullanabilir miyim?<\/h3>\n<p>Kurulabilir ama genellikle Docker&#8217;\u0131n resmi deposundan daha eski bir s\u00fcr\u00fcmd\u00fcr ve g\u00fcncelleme s\u0131kl\u0131\u011f\u0131 d\u00fc\u015f\u00fckt\u00fcr; g\u00fcncel <code>docker-ce<\/code> paketi bu y\u00fczden \u00f6nerilir.<\/p>\n<h3>Docker&#8217;\u0131 payla\u015f\u0131ml\u0131 hosting hesab\u0131mda kurabilir miyim?<\/h3>\n<p>Hay\u0131r. Payla\u015f\u0131ml\u0131 hostingde SSH eri\u015fimi ve k\u00f6k yetkisi yoktur; Docker kurulumu yaln\u0131zca kendi y\u00f6netti\u011finiz VPS veya VDS sunucular\u0131nda yap\u0131labilir.<\/p>\n<h3>Kurulumdan sonra Docker&#8217;\u0131 komutsuz her a\u00e7\u0131l\u0131\u015fta otomatik ba\u015flatabilir miyim?<\/h3>\n<p>Evet, paket kurulumu s\u0131ras\u0131nda <code>docker.service<\/code> systemd taraf\u0131ndan zaten etkinle\u015ftirilir; <code>systemctl is-enabled docker<\/code> ile <code>enabled<\/code> durumunu do\u011frulayabilirsiniz.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu Docker kurulumu Docker&#8217;\u0131n resmi apt deposu eklenerek, docker-ce paketleri kurulup hello-world konteyneriyle test edilerek nas\u0131l tamamlan\u0131r; disk ve yetki uyar\u0131lar\u0131yla birlikte.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,13],"tags":[235],"class_list":["post-471","post","type-post","status-publish","format-standard","hentry","category-vds-server","category-vps-server","tag-docker"],"meta_box":[],"_links":{"self":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts\/471","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/comments?post=471"}],"version-history":[{"count":4,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts\/471\/revisions"}],"predecessor-version":[{"id":911,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts\/471\/revisions\/911"}],"wp:attachment":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/media?parent=471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/categories?post=471"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/tags?post=471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}