$
학습 Linux 안내서
ko
XP:0
퀘스트 149Container Admin
+220 XP

Managing Container Lifecycle (docker start, stop, restart)

이 퀘스트를 위한 인터랙티브 터미널 시작→설치 불필요 • 브라우저에서 바로 실행

개념 및 개요

Managing microservices in production requires controlling container lifecycle states when restarting services after configuration changes or stopping unneeded containers.

- docker restart : Gracefully stops and immediately starts a running container (e.g., docker restart web-api).
- docker stop : Stops an actively running container (e.g., docker stop web-api).
- docker start : Boots up an existing stopped container without creating a new instance (e.g., docker start web-api).

Let's control container lifecycle states. Restart the container service using docker restart web-api, then practice stopping it with docker stop web-api, and start it back up with docker start web-api.

명령어 구문 참조

Command / SyntaxDescription
docker restart web-apiRestart running container service
docker stop web-apiStop active container
docker start web-apiStart stopped container

검증 목표

  • ○
    Restart container with docker restart web-api
  • ○
    Stop container with docker stop web-api
  • ○
    Start container with docker start web-api

퀘스트를 완료할 준비가 되셨나요? 149?