cli icon indicating copy to clipboard operation
cli copied to clipboard

Feature request: Docker search cli doesn't adhere to docker [object] [verb] style

Open franklouwers opened this issue 7 years ago • 2 comments

Description

The "new" docker cli commands all adhere to the docker [object] [verb] command. So we new prefer docker container run over docker run, docker image rm over docker rmi etc.

However, docker search still uses the old docker [verb] command, and it seems there's no modern variant available.

As all other commands that interact with a registry (be it private or the hub) are verbs on the image object, I would have expected docker image search to work. Yet it doesn't. Is there a particular reason for this?

Output of docker version:

frank@box:~$ docker version
Client:
 Version:           18.06.1-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        e68fc7a
 Built:             Tue Aug 21 17:24:58 2018
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.06.1-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.3
  Git commit:       e68fc7a
  Built:            Tue Aug 21 17:23:24 2018
  OS/Arch:          linux/amd64
  Experimental:     false

(but happens in 18.09.2 as well)

franklouwers avatar Feb 18 '19 08:02 franklouwers

So then should docker [image] rmi work then? I still have to use docker rmi [image]

Ny docker version output:

Client:
 Version:           18.09.2
 API version:       1.39
 Go version:        go1.10.6
 Git commit:        6247962
 Built:             Sun Feb 10 04:13:47 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          18.09.2
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.10.6
  Git commit:       6247962
  Built:            Sun Feb 10 03:42:13 2019
  OS/Arch:          linux/amd64
  Experimental:     false

ikunat33 avatar Feb 18 '19 21:02 ikunat33

@ikunat33 "rmi" is a bastard. "rm" already existed (for removing containers), so they made it rmi. The real command is docker image rm

franklouwers avatar Feb 19 '19 07:02 franklouwers