$
학습 Linux 안내서
ko
XP:0
퀘스트 150DevOps Hero
+500 XP

Boss Challenge 17: Containerized Hotfix & Git Deployment

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

개념 및 개요

PRODUCTION OUTAGE: The production web service in container web-api is failing health checks because server.js was modified with the wrong port.

1. Check the failure logs using docker logs web-api.
2. Inspect the repository changes using git status and git diff.
3. Stage the fix by running git add server.js.
4. Commit the fix with git commit -m "Fix port binding for production".
5. Restart the containerized service using docker restart web-api to apply the hotfix.

Check container logs, stage and commit the fix with git add and git commit, then restart the container with docker restart web-api.

명령어 구문 참조

Command / SyntaxDescription
docker logs web-apiInspect container failure logs
git add server.js && git commit -m "Fix port"Stage and commit hotfix
docker restart web-apiRestart containerized service

검증 목표

  • ○
    Commit the fix using git commit
  • ○
    Restart container with docker restart web-api

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