-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Labels
Description
Description
When running a docker compose ls operation, I can use either the --filter option or the --quiet option but not both together. When --quiet is present, the output is not filtered.
Here's a sample transcript to illustrate:
$ docker compose ls
NAME STATUS CONFIG FILES
repo running(1) /home/example/repo/compose.yaml
test-repo running(2) /home/example/test-repo/compose.yaml
$ docker compose ls --filter "name=^report$"
NAME STATUS CONFIG FILES
$ docker compose ls --quiet
repo
test-repo
$ docker compose ls --filter "name=^report$" --quiet
repo
test-repo
I would expect the last command to have no output, since none of the composer projects match the regular expression for the name.
Steps To Reproduce
No response
Compose Version
$ docker compose version
Docker Compose version v2.21.0
$ docker-compose version
Command 'docker-compose' not found, but can be installed with:
sudo snap install docker # version 20.10.24, or
sudo apt install docker-compose # version 1.29.2-1
See 'snap info docker' for additional versions.
Docker Environment
$ docker info
Client: Docker Engine - Community
Version: 24.0.6
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.11.2
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.21.0
Path: /usr/libexec/docker/cli-plugins/docker-compose
Server:
Containers: 5
Running: 3
Paused: 0
Stopped: 2
Images: 9
Server Version: 24.0.6
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: false
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 logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 61f9fd88f79f081d64d6fa3bb1a0dc71ec870523
runc version: v1.1.9-0-gccaecfc
init version: de40ad0
Security Options:
apparmor
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.2.0-1012-azure
Operating System: Ubuntu 22.04.3 LTS
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 7.694GiB
Name: curlingseattle
ID: df1e3b23-c3b3-459b-b73a-de0d72841b7d
Docker Root Dir: /var/lib/docker
Debug Mode: false
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Anything else?
No response
Reactions are currently unavailable