docker_iptables:帮助手动管理 Docker 容器的 iptables 端口映射的实用程序

时间:2021-06-11 06:46:35
【文件属性】:
文件名称:docker_iptables:帮助手动管理 Docker 容器的 iptables 端口映射的实用程序
文件大小:9KB
文件格式:ZIP
更新时间:2021-06-11 06:46:35
Python docker_iptables 该脚本旨在手动处理 Docker iptables 端口转发,适用于您无法让 Docker 自行管理 iptables 的情况,因为它与系统上也尝试管理 iptables 的其他事物发生冲突。 用法 假设/先决条件: systemd是您的 init,容器将由 systemd .service 单元管理。 iptables 规则的规范来源是/etc/iptables.d/和/etc/ip6tables.d/ 存在名为iptables.service的服务,当声明或重新启动时,将刷新所有正在运行的 iptables 规则并从 .d 目录重新加载规则。 使用这个脚本: --iptables=false守护进程应配置为以--iptables=false开头。 使用以下规则创建一个/etc/iptables.d/10_docker文件。 这些是通常在 do
【文件预览】:
docker_iptables-master
----setup.py(186B)
----.gitignore(223B)
----LICENSE.md(1KB)
----docker_iptables.py(11KB)
----README.md(3KB)
----circle.yml(147B)
----tests()
--------__init__.py(0B)
--------test_docker_iptables.py(8KB)

网友评论