궁금해서 찾아보았다.
"Warning: The unit file, source configuration file or drop-ins of containerd.service changed on disk. Run 'systemctl daemon-reload' to reload units."
⚠️ 의미
• containerd.service의 systemd 유닛 파일이나 구성 파일이 변경되었음.
• 하지만 systemd가 이를 인식하지 못하고 있음.
• 따라서 systemd의 설정을 다시 로드해야 함.
🔧 해결 방법
변경된 systemd 설정을 반영하려면 아래 명령어를 실행하면 됨
sudo systemctl daemon-reload
이후 서비스를 다시 시작할 수도 있음
sudo systemctl restart containerd
🔍 왜 이런 일이 발생하는가?
이 경고는 보통 다음과 같은 경우에 발생함:
1. 유닛 파일 수정 (/usr/lib/systemd/system/containerd.service)
• ExecStart, Environment 등의 설정을 변경했을 때.
• 예: ExecStart=/usr/bin/containerd 옵션 수정.
2. 환경 변수 또는 설정 파일 변경
• /etc/containerd/config.toml 또는 /etc/default/containerd를 수정했을 때.
• 하지만 systemd가 이를 감지하지 못하고 있음.
3. Drop-in 파일 변경 (/etc/systemd/system/containerd.service.d/)
• 추가적인 설정을 위해 containerd.service.d/override.conf 같은 Drop-in 유닛 파일을 사용했을 때.
4. 패키지 업데이트
• containerd 패키지가 업데이트되면서 새로운 systemd 설정이 적용되지 않은 경우.
'자질구레' 카테고리의 다른 글
[kubernetes] NetworkPolicy 테스트 (0) | 2025.02.03 |
---|---|
[kubernetes] 서비스(Service)가 필요한 이유 (0) | 2025.02.02 |
맥북 시간 이상할 때 (1) | 2024.12.15 |
시간복잡도, Big O, 점근적 표기법 (0) | 2024.12.12 |
vscode code 명령어 사라짐 해결 (mac) (0) | 2024.11.09 |