From e942f1fc4b3622c1e8a157616acd11bc05fab043 Mon Sep 17 00:00:00 2001 From: Chai Feng Date: Wed, 3 Oct 2018 09:16:52 +0800 Subject: [PATCH] add service help message of ufw-docker --- ufw-docker | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ufw-docker b/ufw-docker index 5b98eef..c8ae7cc 100755 --- a/ufw-docker +++ b/ufw-docker @@ -180,6 +180,10 @@ function ufw-docker--help() { Usage: ufw-docker [docker-instance-id-or-name [port[/tcp|/udp]]] ufw-docker delete allow [docker-instance-id-or-name [port[/tcp|/udp]]] + + ufw-docker service [swarm-service-id-or-name [port[/tcp|/udp]]] + ufw-docker service delete allow [swarm-service-id-or-name [port[/tcp|/udp]]] + ufw-docker Examples: @@ -196,6 +200,15 @@ function ufw-docker--help() { ufw-docker delete allow httpd ufw-docker delete allow httpd 443/tcp + + ufw-docker service list httpd + + ufw-docker service allow httpd + ufw-docker service allow httpd 80 + ufw-docker service allow httpd 443/tcp + + ufw-docker service delete allow httpd + ufw-docker service delete allow httpd 443/tcp EOF }