-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Docker CLI images vs image #4591
Comments
That happens because The effect is that it filters the images that have ls as part of it's names. Example: $ docker images node
REPOSITORY TAG IMAGE ID CREATED SIZE
node 18 cf58080ad70c 22 hours ago 1.09GB
node 18-alpine 59b532238836 2 weeks ago 177MB
node 14-alpine 0dac3dc27b1a 6 months ago 119MB
$ docker image ls node
REPOSITORY TAG IMAGE ID CREATED SIZE
node 18 cf58080ad70c 22 hours ago 1.09GB
node 18-alpine 59b532238836 2 weeks ago 177MB
node 14-alpine 0dac3dc27b1a 6 months ago 119MB
|
Yes, this is a bit unfortunate, and definitely has confused others. The
This UX didn't scale well when other kind of objects (volumes, networks (and nodes, services, secrets, configs for swarm)) were introduced, so we switched to using We need to look if we can make handle these situations better; perhaps we need to deprecate the positional argument on |
/cc @jalonsogo |
@thaJeztah / @rafaelucena Can I take up this issue? |
@thaJeztah I'm ready to contribute. Should we tackle this issue like you suggested? Your thoughts? |
I'm not sure if there's a good solution for this. The only possible option would be to print a warning if the first positional argument would be any of the subcommands that are currently supported by |
Description
docker image ls
(newer) anddocker images ls
(older) are different commands. This is very confusing for the user as it is easy to mistakeimages
withimage
. Docker CLI does not provide any warnings.The text was updated successfully, but these errors were encountered: