DevOps

Docker Fundamentals

Containers, images, Dockerfile, docker-compose, volumes, networks, registries (ECR/GCR/ACR), troubleshooting containers

24 คำถามสัมภาษณ์·
Junior
1

What is the main difference between a Docker container and a virtual machine?

คำตอบ

A container shares the host operating system kernel and only isolates processes, while a virtual machine includes a complete OS with its own kernel. Containers are therefore much lighter (a few MB vs several GB) and start in seconds instead of minutes. This architectural difference makes containers ideal for rapid deployments and horizontal scalability.

2

What is a Docker image?

คำตอบ

A Docker image is an immutable, read-only template that contains everything needed to run an application: code, runtime, libraries, environment variables, and configuration files. Images are composed of stacked layers, each layer representing a filesystem modification. This layered architecture enables efficient reuse and sharing of images between containers.

3

Which Dockerfile instruction defines the base image?

คำตอบ

The FROM instruction defines the base image to build from. It must be the first instruction (after optional ARG) in a Dockerfile. For example, FROM node:18-alpine uses the Node.js 18 image based on Alpine Linux. Choosing an appropriate base image (size, security, compatibility) is crucial for optimizing builds and reducing vulnerabilities.

4

What is the difference between CMD and ENTRYPOINT in a Dockerfile?

5

Which Dockerfile instruction copies files from the host to the image?

+21 คำถามสัมภาษณ์

หัวข้อสัมภาษณ์ DevOps อื่นๆ

Version Control & Git

Junior
20 คำถาม

Linux Fundamentals

Junior
22 คำถาม

Shell Scripting & Bash

Mid-Level
20 คำถาม

Networking Basics

Junior
22 คำถาม

CI/CD Fundamentals

Junior
18 คำถาม

GitHub Actions

Mid-Level
22 คำถาม

GitLab CI/CD

Mid-Level
22 คำถาม

Jenkins

Mid-Level
22 คำถาม

Kubernetes Basics

Mid-Level
26 คำถาม

Kubernetes Networking

Mid-Level
24 คำถาม

Kubernetes Advanced

Mid-Level
24 คำถาม

Ingress & API Gateway

Mid-Level
20 คำถาม

Terraform Basics

Mid-Level
22 คำถาม

Terraform Advanced

Mid-Level
22 คำถาม

Ansible & Configuration Management

Mid-Level
20 คำถาม

AWS Essentials

Mid-Level
26 คำถาม

Azure Fundamentals

Mid-Level
22 คำถาม

GCP Fundamentals

Mid-Level
22 คำถาม

Monitoring & Prometheus

Mid-Level
22 คำถาม

Logging & ELK Stack

Mid-Level
20 คำถาม

Alerting & Incident Response

Mid-Level
20 คำถาม

Cloud Identity & Secrets

Mid-Level
22 คำถาม

CI/CD Pipeline Security

Mid-Level
20 คำถาม

Helm & Kubernetes

Mid-Level
20 คำถาม

Runtime & Cluster Security

Senior
24 คำถาม

Container Supply Chain Security

Senior
22 คำถาม

Service Mesh & Istio

Senior
24 คำถาม

GitOps & ArgoCD

Senior
22 คำถาม

Progressive Delivery

Senior
20 คำถาม

Distributed Observability

Senior
22 คำถาม

Disaster Recovery & Backup

Senior
20 คำถาม

Performance Optimization

Senior
22 คำถาม

Cloud Cost Optimization

Senior
20 คำถาม

SRE Principles

Senior
24 คำถาม

Chaos Engineering

Senior
20 คำถาม

Platform Engineering

Senior
22 คำถาม

เชี่ยวชาญ DevOps สำหรับการสัมภาษณ์ครั้งถัดไป

เข้าถึงคำถามทั้งหมด flashcards แบบทดสอบเทคนิค แบบฝึกหัด code review และตัวจำลองสัมภาษณ์

เริ่มใช้ฟรี