瀏覽代碼

add expose and publish filter in swagger.yml and CLI docs for docker/master

Signed-off-by: allencloud <allen.sun@daocloud.io>
allencloud 8 年之前
父節點
當前提交
44bd658913
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 2 0
      api/swagger.yaml
  2. 2 0
      docs/reference/commandline/ps.md

+ 2 - 0
api/swagger.yaml

@@ -2488,6 +2488,7 @@ paths:
 
             - `ancestor`=(`<image-name>[:<tag>]`, `<image id>`, or `<image@digest>`)
             - `before`=(`<container id>` or `<container name>`)
+            - `expose`=(`<port>[/<proto>]`|`<startport-endport>/[<proto>]`)
             - `exited=<int>` containers with exit code of `<int>`
             - `health`=(`starting`|`healthy`|`unhealthy`|`none`)
             - `id=<ID>` a container's ID
@@ -2496,6 +2497,7 @@ paths:
             - `label=key` or `label="key=value"` of a container label
             - `name=<name>` a container's name
             - `network`=(`<network id>` or `<network name>`)
+            - `publish`=(`<port>[/<proto>]`|`<startport-endport>/[<proto>]`)
             - `since`=(`<container id>` or `<container name>`)
             - `status=`(`created`|`restarting`|`running`|`removing`|`paused`|`exited`|`dead`)
             - `volume`=(`<volume name>` or `<mount point destination>`)

+ 2 - 0
docs/reference/commandline/ps.md

@@ -26,6 +26,7 @@ Options:
                         - ancestor=(<image-name>[:tag]|<image-id>|<image@digest>)
                           containers created from an image or a descendant.
                         - before=(<container-name>|<container-id>)
+                        - expose=(<port>[/<proto>]|<startport-endport>/[<proto>])
                         - exited=<int> an exit code of <int>
                         - health=(starting|healthy|unhealthy|none)
                         - id=<ID> a container's ID
@@ -34,6 +35,7 @@ Options:
                         - label=<key> or label=<key>=<value>
                         - name=<string> a container's name
                         - network=(<network-id>|<network-name>)
+                        - publish=(<port>[/<proto>]|<startport-endport>/[<proto>])
                         - since=(<container-name>|<container-id>)
                         - status=(created|restarting|removing|running|paused|exited) 
                         - volume=(<volume name>|<mount point destination>)