Skip to content

feature request: composePsFormat in config (analog of psFormat) #11014

Description

@id-ilych

Description

For the docker ps there is a possibility to define a default format in ~/.docker/config.json
For example: "psFormat": "table {{ .Names }}\t{{ .Image }}\t{{ .Status }}\t{{ .Ports }}"

It would be nice to have a similar option for docker compose ps.

In the docker/cli it is implemented as

funcrunPs(dockerCli command.Cli, options*psOptions) error {
// ...iflen(options.format) ==0 {
// load custom psFormat from CLI config (if any)options.format=dockerCli.ConfigFile().PsFormat
}
// ...
}

I could try implementing it myself but I am not so familiar with the codebase so I am not sure how to use the same approach because this config file is defined in the other project which should probably be agnostic of compose-specific configurations...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions