diff --git a/cmd/crictl/image.go b/cmd/crictl/image.go index 46c2fda7e7..ea1be5008b 100644 --- a/cmd/crictl/image.go +++ b/cmd/crictl/image.go @@ -101,6 +101,7 @@ var pullImageCommand = cli.Command{ var listImageCommand = cli.Command{ Name: "images", + Aliases: []string{"image", "img"}, Usage: "List images", ArgsUsage: "[REPOSITORY[:TAG]]", SkipArgReorder: true, diff --git a/docs/crictl.md b/docs/crictl.md index 570f001766..7e6276ef88 100644 --- a/docs/crictl.md +++ b/docs/crictl.md @@ -34,34 +34,34 @@ crictl SUBCOMMAND [FLAGS] Subcommands includes: -- `attach`: Attach to a running container -- `create`: Create a new container -- `exec`: Run a command in a running container -- `version`: Display runtime version information -- `images`: List images -- `inspect`: Display the status of one or more containers -- `inspecti`: Return the status of one or more images -- `imagefsinfo`: Return image filesystem info -- `inspectp`: Display the status of one or more pods -- `logs`: Fetch the logs of a container -- `port-forward`: Forward local port to a pod -- `ps`: List containers -- `pull`: Pull an image from a registry -- `run`: Run a new container inside a sandbox -- `runp`: Run a new pod -- `rm`: Remove one or more containers -- `rmi`: Remove one or more images -- `rmp`: Remove one or more pods -- `pods`: List pods -- `start`: Start one or more created containers -- `info`: Display information of the container runtime -- `stop`: Stop one or more running containers -- `stopp`: Stop one or more running pods -- `update`: Update one or more running containers -- `config`: Get and set crictl options -- `stats`: List container(s) resource usage statistics -- `completion`: Output bash shell completion code -- `help, h`: Shows a list of commands or help for one command +- `attach`: Attach to a running container +- `create`: Create a new container +- `exec`: Run a command in a running container +- `version`: Display runtime version information +- `images, image, img`: List images +- `inspect`: Display the status of one or more containers +- `inspecti`: Return the status of one or more images +- `imagefsinfo`: Return image filesystem info +- `inspectp`: Display the status of one or more pods +- `logs`: Fetch the logs of a container +- `port-forward`: Forward local port to a pod +- `ps`: List containers +- `pull`: Pull an image from a registry +- `run`: Run a new container inside a sandbox +- `runp`: Run a new pod +- `rm`: Remove one or more containers +- `rmi`: Remove one or more images +- `rmp`: Remove one or more pods +- `pods`: List pods +- `start`: Start one or more created containers +- `info`: Display information of the container runtime +- `stop`: Stop one or more running containers +- `stopp`: Stop one or more running pods +- `update`: Update one or more running containers +- `config`: Get and set crictl options +- `stats`: List container(s) resource usage statistics +- `completion`: Output bash shell completion code +- `help, h`: Shows a list of commands or help for one command crictl by default connects to Unix: `unix:///var/run/dockershim.sock` or Windows: `tcp://localhost:3735`. For other runtimes, use: