-
Notifications
You must be signed in to change notification settings - Fork 950
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: auto generate pouch cli/api docs via code
Signed-off-by: pouchrobot <pouch-dev@list.alibaba-inc.com>
- Loading branch information
1 parent
772c9bf
commit 9b3b371
Showing
3 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
## pouch port | ||
|
||
List port mappings or a specific mapping for the container | ||
|
||
### Synopsis | ||
|
||
Return port binding information on Pouch container | ||
|
||
``` | ||
pouch port CONTAINER [PRIVATE_PORT[/PROTO]] | ||
``` | ||
|
||
### Examples | ||
|
||
``` | ||
$ pouch run -d -p 6379:6379 -p 6380:6380/udp redis:latest | ||
179eba2c29fb27a000bcda75cb2be271d1833ab140d1133799d0d4d865abc44e | ||
$ pouch port 179 | ||
6379/tcp -> 0.0.0.0:6379 | ||
6380/udp -> 0.0.0.0:6380 | ||
$ pouch port 179 6379 | ||
0.0.0.0:6379 | ||
$ pouch port 179 6380/udp | ||
0.0.0.0:6380 | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for port | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
-D, --debug Switch client log level to DEBUG mode | ||
-H, --host string Specify connecting address of Pouch CLI (default "unix:///var/run/pouchd.sock") | ||
--tlscacert string Specify CA file of TLS | ||
--tlscert string Specify cert file of TLS | ||
--tlskey string Specify key file of TLS | ||
--tlsverify Use TLS and verify remote | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [pouch](pouch.md) - An efficient container engine | ||
|