but what does the -q mean?
the -
in "-q" denotes a short argument and q
is short for quiet.
Similarly, in the command: docker rm -vf $(docker -a -q) what does the -v mean?
again, the -
in "-v" denotes a short argument and v
is short for volumnes.
compare with the output of the man docker-rm
command:
DOCKER(1) Docker User Manuals DOCKER(1)
NAME
docker-rm - Remove one or more containers
SYNOPSIS
docker rm [OPTIONS] CONTAINER [CONTAINER...]
DESCRIPTION
Alias for docker container rm.
OPTIONS
-f, --force[=false] Force the removal of a running container
(uses SIGKILL)
-h, --help[=false] help for rm
-l, --link[=false] Remove the specified link
-v, --volumes[=false] Remove anonymous volumes associated with
the container
SEE ALSO
docker(1)
Docker Community Mar 2021 DOCKER(1)