-
Notifications
You must be signed in to change notification settings - Fork 15
map
Dilshat edited this page Oct 30, 2018
·
9 revisions
Handy shortcut helper to subutai proxy
command. Supports most of parameters of subutai proxy
command
usage: subutai map <command> [<args> ...]
Options:
map add --protocol=PROTOCOL --external port=EXTERNAL PORT --internal server=INTERNAL SERVER [<flags>]
Add port mapping
map rm --protocol=PROTOCOL --external port=EXTERNAL PORT [<flags>]
Remove port mapping
map list [<flags>]
List mapped ports
Examples:
map container's 172.16.31.3 port 3306 to port 3306 on RH
subutai map add -p tcp -i 172.16.31.3:3306 -e 3306
add 172.16.31.4:3306 to the same group
subutai map add -p tcp -i 172.16.31.4:3306 -e 3306
remove container 172.16.31.3 from mapping
subutai map rm -p tcp -i 172.16.31.3:3306 -e 3306
map 172.16.25.12:80 to RH's 8080 with domain name example.com
subutai map add -p http -i 172.16.25.12:80 -e 8080 -n example.com
map container 172.16.25.13:80 to existing example.com domain
subutai map add -p http -i 172.16.25.13:80 -e 8080 -n example.com
list existing mappings
subutai map ls
tcp 3306 172.16.31.4:3306
http 8080 172.16.25.12:80 example.com
http 8080 172.16.25.13:80 example.com