Package: docker-compose Version: 1.29.2-3 Severity: important Dear Maintainer,
I installed with apt-get install docker-compose docker-compose works well, except for "docker-compose exec" that does not return anything. In a bash shell, issue "docker-compose exec", it should return an error, because the command does not specify enough argument. Instead it returns nothing. (except for return code = 1) It should have returned something like this: ``` Execute a command in a running container Usage: exec [options] [-e KEY=VAL...] SERVICE COMMAND [ARGS...] Options: (...) ``` It also returns nothing on a complete command when an error occured. It works when the command is complete, and there is no error: For example, I use ``` docker-compose exec -u www-data web bash ``` With a complete and working `docker-compose.yml` file, services started, it works. But if there is an error (say the service "web" is not started, or there is no `docker-compose.yml`), nothing is shown. It renders base utilisation problematic, because we don't see the command fails, and it is not telling which is the problems, so it is hard to fix. I have this problem on all 3 of my debian-12 system -- System Information: Debian Release: 12.2 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 6.1.0-12-amd64 (SMP w/4 CPU threads; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages docker-compose depends on: ii python3 3.11.2-1+b1 ii python3-distro 1.8.0-1 ii python3-distutils 3.11.2-3 ii python3-docker 5.0.3-1 ii python3-dockerpty 0.4.1-4 ii python3-docopt 0.6.2-4.1 ii python3-dotenv 0.21.0-1 ii python3-jsonschema 4.10.3-1 ii python3-requests 2.28.1+dfsg-1 ii python3-texttable 1.6.7-1 ii python3-websocket 1.2.3-1 ii python3-yaml 6.0-3+b2 Versions of packages docker-compose recommends: ii docker.io 20.10.24+dfsg1-1+b3 docker-compose suggests no packages. -- no debconf information