-
도커 "WARNING: bridge-nf-call-iptables is disabled" 오류?Back end/Server 2024. 12. 5. 12:00
park@park-VirtualBox:~$ systemctl status docker ● docker.service - Docker Application Container Engine Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2024-12-02 15:28:10 KST; 2 days ago TriggeredBy: ● docker.socket Docs: https://docs.docker.com Main PID: 849 (dockerd) Tasks: 11 Memory: 15.9M CPU: 2.264s 한글로 설명 CGroup: /system.slice/docker.service └─849 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock 12월 02 15:28:09 park-VirtualBox dockerd[849]: time="2024-12-02T15:28:09.809502589+09:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be u> 12월 02 15:28:10 park-VirtualBox dockerd[849]: time="2024-12-02T15:28:10.243402431+09:00" level=warning msg="error locating sandbox id b554f0ccd6b1dd26d86780c87a9be116d0da8b00694ab4ec9802d47955378ca6: sand> 12월 02 15:28:10 park-VirtualBox dockerd[849]: time="2024-12-02T15:28:10.244194923+09:00" level=warning msg="error locating sandbox id 683c78aa1df921ab855a3bb6e35360c5aa85bd75168486d8d9229513a1ad2dd0: sand> 12월 02 15:28:10 park-VirtualBox dockerd[849]: time="2024-12-02T15:28:10.244605965+09:00" level=info msg="Loading containers: done." 12월 02 15:28:10 park-VirtualBox dockerd[849]: time="2024-12-02T15:28:10.366918272+09:00" level=warning msg="WARNING: bridge-nf-call-iptables is disabled" 12월 02 15:28:10 park-VirtualBox dockerd[849]: time="2024-12-02T15:28:10.366977686+09:00" level=warning msg="WARNING: bridge-nf-call-ip6tables is disabled" 12월 02 15:28:10 park-VirtualBox dockerd[849]: time="2024-12-02T15:28:10.367020828+09:00" level=info msg="Docker daemon" commit=41ca978 containerd-snapshotter=false storage-driver=overlay2 version=27.3.1 12월 02 15:28:10 park-VirtualBox dockerd[849]: time="2024-12-02T15:28:10.369738420+09:00" level=info msg="Daemon has completed initialization" 12월 02 15:28:10 park-VirtualBox systemd[1]: Started Docker Application Container Engine. 12월 02 15:28:10 park-VirtualBox dockerd[849]: time="2024-12-02T15:28:10.538303604+09:00" level=info msg="API listen on /run/docker.sock" : systemctl status docker를 해보니.. bridge 에러가 뜬다. 해결은 어떻게 할까?
* 해결 방법
sysctl net.bridge.bridge-nf-call-iptables
sysctl net.bridge.bridge-nf-call-ip6tables: 우선 이 명령어를 쳤을때 이 명령어들이 0을 반환하면 비활성화된 상태입니다.
sudo vi /etc/sysctl.conf
# 내용 적어주기
net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-ip6tables = 1sudo sysctl -p : 명령어로 구동 확인
root@park-VirtualBox:~# sudo sysctl -p sysctl: /proc/sys/net/bridge/bridge-nf-call-iptables 상태를 확인할 수 없습니다: 그런 파일이나 디렉터리가 없습니다 sysctl: /proc/sys/net/bridge/bridge-nf-call-ip6tables 상태를 확인할 수 없습니다: 그런 파일이나 디렉터리가 없습니다 : 근데. 상태를 확인할수 없습니다.. 블라블라 뜸
sudo modprobe br_netfilter : 먼저 br_netfilter 모듈을 로드합니다.
lsmod | grep br_netfilter
br_netfilter 28672 0: 이 명령어를 쳤을때 해당 값을 받으면 OK
sudo vi /etc/modules
#내용 추가
br_netfilter: 모듈 부팅시 자동으로 실행되게 할수 있음
: 명령어 다시 쳐보니 적용됨.
sudo systemctl restart docker : 도커 재실행 해서 status로 상태 확인
완료.
'Back end > Server' 카테고리의 다른 글
쿠버네티스 오류 root@park-VirtualBox:~# kubectl versionClient Version: v1.30.6Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3The connection to the server localhost:8080 was refused - did you specify the right host or port? (0) 2024.12.23 JEUS WAS 설치 및 운영(수정 및 작성중!) (1) 2024.12.12 쿠버네티스 설치 시 오류건 해결(Kubernetes Setup) (0) 2024.12.02 쿠버네티스란? (1) 2024.12.02 docker 세팅 (0) 2024.12.02