add service help message of ufw-docker

This commit is contained in:
Chai Feng 2018-10-03 09:16:52 +08:00
parent 1c87b364f4
commit e942f1fc4b
No known key found for this signature in database
GPG Key ID: 2DCD9A24E523FFD2

View File

@ -180,6 +180,10 @@ function ufw-docker--help() {
Usage:
ufw-docker <list|allow> [docker-instance-id-or-name [port[/tcp|/udp]]]
ufw-docker delete allow [docker-instance-id-or-name [port[/tcp|/udp]]]
ufw-docker service <list|allow> [swarm-service-id-or-name [port[/tcp|/udp]]]
ufw-docker service delete allow [swarm-service-id-or-name [port[/tcp|/udp]]]
ufw-docker <status|install|help>
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
}