cli icon indicating copy to clipboard operation
cli copied to clipboard

docker images is a great alias for docker image ls, while `docker volumes` does not exist

Open rafaelucena opened this issue 3 years ago • 3 comments

Description

Using docker for a few years now, every few months or years I like to do a cleanup on the volumes and images and start over, and it keeps bugging me that for showing the images we can run docker images but for volumes we can't use docker volumes. I'm aiming to fix that.

When wanting to list the current volumes:

docker volumes

Expected behavior

The output should be the same as:

docker volume ls

docker version

(not strictly necessary?)

docker info

(not strictly necessary?)

Additional Info

This is my first issue, please be kind (sorry)

rafaelucena avatar Oct 12 '23 22:10 rafaelucena

i think docker images is considered a legacy command. it's there for backwards compatibility and we generally discourage it. see this great comment! https://github.com/docker/cli/issues/887#issuecomment-366654909

nicks avatar Oct 13 '23 13:10 nicks

Yeah, @thaJeztah mentioned it on the PR and he explained it in another issue from another user also. It's a shame really, my favourite command is expect to depart :(

Well, it is what it is. Oh well, I'll probably just handle some bash aliases locally for that :)

RIP.

rafaelucena avatar Oct 13 '23 21:10 rafaelucena

Yes, closing this one, because this was by design.

thaJeztah avatar May 18 '26 12:05 thaJeztah