Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ps --columns option #6391

Open
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
1 participant
@koooge
Copy link

koooge commented Dec 1, 2018

Hi there. This is a proposal of kind/feature docker-compose ps --columns <value>. (It's like docker ps --format <value>. )
But docker-compose is written in python, so I feel ps --format with go template is not for docker-compose .

Currently, if you need just container names, you have to use both docker and docker-compose .

$ docker ps --filter "id=$(docker-compose ps -q redis)" --format "{{.Names}}"

this proposal makes you only using docker-compose

$ docker-compose --columns "Name" redis

refs: #2369

Add ps --columns option
Signed-off-by: koooge <koooooge@gmail.com>

@koooge koooge changed the title [WIP]Add ps --columns option [RFC&WIP]Add ps --columns option Dec 1, 2018

@koooge koooge changed the title [RFC&WIP]Add ps --columns option Add ps --columns option Dec 13, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.