在 WSL2 中运行 docker info
(在 ArchWSL 和 Ubuntu 20.04 上)我收到以下警告:
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
这两个属性似乎都在 sysctl
级别启用:
$ sysctl net.bridge.bridge-nf-call-iptables
net.bridge.bridge-nf-call-iptables = 1
$ sysctl net.bridge.bridge-nf-call-ip6tables
net.bridge.bridge-nf-call-ip6tables = 1
从消息中不清楚这是否会阻止 Docker 的任何正常运行,或者是否需要用户采取任何操作。
有谁知道是否可以采取任何措施来消除此警告?
使用 Docker 版本 19.03.12,构建 48a66213fe。
最佳答案
请尝试以下命令
sudo echo "net.bridge.bridge-nf-call-iptables = 1" >> /etc/sysctl.conf
sudo echo "net.bridge.bridge-nf-call-ip6tables = 1" >> /etc/sysctl.conf
sudo modprobe br_netfilter
sudo sysctl -p /etc/sysctl.conf
关于docker - WSL2 上禁用了 bridge-nf-call-iptables 和 bridge-nf-call-ip6tables,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63226322/
相关文章:
delphi - TEdgeBrowser 导航失败,出现错误 "File not found"
reactjs - 如何在 React 中添加对状态码 400 的验证
amazon-web-services - ECS 服务的两个或多个实例之间的通信
angular - 在 Angular 10 中将 HTML 转换为 PDF
python-3.x - 无论如何,您是否可以检查 Azure CLI 在后台执行哪些 API 调用
google-api - Google Calendar API 在单个批处理请求中返回 403 R
firebase - 如何将复杂的 Firestore 查询卸载到 Firebase Cloud F