-
Notifications
You must be signed in to change notification settings - Fork 949
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
68fdb79
commit 61eb7bb
Showing
3 changed files
with
211 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,46 @@ | ||
## pouch cp | ||
|
||
Copy files/folders between a container and the local filesystem | ||
|
||
### Synopsis | ||
|
||
Copy files/folders between a container and the local filesystem | ||
|
||
Use '-' as the source to read a tar archive from stdin | ||
and extract it to a directory destination in a container. | ||
Use '-' as the destination to stream a tar archive of a | ||
container source to stdout. | ||
|
||
``` | ||
pouch cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|- | ||
pouch cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATH | ||
``` | ||
|
||
### Examples | ||
|
||
``` | ||
$ pouch cp 8assd1234:/root/foo /home | ||
$ pouch cp /home/bar 712yasbc:/root | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for cp | ||
``` | ||
|
||
### 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 | ||
|