From 4833b190ff74e1300192bc284159fa6981c3506f Mon Sep 17 00:00:00 2001 From: Chai Feng Date: Sat, 25 Sep 2021 15:26:02 +0800 Subject: [PATCH] Update readme --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index c24151b..75146dc 100644 --- a/README.md +++ b/README.md @@ -259,6 +259,10 @@ Expose the `443` port of the container `httpd` and the protocol is `tcp` ufw-docker allow httpd 443/tcp +Expose the `443` port of the container `httpd` and the protocol is `tcp` and the network is `foobar-external-network` when the container `httpd` is attached to multiple networks + + ufw-docker allow httpd 443/tcp foobar-external-network + Expose all published ports of the container `httpd` ufw-docker allow httpd @@ -563,6 +567,10 @@ UFW 是 Ubuntu 上很流行的一个 iptables 前端,可以非常方便的管 ufw-docker allow httpd 443/tcp +如果容器 `httpd` 绑定到多个网络上,暴露其 `443` 端口,协议为 `tcp`,网络为 `foobar-external-network` + + ufw-docker allow httpd 443/tcp foobar-external-network + 把容器 `httpd` 的所有映射端口都暴露出来 ufw-docker allow httpd