在 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/
相关文章:
python - 如何使用 Elasticsearch-dsl 在 Django 中进行并行测试?
amazon-web-services - ECS 服务的两个或多个实例之间的通信
reactjs - 如何在 React 中添加对状态码 400 的验证
delphi - TEdgeBrowser 导航失败,出现错误 "File not found"
php - 使用 Laravel 的 Eloquent 将数据发送到数据库的问题
firebase - 如何将复杂的 Firestore 查询卸载到 Firebase Cloud F
angular - 在 Angular 10 中将 HTML 转换为 PDF