centos7 docker info出现 WARNING:bridge-nf-call-ip6tables is disabled

本文详细介绍了如何解决Linux系统中出现的WARNING:bridge-nf-call-ip6tables和WARNING:IPv4forwardingisdisabled警告。通过编辑/etc/sysctl.conf文件并重启网卡,启用桥接和IPv4转发功能。

出现  WARNING: bridge-nf-call-ip6tables is disabled

编辑/etc/sysctl.conf

net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-arptables = 1

然后重启网卡

出现 WARNING: IPv4 forwarding is disabled

编辑/etc/sysctl.conf

net.ipv4.ip_forward=1

然后重启网卡

[root@localhost ~]# docker info Containers: 2 Running: 1 Paused: 0 Stopped: 1 Images: 2 Server Version: 1.13.1 Storage Driver: overlay2 Backing Filesystem: xfs Supports d_type: true Native Overlay Diff: true Logging Driver: journald Cgroup Driver: systemd Plugins: Volume: local Network: bridge host macvlan null overlay Swarm: inactive Runtimes: docker-runc runc Default Runtime: docker-runc Init Binary: /usr/libexec/docker/docker-init-current containerd version: (expected: aa8187dbd3b7ad67d8e5e3a15115d3eef43a7ed1) runc version: 283e28b7d8a5ba31dd51213ce9126f3e0d529cfb (expected: 9df8b306d01f59d3a8029be411de015b7304dd8f) init version: fec3683b971d9c3ef73f284f176672c44b448662 (expected: 949e6facb77383876aeff8a6944dde66b3089574) Security Options: seccomp WARNING: You're not using the default seccomp profile Profile: /etc/docker/seccomp.json selinux Kernel Version: 3.10.0-1160.119.1.el7.x86_64 Operating System: CentOS Linux 7 (Core) OSType: linux Architecture: x86_64 Number of Docker Hooks: 3 CPUs: 2 Total Memory: 972.2 MiB Name: localhost ID: 7YGZ:FBYW:7XSJ:6DWF:LQZY:SU75:Y5VV:SIL6:G6OV:ITYK:OISP:RV6J Docker Root Dir: /var/lib/docker Debug Mode (client): false Debug Mode (server): false Registry: https://index.docker.io/v1/ WARNING: bridge-nf-call-iptables is disabled WARNING: bridge-nf-call-ip6tables is disabled Experimental: false Insecure Registries: 127.0.0.0/8 Registry Mirrors: https://dockerproxy.com https://docker.chenby.cn https://dockerpull.com https://dockerhub.jobcher.com https://docker.mirrors.ustc.edu.cn https://hub.uuuadc.top https://mirror.baidubce.com https://mirror.ccs.tencentyun.com https://docker.m.daocloud.io https://docker.nju.edu.cn http://hub-mirror.c.163.com https://dockerhub.azk8s.cn https://registry.cn-hangzhou.aliyuncs.com Live Restore Enabled: false Registries: docker.io (secure)
最新发布
11-12
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值