Ubuntu에서 Docker로 서비스시 주의할점

By | 2020년 10월 19일

얼마전 서버에서 돌고 있는 서비스가 이유(?)도 없이 죽어 있었다.

다행이 서비스 되고 있지 않은 서비스 이여서 큰 이슈는 없었지만, 물론 서비스 되어 있었다면 모니터링을 하고 있었겠지만..

여튼 로그를 뒤져보니….

Oct 18 06:32:34 ip-10-0-10-68 systemd[1]: Starting Daily apt upgrade and clean activities...
Oct 18 06:32:38 ip-10-0-10-68 systemd[1]: Stopping Docker Application Container Engine...
Oct 18 06:32:38 ip-10-0-10-68 dockerd[2151]: time="2020-10-18T06:32:38.543428431+09:00" level=info msg="Processing signal 'terminated'"

헉… 시스템에 돌고 있는 기본 업데이트 서비스가 도커를 업데이트 할려고 서비스를 내려 버렸…

앞으로 저런일이 생기지 않도록… 업데이트 관련 서비스를 내렸다.

sudo systemctl stop apt-daily.timer
sudo systemctl disable apt-daily.timer
sudo systemctl disable apt-daily.service

sudo systemctl stop apt-daily-upgrade.timer
sudo systemctl disable apt-daily-upgrade.timer
sudo systemctl disable apt-daily-upgrade.service

sudo systemctl daemon-reload

우분투로 서비스를 운영할때에는 systemctl list-timers 명령으로 잘 체크 해야 겠음.

2 thoughts on “Ubuntu에서 Docker로 서비스시 주의할점

Comments are closed.