-
Notifications
You must be signed in to change notification settings - Fork 2k
4600-cli/command: adding docker volumes
alias
#4601
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: rafael <rafael.boszko@gmail.com>
…lumesCommand Signed-off-by: rafael <rafael.boszko@gmail.com>
6aa5967
to
f043b1d
Compare
docker volumes
aliasdocker volumes
alias
I have not updated the md files for this change. I wasn't sure anybody would like the idea so I didn't want to go through the trouble until this got any progress stamp, but it can be done :) |
Thanks for contributing! I don't think we should add this alias though; the |
Hi @thaJeztah! Yeah indeed, and I realize the mistake it can cause, but at the same time I feel like this is a good and a bad move. I feel like having Somehow I feel like the confusion users feel while mistaking It's possible it causes a similar annoyance :) |
Yeah, the original plan was to hide (soft-deprecate) these, and there's an option to hide them through an environment variable ( DOCKER_HIDE_LEGACY_COMMANDS=1 docker --help
Usage: docker [OPTIONS] COMMAND
A self-sufficient runtime for containers
Common Commands:
run Create and run a new container from an image
exec Execute a command in a running container
ps List containers
build Build an image from a Dockerfile
pull Download an image from a registry
push Upload an image to a registry
images List images
login Log in to a registry
logout Log out from a registry
search Search Docker Hub for images
version Show the Docker version information
info Display system-wide information
Management Commands:
builder Manage builds
buildx* Docker Buildx (Docker Inc., v0.11.2-desktop.5)
compose* Docker Compose (Docker Inc., v2.22.0-desktop.2)
container Manage containers
context Manage contexts
desktop* Commands to interact with Docker Desktop (Docker Inc.)
dev* Docker Dev Environments (Docker Inc., v0.1.0)
extension* Manages Docker extensions (Docker Inc., v0.2.20)
image Manage images
init* Creates Docker-related starter files for your project (Docker Inc., v0.1.0-beta.8)
manifest Manage Docker image manifests and manifest lists
network Manage networks
plugin Manage plugins
sbom* View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc., 0.6.0)
scan* Docker Scan (Docker Inc., v0.26.0)
scout* Docker Scout (Docker Inc., v1.0.7)
shell* Open a browser shell on the Docker Host. (thaJeztah, v0.0.1)
system Manage Docker
trust Manage trust on Docker images
volume Manage volumes
Swarm Commands:
swarm Manage Swarm |
I can understand why it's going away then. Long live the Would preventing arguments on the |
- What I did
I've added a new command / alias for the
docker volume ls
, beingdocker volumes
- How I did it
By altering the existing files and doing a very similar job to what the
docker images
does, just with the volume instead- How to verify it
Running
docker volumes
on the command line- Description for the changelog
Added a new alias for the
docker volume ls
command:docker volumes
- A picture of a cute animal (not mandatory but encouraged)

- Side notes
This is my first PR here, please be kind, and sorry in advance :)