{"id":7062,"date":"2021-06-27T18:37:00","date_gmt":"2021-06-27T15:37:00","guid":{"rendered":"https:\/\/www.hosting.com.tr\/blog\/?p=7062"},"modified":"2025-08-15T07:31:57","modified_gmt":"2025-08-15T04:31:57","slug":"docker","status":"publish","type":"post","link":"https:\/\/www.hosting.com.tr\/blog\/docker\/","title":{"rendered":"Docker Nedir, Ne \u0130\u015fe Yarar?"},"content":{"rendered":"\r\n<p>Linux sistemindeki en alt seviyede bulunan yaz\u0131l\u0131m\u0131 Linux Kernel\u2019e eklenmi\u015f olan Linux Containers (LXC) \u00fczerine kurulmu\u015f teknolojiye Docker ad\u0131 verilmektedir. Docker, bir i\u015fletim sistemi \u00fczerinde konteyner olu\u015fturmak ve olu\u015fturulan konteyner\u2019daki uygulamalar\u0131n da\u011f\u0131l\u0131m\u0131n\u0131n otomatik olarak yap\u0131lmas\u0131n\u0131 sa\u011flamak i\u00e7in Linux\u2019un mevcut \u00e7ekirde\u011finin \u00f6zelliklerini kullanan Container Engine olarak tan\u0131mlanmaktad\u0131r.<\/p>\r\n\r\n\r\n\r\n<p>Container Engine\u2019lar, \u00f6nceden tan\u0131mlanm\u0131\u015f olan konfig\u00fcrasyonlar do\u011frultusunda konteyner\u2019lar\u0131 otomatik olarak y\u00f6netmektedir. Linux Kernel ile entegre \u00e7al\u0131\u015fan Docker, Linux tabanl\u0131 bir i\u015fletim sistemi \u00fczerinden \u00e7al\u0131\u015fmas\u0131n\u0131 ger\u00e7ekle\u015ftirmek zorundad\u0131r. MacOS ve Windows i\u015fletim sistemlerinde kurulan Docker, kendisine sanal bir sunucu kurarak onun \u00fczerinden \u00e7al\u0131\u015fmas\u0131n\u0131 s\u00fcrd\u00fcrecektir. Bu da Docker i\u00e7erisinde yer alan bir tak\u0131m dosyalara eri\u015fimin s\u0131n\u0131rlanmas\u0131 anlam\u0131na gelmektedir. Arka planda Linux i\u015fletim sistemi oldu\u011funda ise Docker hakimiyeti %100\u2019e \u00e7\u0131kmaktad\u0131r.\u00a0<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"626\" height=\"626\" class=\"wp-image-7063\" src=\"https:\/\/www.hosting.com.tr\/blog\/wp-content\/uploads\/2021\/07\/docker-nedir.png\" alt=\"Docker Ne \u0130\u015fe Yarar?\" srcset=\"https:\/\/www.hosting.com.tr\/blog\/wp-content\/uploads\/2021\/07\/docker-nedir.png 626w, https:\/\/www.hosting.com.tr\/blog\/wp-content\/uploads\/2021\/07\/docker-nedir-300x300.png 300w, https:\/\/www.hosting.com.tr\/blog\/wp-content\/uploads\/2021\/07\/docker-nedir-150x150.png 150w\" sizes=\"auto, (max-width: 626px) 100vw, 626px\" \/><\/figure>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"docker-ne-ise-yarar\">Docker Ne \u0130\u015fe Yarar?<\/h2>\r\n\r\n\r\n\r\n<p>Docker, di\u011fer sanal makinelerden farkl\u0131 olarak, sanal i\u015fletim sistemini s\u0131f\u0131rdan olu\u015fturmak yerine, Linux \u00e7ekirde\u011finin payla\u015f\u0131m\u0131 ile birbirinden ba\u011f\u0131ms\u0131z \u015fekilde sistemin kullan\u0131lmas\u0131n\u0131 sa\u011flar. Docker kullanmadan bir sistemin olu\u015fturulmas\u0131 ekstra \u00e7aba gerektiren yorucu bir s\u00fcreci kapsamaktad\u0131r. Y\u00fcr\u00fct\u00fclecek t\u00fcm i\u015flemler Docker ile birka\u00e7 saniyede ger\u00e7ekle\u015ftirilmektedir. Docker h\u0131zl\u0131 kurulumu i\u00e7in resmi web sitesini <a href=\"https:\/\/docs.docker.com\/get-docker\/\">buradan<\/a> ziyaret edebilirsiniz. Docker, yaz\u0131l\u0131m ve sistem i\u00e7in geli\u015ftirilmi\u015f olan, a\u00e7\u0131k kaynak \u00f6zellikli bir sanalla\u015ft\u0131rma altyap\u0131s\u0131d\u0131r.\u00a0<\/p>\r\n\r\n\r\n\r\n<p>Docker\u2019\u0131n olu\u015fturmu\u015f oldu\u011fu platform ile Web sitelerinin kurulumlar\u0131, testleri ve da\u011f\u0131t\u0131m i\u015flemleri kolayl\u0131kla ger\u00e7ekle\u015ftirilmektedir. Docker\u2019\u0131n en \u00f6nemli \u00f6zelli\u011fi ise webmaster\u2019lar\u0131n da s\u0131k\u00e7a kar\u015f\u0131la\u015ft\u0131\u011f\u0131 <strong>\u201cMevcut bilgisayarda \u00e7al\u0131\u015f\u0131p, sunucuda \u00e7al\u0131\u015fmama<\/strong>\u201d sorunlar\u0131n\u0131 tamamen ortadan kald\u0131r\u0131lmas\u0131d\u0131r. Docker sanalla\u015ft\u0131rma altyap\u0131s\u0131, di\u011fer sanal makinelerden (VirtualBox gibi) daha farkl\u0131d\u0131r ve i\u00e7erisinde Hypervisor katman\u0131n\u0131 bar\u0131nd\u0131rmamaktad\u0131r. Bunlar\u0131n yerine, Docker Engine \u00fczerinden i\u015fletim sistemine eri\u015fim sa\u011flar ve sistem ara\u00e7lar\u0131n\u0131 payla\u015f\u0131ml\u0131 \u015fekilde kullan\u0131r. Docker\u2019\u0131n en b\u00fcy\u00fck avantaj\u0131 ise \u00e7ok daha az sistem kayna\u011f\u0131 t\u00fcketimi sa\u011flamas\u0131d\u0131r.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"docker-kavramlari-ve-terminolojisi-nelerdir-nasil-kullanilir\">Docker Kavramlar\u0131 ve Terminolojisi Nelerdir? Nas\u0131l Kullan\u0131l\u0131r?<\/h2>\r\n\r\n\r\n\r\n<p>Docker \u00e7al\u0131\u015fma prensibini ve ne i\u015fe yarad\u0131\u011f\u0131n\u0131 anlamak i\u00e7in, genel yap\u0131s\u0131n\u0131 incelemek gerekmektedir.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\" id=\"image\">Image<\/h3>\r\n\r\n\r\n\r\n<p>\u00c7al\u0131\u015ft\u0131r\u0131lmas\u0131 pl\u00e2nlanan uygulamalar\u0131n paket haline getirilmi\u015f \u015fekli olmaktad\u0131r. Konteyner ise paket haline getirilen image\u2019lerin \u00e7al\u0131\u015ft\u0131r\u0131laca\u011f\u0131 alan\u0131 ifade eder.\u00a0<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\" id=\"dockerfile\">Dockerfile<\/h3>\r\n\r\n\r\n\r\n<p>Mevcut lokaliniz \u00fczerinde \u00e7al\u0131\u015fan proje i\u00e7erisinde, image \u00fcretmek amac\u0131yla kullan\u0131lan \u201c<strong>Config<\/strong>\u201d dosyas\u0131na verilen isimdir.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\" id=\"docker-registry\">Docker Registry<\/h3>\r\n\r\n\r\n\r\n<p>Docker image\u2019lerin saklanm\u0131\u015f oldu\u011fu konumu temsil etmektedir. Docker varsay\u0131lan olarak Docker Hub \u00fczerinde image\u2019leri tarama yapacak bi\u00e7imde yap\u0131land\u0131r\u0131lmaktad\u0131r.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\" id=\"docker-hub\">Docker Hub<\/h3>\r\n\r\n\r\n\r\n<p>image\u2019lerin payla\u015f\u0131m\u0131n\u0131n yap\u0131ld\u0131\u011f\u0131 ve sakland\u0131\u011f\u0131 depo \u00f6zelli\u011findedir. Docker Hub i\u00e7in, image deposu ifadesi kullan\u0131lmaktad\u0131r.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\" id=\"docker-engine\">Docker Engine<\/h3>\r\n\r\n\r\n\r\n<p>Bir Linux \u00e7ekirde\u011fi \u00fczerinde \u00e7al\u0131\u015fmas\u0131n\u0131 ger\u00e7ekle\u015ftirmektedir.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\" id=\"docker-machine\">Docker Machine\u00a0<\/h3>\r\n\r\n\r\n\r\n<p>Birden \u00e7ok host\u2019lar\u0131 olu\u015fturma ve y\u00f6netme g\u00f6revini ger\u00e7ekle\u015ftirmektedir. Bir ya da daha fazla sistem i\u00e7erisinde \u201c<strong>Docker Engine<\/strong>\u201d y\u00fckleme i\u015flemlerinde kullan\u0131lmaktad\u0131r.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\" id=\"docker-daemon\">Docker Daemon<\/h3>\r\n\r\n\r\n\r\n<p>Bir Linux \u00e7ekirde\u011finin i\u00e7erisinde bulunan LXC yap\u0131s\u0131 mant\u0131\u011f\u0131yla \u00e7al\u0131\u015fmaktad\u0131r. Docker Daemon\u2019un amac\u0131, konteynerlar\u0131n birbirinden izole olarak \u00e7al\u0131\u015fmalar\u0131n\u0131 y\u00fcr\u00fctmelerine destek olmakt\u0131r.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\" id=\"docker-client-ve-docker-server\">Docker Client ve Docker Server<\/h3>\r\n\r\n\r\n\r\n<p>Docker Client\/Server yap\u0131s\u0131n\u0131 olu\u015fturarak kullanmaktad\u0131r. Client alan\u0131 mevcut hotsumuz ise Server alan\u0131 Docker\u2019\u0131n i\u015flem yapt\u0131\u011f\u0131 host olmaktad\u0131r. MacOS ve Windows i\u015fletim sistemlerinde Docker kendi Linux\u2019unu olu\u015fturarak, sanal bir Linux \u00fczerinde \u00e7al\u0131\u015fmas\u0131n\u0131 ger\u00e7ekle\u015ftirir. \u00d6zet olarak kendi server\u0131n\u0131 olu\u015fturmu\u015f olmaktad\u0131r.\u00a0<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"docker-neden-kullanilir\">Docker Neden Kullan\u0131l\u0131r?<\/h2>\r\n\r\n\r\n\r\n<p>G\u00fcn\u00fcm\u00fcz teknoloji d\u00fcnyas\u0131nda, kavramlar kullan\u0131c\u0131lar taraf\u0131ndan ak\u0131l kar\u0131\u015f\u0131kl\u0131\u011f\u0131na neden olmaktad\u0131r. Docker platformu s\u00f6z konusu oldu\u011funda ise \u201c<strong>Docker nedir neden kullan\u0131l\u0131r<\/strong>\u201d, \u201c<strong>Docker nedir ne i\u00e7in kullan\u0131l\u0131r<\/strong>\u201d, \u201c<strong>Docker nedir nas\u0131l \u00e7al\u0131\u015f\u0131r<\/strong>\u201d sorular\u0131na cevap vermek gerekir. Docker en basit ifadesiyle, uygulamalar\u0131n en h\u0131zl\u0131 \u015fekilde bir araya getirilmesine, test edilmesine ve da\u011f\u0131tma i\u015flemlerinin ger\u00e7ekle\u015ftirilmesine imkan sunan yaz\u0131l\u0131m platformudur.\u00a0<\/p>\r\n\r\n\r\n\r\n<p>Docker, yaz\u0131l\u0131mlar\u0131n\u0131 kitapl\u0131klar, sistem ara\u00e7lar\u0131, \u00e7al\u0131\u015fma zamanlar\u0131 gibi bir yaz\u0131l\u0131m\u0131n \u00e7al\u0131\u015fma s\u00fcrecinde kullan\u0131lan her \u015feyi, konteyner ad\u0131 verilen sanalla\u015ft\u0131r\u0131lm\u0131\u015f olan birimler \u015feklinde paketleme i\u015flemini ger\u00e7ekle\u015ftirmektedir.<\/p>\r\n\r\n\r\n\r\n<p>Docker kullan\u0131m\u0131 ile her veri ortam\u0131na h\u0131zl\u0131 bir \u015fekilde uygulama da\u011f\u0131tarak, \u00f6l\u00e7eklendirme yapabilmekte, kodlar\u0131n do\u011fru \u00e7al\u0131\u015ft\u0131\u011f\u0131ndan emin olabilmektedir. <strong>AWS<\/strong> (<strong>A<\/strong>mazon <strong>W<\/strong>eb <strong>S<\/strong>ervices) d\u00fcnyada kullan\u0131m\u0131 en yayg\u0131n olan, y\u00fcksek kapsaml\u0131 bir bulut platformudur.<\/p>\r\n\r\n\r\n\r\n<p>AWS \u00fczerinde Docker \u00e7al\u0131\u015ft\u0131r\u0131ld\u0131\u011f\u0131nda, geli\u015ftirici ve y\u00f6netici birimlere her \u00f6l\u00e7ekte da\u011f\u0131t\u0131m\u0131 yap\u0131lan uygulama olu\u015fturma, uygulama g\u00f6nderme ve uygulamalar\u0131 \u00e7al\u0131\u015ft\u0131rman\u0131n \u00fcst seviyede g\u00fcvenilir yolunu sa\u011flamaktad\u0131r. Ayn\u0131 zamanda d\u00fc\u015f\u00fck maliyetli bir \u00e7\u00f6z\u00fcm sunmaktad\u0131r.\u00a0<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"626\" height=\"626\" class=\"wp-image-7064\" src=\"https:\/\/www.hosting.com.tr\/blog\/wp-content\/uploads\/2021\/07\/docker-compose.png\" alt=\"Docker Neden Kullan\u0131l\u0131r?\" srcset=\"https:\/\/www.hosting.com.tr\/blog\/wp-content\/uploads\/2021\/07\/docker-compose.png 626w, https:\/\/www.hosting.com.tr\/blog\/wp-content\/uploads\/2021\/07\/docker-compose-300x300.png 300w, https:\/\/www.hosting.com.tr\/blog\/wp-content\/uploads\/2021\/07\/docker-compose-150x150.png 150w\" sizes=\"auto, (max-width: 626px) 100vw, 626px\" \/><\/figure>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"docker-compose-nedir-ne-ise-yarar\">Docker Compose Nedir? Ne \u0130\u015fe Yarar?<\/h2>\r\n\r\n\r\n\r\n<p>Docker Compose, olduk\u00e7a kompleks uygulamalar\u0131n tan\u0131mlanmas\u0131nda ve \u00e7al\u0131\u015ft\u0131r\u0131lmas\u0131nda kullan\u0131lan bir Docker arac\u0131 g\u00f6revindedir. Docker Compose yard\u0131m\u0131yla birden \u00e7ok konteyner (Container) tan\u0131mlamas\u0131 tek dosya i\u00e7erisinde yap\u0131labilmektedir.<\/p>\r\n\r\n\r\n\r\n<p>Docker Compose tek komut ile uygulaman\u0131n ihtiyac\u0131 olan t\u00fcm gereksinimleri harekete ge\u00e7irerek uygulamay\u0131 \u00e7al\u0131\u015ft\u0131rmaktad\u0131r. Docker Compose arac\u0131l\u0131\u011f\u0131yla birden \u00e7ok konteyner \u00e7al\u0131\u015ft\u0131r\u0131l\u0131rken, mevcut konteynerlardan se\u00e7ili olanlar\u0131n birbirlerine ba\u011f\u0131ml\u0131 kalmas\u0131 da sa\u011flanmaktad\u0131r. \u00d6rne\u011fin; WordPress\u2019i harekete ge\u00e7irmek istedi\u011finizde, bir MySQL ve WordPress image tan\u0131mlamas\u0131 yap\u0131labilmektedir.<\/p>\r\n\r\n\r\n\r\n<p>Devam eden i\u015flem ad\u0131mlar\u0131nda WordPress\u2019in veri taban\u0131n\u0131 da (MySQL) ba\u011fl\u0131 (Depent) hale getirebilmektedir. Bu i\u015flem sayesinde veri taban\u0131 harekete ge\u00e7erek, uygulaman\u0131z\u0131 (i\u015flemi ba\u015flat\u0131lan WordPress\u2019i) \u00e7al\u0131\u015ft\u0131rm\u0131\u015f olmaktad\u0131r. Docker Compose temel kullan\u0131m alanlar\u0131n\u0131n d\u0131\u015f\u0131nda farkl\u0131 ama\u00e7larla da kullan\u0131lmaktad\u0131r. Bunlar;<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>Development Environments:<\/strong> Yaz\u0131l\u0131m ve donan\u0131m s\u00fcre\u00e7lerine yeni adapte olanlar i\u00e7in Compose yard\u0131m\u0131yla daha k\u0131sa s\u00fcrelerde geli\u015ftirme yap\u0131labilecek bir ortam haz\u0131rlanabilmektedir.<\/li>\r\n<li><strong>Automated Testing Environments:<\/strong> CI Pipeline i\u00e7in kullan\u0131lmaktad\u0131r. <strong>CI<\/strong> (<strong>C<\/strong>ontinuous <strong>I<\/strong>ntegration) s\u00fcrekli entegrasyonu ifade etmektedir. s\u00fcre\u00e7 Pipeline (boru hatt\u0131) \u00fczerinden y\u00fcr\u00fct\u00fclmektedir. Test otomasyonlar\u0131nda \u00e7al\u0131\u015ft\u0131r\u0131lan uygulamalar ve Script\u2019ler i\u00e7in uygun olmaktad\u0131r.<\/li>\r\n<li><strong>Single Host Deployments:<\/strong> Mevcut olan tek host\u2019un \u00fczerinde t\u00fcm i\u015flemlerin yap\u0131labilmesi, her \u015feyin \u00e7al\u0131\u015ft\u0131r\u0131labilmesi sa\u011flanmaktad\u0131r.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"512\" class=\"wp-image-7065\" src=\"https:\/\/www.hosting.com.tr\/blog\/wp-content\/uploads\/2021\/07\/docker-swarm-nedir.png\" alt=\"\" srcset=\"https:\/\/www.hosting.com.tr\/blog\/wp-content\/uploads\/2021\/07\/docker-swarm-nedir.png 512w, https:\/\/www.hosting.com.tr\/blog\/wp-content\/uploads\/2021\/07\/docker-swarm-nedir-300x300.png 300w, https:\/\/www.hosting.com.tr\/blog\/wp-content\/uploads\/2021\/07\/docker-swarm-nedir-150x150.png 150w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/figure>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"docker-swarm-nedir\">Docker Swarm Nedir?<\/h2>\r\n\r\n\r\n\r\n<p>Docker Swarm, y\u00f6netici (Master) ve y\u00f6netilen (Worker) olarak ifade edilen makinelerin olu\u015fturmu\u015f oldu\u011fu a\u011fa verilen isimdir. Docker Swarm, \u00e7oklu ana bilgisayar (Multiple Host) \u00fczerinde birden \u00e7ok \u00f6rne\u011fi (Instance) harekete ge\u00e7irerek, tek bir hata noktas\u0131 (Single Point Of Failure) sorunlar\u0131n\u0131 \u00e7\u00f6z\u00fcmlemek amac\u0131yla Docker ile beraber sunulmu\u015f olan servis \u00f6zelli\u011fi ta\u015f\u0131maktad\u0131r.<\/p>\r\n\r\n\r\n\r\n<p>Docker Swarm kavram\u0131n\u0131n detaylar\u0131n\u0131 incelemeye ba\u015flamadan \u00f6nce, konuyla ilgili en \u00e7ok sorulan sorulardan biri olan \u201c<strong>Docker id nedir<\/strong>?\u201de yan\u0131t vermek yerinde olacakt\u0131r. Docker \u00e7al\u0131\u015fma sisteminde b\u00fct\u00fcn konteynerlar\u0131n bir ID\u2019si bulunmaktad\u0131r. Docker ID tan\u0131m\u0131, bunu ifade etmektedir. Docker Swarm \u00e7al\u0131\u015fma prensibi i\u00e7erisinde konteynerlar\u0131n t\u00fcm ID lerini istek g\u00f6nderildi\u011finde listelenmektedir.\u00a0<\/p>\r\n\r\n\r\n\r\n<p>Docker Swarm problem \u00e7\u00f6zme s\u00fcre\u00e7lerinde farkl\u0131 alanlarda da destek sunmaktad\u0131r. Bunlar;<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Entegre edilmi\u015f Cluster Y\u00f6netimleri (Container Orchestration)<\/li>\r\n<li>\u00d6l\u00e7ekleme problemleri (Scaling)<\/li>\r\n<li>Periyodik olarak yap\u0131lan g\u00fcncellemeler (Reduce Downtime Cost)<\/li>\r\n<li>G\u00fcvenlik i\u015flemleri (TLS Connection)<\/li>\r\n<li>Sistem y\u00fck da\u011f\u0131t\u0131mlar\u0131 (Load Balancing)<\/li>\r\n<li>Dahilide bulunan DNS sunucu konular\u0131 (Service Discovery)<\/li>\r\n<li>Konteyner\u2019lar aras\u0131ndaki durum y\u00f6netimleri ( Desired State Reconciliation)<\/li>\r\n<li>Bile\u015fenlerin grupland\u0131r\u0131lmas\u0131 (Declarative Service Model) kavramlar\u0131na \u00e7\u00f6z\u00fcmler sunmaktad\u0131r.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"docker-images-nedir-nerede-kullanilir\">Docker Images Nedir? Nerede Kullan\u0131l\u0131r?<\/h2>\r\n\r\n\r\n\r\n<p><strong>\u201cDocker \u0130mage Nedir?\u201d <\/strong>sorusuna verilecek en \u00f6zet tan\u0131m \u015f\u00f6yledir; Docker image, \u00e7al\u0131\u015ft\u0131r\u0131lacak uygulama i\u00e7erisinde ve alt yap\u0131s\u0131nda \u00e7al\u0131\u015fan, gerekli i\u015fletim sistemi ara\u00e7lar\u0131n\u0131n bulunduruldu\u011fu yap\u0131 olarak ifade edilmektedir. Docker image\u2019ler, konteyner yarat\u0131rken kullan\u0131lan talimatlar\u0131n bulunduruldu\u011fu bir \u015fablon \u00f6zelli\u011fi ta\u015f\u0131maktad\u0131r. \u201c<strong>Docker image build<\/strong>\u201d komutu ile birlikte Dockerfile dosyas\u0131 \u00fczerinden olu\u015fturulan yap\u0131 olmaktad\u0131r. Docker image, Dockerfile ile ilgili t\u00fcm i\u015flemler komutlar zinciri ile meydana getirilmektedir.\u00a0<\/p>\r\n\r\n\r\n\r\n<p>Komut a\u015famalar\u0131 ise a\u015fa\u011f\u0131daki \u015fekilde ilerlemektedir;<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>\u201cFrom\u201d<\/strong> komutu arac\u0131l\u0131\u011f\u0131yla, \u201c<strong>Base image<\/strong>\u201d dosyas\u0131 referans olarak belirlenir.<\/li>\r\n<li><strong>\u201cEnv\u201d<\/strong> komutu ile beraber, genel de\u011fi\u015fkenlerin atamalar\u0131 yap\u0131l\u0131r.<\/li>\r\n<li><strong>\u201cRun\u201d<\/strong> komutu ve konteyner ile beraber \u201c<strong>Build<\/strong>\u201d zaman\u0131nda yap\u0131lmas\u0131 gerekli i\u015flemler tan\u0131mlan\u0131r.<\/li>\r\n<li><strong>\u201cExpose\u201d<\/strong> komutu ile sanalla\u015ft\u0131r\u0131lm\u0131\u015f Docker Network i\u00e7erisinde kullan\u0131lacak olan port\u2019lar tan\u0131mlan\u0131p, son olarak <strong>\u201cCmd\u201d<\/strong> komutu ile konteyner \u00e7al\u0131\u015ft\u0131r\u0131l\u0131r ve i\u015fleme al\u0131nacak t\u00fcm komutlar\u0131n tan\u0131mlamas\u0131 yap\u0131l\u0131r.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<p>Olu\u015fturulmu\u015f olan Dockerfile dosyas\u0131 \u201c<strong>Docker image build image_isim<\/strong>\u201d komutu ile proje derlendi\u011finde (Build edildi\u011finde), t\u00fcm a\u015famalar\u0131n ger\u00e7ekle\u015fmi\u015f oldu\u011fu \u00e7\u0131kt\u0131lardan g\u00f6r\u00fcnt\u00fclenebilmektedir. T\u00fcm i\u015flemlerin ard\u0131ndan yap\u0131lan kontrollerde, yeni adland\u0131r\u0131lan image ler mevcut lokalde kullan\u0131ma haz\u0131r bulunmaktad\u0131r.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"docker-kubernetes-nedir\">Docker Kubernetes Nedir?<\/h2>\r\n\r\n\r\n\r\n<p>Kubernetes ve Docker kavramlar\u0131 s\u00f6z konusu oldu\u011funda, s\u0131k\u00e7a kar\u015f\u0131la\u015f\u0131lan sorulardan biri de \u201c<strong>Kubernetes mi yoksa Docker m\u0131<\/strong> kullan\u0131lmal\u0131 sorusudur. Asl\u0131nda her iki kavram da farkl\u0131 \u015feyleri ifade eder. Konuya \u00e7ok da fazla vak\u0131f olmayanlar\u0131n, birbirine uzak kavramlar oldu\u011funu d\u00fc\u015f\u00fcnd\u00fc\u011f\u00fc ve varsayd\u0131\u011f\u0131 Docker ve Kubernetes aras\u0131ndaki fark\u0131 ifade ederek ba\u015flamak daha do\u011fru olacakt\u0131r.<\/p>\r\n\r\n\r\n\r\n<p>\u00d6ncelikle, Kubernetes ve Docker aras\u0131nda bir se\u00e7im yap\u0131lmas\u0131 gerekmemektedir. Kubernetes ve Docker, kapsay\u0131c\u0131l\u0131 uygulamalar\u0131n derlenmesinde, teslim edilmesinde ve \u00f6l\u00e7eklendirmesi ile olduk\u00e7a iyi bir performansla \u00e7al\u0131\u015fan, birbirinden farkl\u0131 teknolojiler olmaktad\u0131r.<\/p>\r\n\r\n\r\n\r\n<p>Docker, bulut platformlar\u0131nda uygulamalar\u0131n da\u011f\u0131t\u0131m\u0131n\u0131 ya da \u015firket i\u00e7i ortamlarda ta\u015f\u0131nabilir \u00f6zellikte, kendine yetebilen kapsay\u0131c\u0131lar bi\u00e7imiyle otomatikle\u015ftirme i\u015flemini sa\u011flayan, a\u00e7\u0131k kaynak teknolojisi ve geni\u015f kapsaml\u0131 dosya bi\u00e7imi olarak ifade edilmektedir. Docker Inc. ise, a\u00e7\u0131k kaynakl\u0131 Docker teknolojisinin Microsoft gibi bulut platformu sa\u011flay\u0131c\u0131s\u0131nda, Linux ve Windows i\u015fletim sistemleri \u00fczerinde \u00e7al\u0131\u015fmas\u0131n\u0131 destekleyen \u015firketlerden biri olmaktad\u0131r.\u00a0<\/p>\r\n\r\n\r\n\r\n<p>Ortamlar\u0131 izole etme, kapsay\u0131c\u0131l\u0131k haline d\u00f6n\u00fc\u015ft\u00fcrme ihtiyac\u0131 ve fikri yeni de\u011fildir ancak Docker son zamanlarda varsay\u0131lan kapsay\u0131c\u0131l\u0131k halinde kullan\u0131lmaktad\u0131r. Docker, kapsay\u0131c\u0131l\u0131k \u00f6zelli\u011findeki uygulamalar\u0131n paketlenerek da\u011f\u0131t\u0131lmas\u0131nda standart sa\u011flamaktad\u0131r. Ancak s\u00fcre\u00e7 i\u00e7erisinde bu durum karma\u015f\u0131k bir hale d\u00f6n\u00fc\u015febilmektedir.<\/p>\r\n\r\n\r\n\r\n<p>\u00c7ok say\u0131daki kapsay\u0131c\u0131n\u0131n koordine edilmesi zaman almaktad\u0131r. Ayn\u0131 \u015fekilde kapsay\u0131c\u0131lar aras\u0131nda ileti\u015fim kurma ve \u00f6l\u00e7eklendirme i\u015flemleri ayr\u0131 bir deste\u011fe ihtiya\u00e7 duymaktad\u0131r. Bu noktada ise Kubernetes devreye girmekte ve t\u00fcm a\u015famalarda destek sunmaktad\u0131r. Kubernetes, kapsay\u0131c\u0131lar\u0131n \u00e7al\u0131\u015fmalar\u0131n\u0131 ve yerlerini denetlemeye y\u00f6nelik <strong>API<\/strong> (<strong>A<\/strong>pplication <strong>P<\/strong>rogramming <strong>I<\/strong>nterface) uygulama programlama aray\u00fcz\u00fc sunan, kaynaklar\u0131 d\u00fczenlemek i\u00e7in yarat\u0131lan yaz\u0131l\u0131m olmaktad\u0131r. Kubernetes, Docker \u00e7al\u0131\u015fma ad\u0131mlar\u0131na zemin ve destek olu\u015fturmaktad\u0131r.<\/p>\r\n\r\n\r\n","protected":false},"excerpt":{"rendered":"Linux sistemindeki en alt seviyede bulunan yaz\u0131l\u0131m\u0131 Linux Kernel\u2019e eklenmi\u015f olan Linux Containers (LXC) \u00fczerine kurulmu\u015f teknolojiye Docker&hellip;\n","protected":false},"author":23,"featured_media":7066,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"csco_singular_sidebar":"","csco_page_header_type":"","csco_appearance_grid":"","csco_page_load_nextpost":"","csco_post_video_location":[],"csco_post_video_location_hash":"","csco_post_video_url":"","csco_post_video_bg_start_time":0,"csco_post_video_bg_end_time":0,"footnotes":""},"categories":[350],"tags":[],"class_list":{"0":"post-7062","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-cloud","8":"cs-entry","9":"cs-video-wrap"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Docker Nedir, Ne \u0130\u015fe Yarar? - Hosting.com.tr<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hosting.com.tr\/blog\/docker\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Docker Nedir, Ne \u0130\u015fe Yarar? - Hosting.com.tr\" \/>\n<meta property=\"og:description\" content=\"Linux sistemindeki en alt seviyede bulunan yaz\u0131l\u0131m\u0131 Linux Kernel\u2019e eklenmi\u015f olan Linux Containers (LXC) \u00fczerine kurulmu\u015f teknolojiye Docker&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hosting.com.tr\/blog\/docker\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hosting.com.tr\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-27T15:37:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-15T04:31:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.hosting.com.tr\/blog\/wp-content\/uploads\/2021\/07\/docker-nedir-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"626\" \/>\n\t<meta property=\"og:image:height\" content=\"626\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Arif Uslu\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hostingcomtr\" \/>\n<meta name=\"twitter:site\" content=\"@hostingcomtr\" \/>\n<meta name=\"twitter:label1\" content=\"Yazan:\" \/>\n\t<meta name=\"twitter:data1\" content=\"Arif Uslu\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tahmini okuma s\u00fcresi\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 dakika\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Docker Nedir, Ne \u0130\u015fe Yarar? - Hosting.com.tr","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hosting.com.tr\/blog\/docker\/","og_locale":"tr_TR","og_type":"article","og_title":"Docker Nedir, Ne \u0130\u015fe Yarar? - Hosting.com.tr","og_description":"Linux sistemindeki en alt seviyede bulunan yaz\u0131l\u0131m\u0131 Linux Kernel\u2019e eklenmi\u015f olan Linux Containers (LXC) \u00fczerine kurulmu\u015f teknolojiye Docker&hellip;","og_url":"https:\/\/www.hosting.com.tr\/blog\/docker\/","og_site_name":"Blog","article_publisher":"https:\/\/www.facebook.com\/hosting.com.tr","article_published_time":"2021-06-27T15:37:00+00:00","article_modified_time":"2025-08-15T04:31:57+00:00","og_image":[{"width":626,"height":626,"url":"https:\/\/www.hosting.com.tr\/blog\/wp-content\/uploads\/2021\/07\/docker-nedir-1.png","type":"image\/png"}],"author":"Arif Uslu","twitter_card":"summary_large_image","twitter_creator":"@hostingcomtr","twitter_site":"@hostingcomtr","twitter_misc":{"Yazan:":"Arif Uslu","Tahmini okuma s\u00fcresi":"9 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hosting.com.tr\/blog\/docker\/#article","isPartOf":{"@id":"https:\/\/www.hosting.com.tr\/blog\/docker\/"},"author":{"name":"Arif Uslu","@id":"https:\/\/www.hosting.com.tr\/blog\/#\/schema\/person\/c1137b96fe7e854996aef0ca3667e632"},"headline":"Docker Nedir, Ne \u0130\u015fe Yarar?","datePublished":"2021-06-27T15:37:00+00:00","dateModified":"2025-08-15T04:31:57+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hosting.com.tr\/blog\/docker\/"},"wordCount":1968,"commentCount":0,"publisher":{"@id":"https:\/\/www.hosting.com.tr\/blog\/#organization"},"image":{"@id":"https:\/\/www.hosting.com.tr\/blog\/docker\/#primaryimage"},"thumbnailUrl":"https:\/\/www.hosting.com.tr\/blog\/wp-content\/uploads\/2021\/07\/docker-nedir-1.png","articleSection":["Cloud"],"inLanguage":"tr","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hosting.com.tr\/blog\/docker\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hosting.com.tr\/blog\/docker\/","url":"https:\/\/www.hosting.com.tr\/blog\/docker\/","name":"Docker Nedir, Ne \u0130\u015fe Yarar? - Hosting.com.tr","isPartOf":{"@id":"https:\/\/www.hosting.com.tr\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hosting.com.tr\/blog\/docker\/#primaryimage"},"image":{"@id":"https:\/\/www.hosting.com.tr\/blog\/docker\/#primaryimage"},"thumbnailUrl":"https:\/\/www.hosting.com.tr\/blog\/wp-content\/uploads\/2021\/07\/docker-nedir-1.png","datePublished":"2021-06-27T15:37:00+00:00","dateModified":"2025-08-15T04:31:57+00:00","breadcrumb":{"@id":"https:\/\/www.hosting.com.tr\/blog\/docker\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hosting.com.tr\/blog\/docker\/"]}]},{"@type":"ImageObject","inLanguage":"tr","@id":"https:\/\/www.hosting.com.tr\/blog\/docker\/#primaryimage","url":"https:\/\/www.hosting.com.tr\/blog\/wp-content\/uploads\/2021\/07\/docker-nedir-1.png","contentUrl":"https:\/\/www.hosting.com.tr\/blog\/wp-content\/uploads\/2021\/07\/docker-nedir-1.png","width":626,"height":626,"caption":"Docker nedir sorusunu yan\u0131tlayan g\u00f6rsel: Forkliftler ve ta\u015f\u0131ma band\u0131, uygulama paketlerini konteyner olarak sunuculara otomatik yerle\u015ftirerek da\u011f\u0131t\u0131m s\u00fcrecini g\u00f6rselle\u015ftiriyor."},{"@type":"BreadcrumbList","@id":"https:\/\/www.hosting.com.tr\/blog\/docker\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/www.hosting.com.tr\/blog\/"},{"@type":"ListItem","position":2,"name":"Cloud","item":"https:\/\/www.hosting.com.tr\/blog\/cloud\/"},{"@type":"ListItem","position":3,"name":"Docker Nedir, Ne \u0130\u015fe Yarar?"}]},{"@type":"WebSite","@id":"https:\/\/www.hosting.com.tr\/blog\/#website","url":"https:\/\/www.hosting.com.tr\/blog\/","name":"Hosting.com.tr","description":"Domain, Hosting, Startup\/Kobi, Dijital Pazarlama, Teknoloji, Wordpress ve Nas\u0131l Yap\u0131l\u0131r? kategorilerinde en g\u00fcncel yaz\u0131lar.","publisher":{"@id":"https:\/\/www.hosting.com.tr\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hosting.com.tr\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"tr"},{"@type":"Organization","@id":"https:\/\/www.hosting.com.tr\/blog\/#organization","name":"Webhosting A.\u015e","url":"https:\/\/www.hosting.com.tr\/blog\/","logo":{"@type":"ImageObject","inLanguage":"tr","@id":"https:\/\/www.hosting.com.tr\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hosting.com.tr\/blog\/wp-content\/uploads\/2025\/04\/hosting-logo.png","contentUrl":"https:\/\/www.hosting.com.tr\/blog\/wp-content\/uploads\/2025\/04\/hosting-logo.png","width":500,"height":157,"caption":"Webhosting A.\u015e"},"image":{"@id":"https:\/\/www.hosting.com.tr\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hosting.com.tr","https:\/\/x.com\/hostingcomtr","https:\/\/instagram.com\/hostingcomtr","https:\/\/www.linkedin.com\/company\/hosting-com-tr\/","https:\/\/www.youtube.com\/channel\/UCFNJq7pU_T2SEjv7UgLDtRw"]},{"@type":"Person","@id":"https:\/\/www.hosting.com.tr\/blog\/#\/schema\/person\/c1137b96fe7e854996aef0ca3667e632","name":"Arif Uslu","image":{"@type":"ImageObject","inLanguage":"tr","@id":"https:\/\/www.hosting.com.tr\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/592d8b70fee4ceeb6976d92f82be27e995c0db7644111838e2a4f691769b0d3e?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/592d8b70fee4ceeb6976d92f82be27e995c0db7644111838e2a4f691769b0d3e?s=96&r=g","caption":"Arif Uslu"},"description":"Biyoloji Lisans e\u011fitimi sonras\u0131 ila\u00e7 sekt\u00f6r\u00fcnde 10 y\u0131ldan fazla kurumsal firmalarda g\u00f6rev yaparak deneyim kazanan, ayr\u0131ca in\u015faat sekt\u00f6r\u00fcnde bireysel giri\u015fimlerde bulunan, yine altyap\u0131 in\u015faat\u0131 ve yenilenebilir enerji alan\u0131nda hizmet veren bir firmada \u00fcst d\u00fczey y\u00f6neticilik deneyimine sahip, C s\u0131n\u0131f\u0131 \u0130\u015f G\u00fcvenli\u011fi Uzman\u0131, \u00f6m\u00fcr boyu \u00f6\u011frenme ilkesiyle hobi olarak yaz\u0131l\u0131m sekt\u00f6r\u00fcnde ve siber g\u00fcvenlik alan\u0131nda kendini geli\u015ftirmeye \u00e7al\u0131\u015fan, s\u00fcrekli \u00f6\u011frenen bir k\u0131z \u00e7ocuk babas\u0131...","url":"https:\/\/www.hosting.com.tr\/blog\/author\/arif\/"}]}},"_links":{"self":[{"href":"https:\/\/www.hosting.com.tr\/blog\/wp-json\/wp\/v2\/posts\/7062","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hosting.com.tr\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hosting.com.tr\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hosting.com.tr\/blog\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hosting.com.tr\/blog\/wp-json\/wp\/v2\/comments?post=7062"}],"version-history":[{"count":2,"href":"https:\/\/www.hosting.com.tr\/blog\/wp-json\/wp\/v2\/posts\/7062\/revisions"}],"predecessor-version":[{"id":14646,"href":"https:\/\/www.hosting.com.tr\/blog\/wp-json\/wp\/v2\/posts\/7062\/revisions\/14646"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hosting.com.tr\/blog\/wp-json\/wp\/v2\/media\/7066"}],"wp:attachment":[{"href":"https:\/\/www.hosting.com.tr\/blog\/wp-json\/wp\/v2\/media?parent=7062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hosting.com.tr\/blog\/wp-json\/wp\/v2\/categories?post=7062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hosting.com.tr\/blog\/wp-json\/wp\/v2\/tags?post=7062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}