add examples

This commit is contained in:
Chai Feng 2018-09-13 15:09:28 +08:00
parent 02f61f9e68
commit f9959ddd6f
No known key found for this signature in database
GPG Key ID: 2DCD9A24E523FFD2

View File

@ -132,9 +132,24 @@ function ufw-docker--install() {
function ufw-docker--help() {
cat <<-EOF >&2
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 <list|allow> [docker-instance-id-or-name [port[/tcp|/udp]]]
ufw-docker delete allow [docker-instance-id-or-name [port[/tcp|/udp]]]
ufw-docker <status|install|help>
Examples:
ufw-docker help
ufw-docker install
ufw-docker status
ufw-docker list httpd
ufw-docker allow httpd
ufw-docker allow httpd 80
ufw-docker allow httpd 443/tcp
ufw-docker delete allow httpd
ufw-docker delete allow httpd 443/tcp
EOF
}