mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add --format support to images command
- rename `api/client/ps` to `api/client/formatter` - add a a image formatter Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
parent
67620bc028
commit
34a3c3cacf
17 changed files with 1126 additions and 479 deletions
|
|
@ -103,6 +103,12 @@ Docker's client uses this property. If this property is not set, the client
|
|||
falls back to the default table format. For a list of supported formatting
|
||||
directives, see the [**Formatting** section in the `docker ps` documentation](ps.md)
|
||||
|
||||
The property `imagesFormat` specifies the default format for `docker images` output.
|
||||
When the `--format` flag is not provided with the `docker images` command,
|
||||
Docker's client uses this property. If this property is not set, the client
|
||||
falls back to the default table format. For a list of supported formatting
|
||||
directives, see the [**Formatting** section in the `docker images` documentation](images.md)
|
||||
|
||||
Following is a sample `config.json` file:
|
||||
|
||||
{
|
||||
|
|
@ -110,6 +116,7 @@ Following is a sample `config.json` file:
|
|||
"MyHeader": "MyValue"
|
||||
},
|
||||
"psFormat": "table {{.ID}}\\t{{.Image}}\\t{{.Command}}\\t{{.Labels}}"
|
||||
"imagesFormat": "table {{.ID}}\\t{{.Repository}}\\t{{.Tag}}\\t{{.CreatedAt}}"
|
||||
}
|
||||
|
||||
### Notary
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue