Skip to content

missing alias for remove command #6142

Closed
@LorenzoBuero

Description

@LorenzoBuero

Description

$docker rm --help prints out the aliases of the command excepting for "docker remove":
Usage: docker rm [OPTIONS] CONTAINER [CONTAINER...]

Remove one or more containers

Aliases:
docker container rm, docker container remove, docker rm

Options:

Reproduce

docker rm --help
docker remove --help

Expected behavior

The command should print out all the aliases:
Usage: docker rm [OPTIONS] CONTAINER [CONTAINER...]

Remove one or more containers

Aliases:
docker container rm, docker container remove, docker rm, docker remove

Options:

docker version

Client:
 Version:           28.1.1
 API version:       1.49
 Go version:        go1.24.2
 Git commit:        4eba377327
 Built:             Mon Apr 21 13:12:23 2025
 OS/Arch:           linux/amd64
 Context:           default

Server:
 Engine:
  Version:          28.1.1
  API version:      1.49 (minimum version 1.24)
  Go version:       go1.24.2
  Git commit:       01f442b84d
  Built:            Mon Apr 21 13:12:23 2025
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v2.1.0
  GitCommit:        061792f0ecf3684fb30a3a0eb006799b8c6638a7.m
 runc:
  Version:          1.3.0
  GitCommit:        
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

docker info

Client:
 Version:    28.1.1
 Context:    default
 Debug Mode: false

Server:
 Containers: 4
  Running: 0
  Paused: 0
  Stopped: 4
 Images: 5
 Server Version: 28.1.1
 Storage Driver: overlay2
  Backing Filesystem: btrfs
  Supports d_type: true
  Using metacopy: true
  Native Overlay Diff: false
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 061792f0ecf3684fb30a3a0eb006799b8c6638a7.m
 runc version: 
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.12.28-1-MANJARO
 Operating System: Manjaro Linux
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 7.639GiB
 Name: H-U-E
 ID: 4539c093-2b0c-4c99-8065-c9acc11cf535
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  ::1/128
  127.0.0.0/8
 Live Restore Enabled: false

Additional Info

small issue, but i wan´t to do my first pull request :b

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions