Commit b1c15d92 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add ports command

parent bffdb9bf
......@@ -83,6 +83,13 @@ case $CMD in
todo vzctl $CMD $i
done
;;
ports) # HELPCMD: show public ports
LIST=$(get_list "$@")
for i in $LIST ; do
#info "Do $CMD on $i ..."
docmd docker port $i
done
;;
set) # HELPCMD: set param. Use with --option param
OPTIONS="$1 $2"
shift 2
......
......@@ -19,6 +19,7 @@
# TODO: add all support for all cases
# TODO: add ports command support (via rooter/iptables)
list_all()
{
a= vzlist -1 "$@" | line_filter
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment