TR Sign in

What Is Docker? An Introduction to Container Technology

Docker is a platform that lets you run applications in isolated environments called containers. Learn the fundamentals of container technology and how to use it.

Semih AKBAŞ February 14, 2026
2 min read 281 0
What Is Docker? An Introduction to Container Technology

What Is Docker?

Docker is an open-source platform that lets you package and run applications in lightweight, portable and isolated environments called containers. Released in 2013, Docker has fundamentally changed software development and deployment processes.

Unlike virtual machines, containers share the operating system kernel, which makes them much lighter and faster.

Docker vs Virtual Machines

FeatureDocker ContainerVirtual Machine
Startup timeSecondsMinutes
SizeMB rangeGB range
Operating systemShares the host kernelRuns its own OS
PerformanceNear-nativeHas hypervisor overhead
IsolationProcess levelFull hardware level
Resource usageVery lowHigh

Core Docker Concepts

  • Image: The executable template of an application (read-only)
  • Container: A running instance created from an image
  • Dockerfile: The instruction file used to build an image
  • Docker Hub: The registry where images are shared
  • Volume: Persistent data storage
  • Network: Communication between containers

Dockerfile Example

# Node.js uygulaması için Dockerfile
FROM node:20-alpine

WORKDIR /app

# Bağımlılıkları önce kopyala (cache optimizasyonu)
COPY package*.json ./
RUN npm ci --only=production

# Uygulama kodunu kopyala
COPY . .

# Port tanımla
EXPOSE 3000

# Uygulamayı başlat
CMD ["node", "server.js"]

Docker Compose

It lets you manage multiple containers with a single command:

# docker-compose.yml
version: "3.8"
services:
  web:
    build: .
    ports:
      - "3000:3000"
    depends_on:
      - db
    environment:
      - DB_HOST=db

  db:
    image: mysql:8
    volumes:
      - mysql_data:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=secret
      - MYSQL_DATABASE=myapp

volumes:
  mysql_data:

Essential Docker Commands

# Image oluştur
docker build -t myapp:1.0 .

# Konteyner çalıştır
docker run -d -p 3000:3000 --name web myapp:1.0

# Çalışan konteynerleri listele
docker ps

# Konteyner loglarını gör
docker logs -f web

# Konteynere bağlan
docker exec -it web sh

# Her şeyi durdur ve temizle
docker compose down -v

Why Does Docker Matter?

  1. The "it works on my machine" problem goes away: The same environment everywhere
  2. Fast deployment: Go to production in seconds
  3. Microservices architecture: Each service in its own container
  4. CI/CD integration: Automated test and deploy pipelines
  5. Resource efficiency: Dozens of containers on a single server

💡 Next step: After learning Docker, you can step into the world of container orchestration with Kubernetes.

Share this article
Semih AKBAŞ
Author Semih AKBAŞ

CTO and software architect with 15+ years of hands-on experience in e-commerce, integration, infrastructure and cybersecurity.

Comments 0

No comments yet. Be the first to share your thoughts.

You may also like All articles