# Docker 기초 (DevOps) > Container, image, Dockerfile, docker-compose, volume, network, registry(ECR/GCR/ACR), container 문제 해결 - 24 면접 질문 - Junior - [면접 질문: DevOps](https://sharpskill.dev/ko/technologies/devops/interview-questions.md) ## 1. Docker container와 가상 머신의 주요 차이점은 무엇입니까? **답변** container는 호스트 운영체제의 kernel을 공유하고 프로세스만 격리하는 반면, 가상 머신은 자체 kernel을 가진 완전한 OS를 포함합니다. 따라서 container는 훨씬 가볍고(수 MB 대 수 GB) 몇 분이 아닌 몇 초 만에 시작됩니다. 이러한 아키텍처 차이로 인해 container는 빠른 배포와 수평 확장에 이상적입니다. ## 2. Docker image란 무엇입니까? **답변** Docker image는 애플리케이션 실행에 필요한 모든 것(코드, runtime, 라이브러리, 환경 변수, 설정 파일)을 포함하는 변경 불가능한 읽기 전용 템플릿입니다. image는 쌓인 레이어로 구성되며 각 레이어는 파일 시스템 변경을 나타냅니다. 이 계층형 아키텍처를 통해 container 간에 image를 효율적으로 재사용하고 공유할 수 있습니다. ## 3. 베이스 image를 정의하는 Dockerfile 명령어는 무엇입니까? **답변** FROM 명령어는 빌드의 기반이 되는 베이스 image를 정의합니다. Dockerfile에서 (선택적 ARG 다음의) 첫 번째 명령어여야 합니다. 예를 들어 FROM node:18-alpine은 Alpine Linux 기반의 Node.js 18 image를 사용합니다. 적절한 베이스 image(크기, 보안, 호환성)를 선택하는 것은 빌드를 최적화하고 취약점을 줄이는 데 매우 중요합니다. ## 21개 추가 질문 이용 가능 - Dockerfile에서 CMD와 ENTRYPOINT의 차이점은 무엇입니까? - 호스트에서 image로 파일을 복사하는 Dockerfile 명령어는 무엇입니까? 무료로 가입하기: https://sharpskill.dev/ko/login ## 기타 DevOps 면접 주제 - [버전 관리 & Git](https://sharpskill.dev/ko/technologies/devops/interview-questions/version-control-git.md): 20개 질문, Junior - [Linux 기초](https://sharpskill.dev/ko/technologies/devops/interview-questions/linux-fundamentals.md): 22개 질문, Junior - [Shell Scripting & Bash](https://sharpskill.dev/ko/technologies/devops/interview-questions/shell-scripting-bash.md): 20개 질문, Mid-Level - [네트워킹 기초](https://sharpskill.dev/ko/technologies/devops/interview-questions/networking-basics.md): 22개 질문, Junior - [CI/CD 기초](https://sharpskill.dev/ko/technologies/devops/interview-questions/ci-cd-fundamentals.md): 18개 질문, Junior - [GitHub Actions](https://sharpskill.dev/ko/technologies/devops/interview-questions/github-actions.md): 22개 질문, Mid-Level - [GitLab CI/CD](https://sharpskill.dev/ko/technologies/devops/interview-questions/gitlab-ci.md): 22개 질문, Mid-Level - [Jenkins](https://sharpskill.dev/ko/technologies/devops/interview-questions/jenkins.md): 22개 질문, Mid-Level - [Kubernetes 기초](https://sharpskill.dev/ko/technologies/devops/interview-questions/kubernetes-basics.md): 26개 질문, Mid-Level - [Kubernetes 네트워킹](https://sharpskill.dev/ko/technologies/devops/interview-questions/kubernetes-networking.md): 24개 질문, Mid-Level - [Kubernetes 고급](https://sharpskill.dev/ko/technologies/devops/interview-questions/kubernetes-advanced.md): 24개 질문, Mid-Level - [Ingress & API Gateway](https://sharpskill.dev/ko/technologies/devops/interview-questions/ingress-api-gateway.md): 20개 질문, Mid-Level - [Terraform 기초](https://sharpskill.dev/ko/technologies/devops/interview-questions/terraform-basics.md): 22개 질문, Mid-Level - [Terraform 고급](https://sharpskill.dev/ko/technologies/devops/interview-questions/terraform-advanced.md): 22개 질문, Mid-Level - [Ansible & Configuration Management](https://sharpskill.dev/ko/technologies/devops/interview-questions/ansible-configuration.md): 20개 질문, Mid-Level - [AWS 핵심](https://sharpskill.dev/ko/technologies/devops/interview-questions/aws-essentials.md): 26개 질문, Mid-Level - [Azure 기초](https://sharpskill.dev/ko/technologies/devops/interview-questions/azure-fundamentals.md): 22개 질문, Mid-Level - [GCP 기초](https://sharpskill.dev/ko/technologies/devops/interview-questions/gcp-fundamentals.md): 22개 질문, Mid-Level - [모니터링과 Prometheus](https://sharpskill.dev/ko/technologies/devops/interview-questions/monitoring-prometheus.md): 22개 질문, Mid-Level - [Logging & ELK Stack](https://sharpskill.dev/ko/technologies/devops/interview-questions/logging-elk.md): 20개 질문, Mid-Level - [알림 및 인시던트 대응](https://sharpskill.dev/ko/technologies/devops/interview-questions/alerting-incident-response.md): 20개 질문, Mid-Level - [Cloud Identity & Secrets](https://sharpskill.dev/ko/technologies/devops/interview-questions/cloud-identity-secrets.md): 22개 질문, Mid-Level - [CI/CD 파이프라인 보안](https://sharpskill.dev/ko/technologies/devops/interview-questions/cicd-pipeline-security.md): 20개 질문, Mid-Level - [Helm & Kubernetes](https://sharpskill.dev/ko/technologies/devops/interview-questions/helm-kubernetes.md): 20개 질문, Mid-Level - [런타임 및 클러스터 보안](https://sharpskill.dev/ko/technologies/devops/interview-questions/runtime-cluster-security.md): 24개 질문, Senior - [Container Supply Chain Security](https://sharpskill.dev/ko/technologies/devops/interview-questions/container-supply-chain.md): 22개 질문, Senior - [Service Mesh & Istio](https://sharpskill.dev/ko/technologies/devops/interview-questions/service-mesh-istio.md): 24개 질문, Senior - [GitOps & ArgoCD](https://sharpskill.dev/ko/technologies/devops/interview-questions/gitops-argocd.md): 22개 질문, Senior - [Progressive Delivery](https://sharpskill.dev/ko/technologies/devops/interview-questions/progressive-delivery.md): 20개 질문, Senior - [분산 옵저버빌리티](https://sharpskill.dev/ko/technologies/devops/interview-questions/observability-distributed.md): 22개 질문, Senior - [Disaster Recovery & Backup](https://sharpskill.dev/ko/technologies/devops/interview-questions/disaster-recovery.md): 20개 질문, Senior - [성능 최적화](https://sharpskill.dev/ko/technologies/devops/interview-questions/performance-optimization.md): 22개 질문, Senior - [클라우드 비용 최적화](https://sharpskill.dev/ko/technologies/devops/interview-questions/infrastructure-cost.md): 20개 질문, Senior - [SRE 원칙](https://sharpskill.dev/ko/technologies/devops/interview-questions/sre-principles.md): 24개 질문, Senior - [Chaos Engineering](https://sharpskill.dev/ko/technologies/devops/interview-questions/chaos-engineering.md): 20개 질문, Senior - [Platform Engineering](https://sharpskill.dev/ko/technologies/devops/interview-questions/platform-engineering.md): 22개 질문, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/ko/technologies/devops/interview-questions/docker-fundamentals