podman-compose icon indicating copy to clipboard operation
podman-compose copied to clipboard

"podman-compose logs" doesn't use service names

Open micheljung opened this issue 3 years ago • 0 comments

Describe the bug

Just like docker-compose logs prints logs of all services, I expect podman-compose logs to do the same but it fails.

To Reproduce

  1. Create a docker-compose.yml with any services
  2. Execute podman-compose logs

Expected behavior Logs of all services should be printed

Actual behavior Since no service names are specified explicitly, podman-compose defaults to all container names instead of all service names.

Output

# podman-compose version
['podman', '--version', '']
using podman version: 4.0.2
podman-composer version  1.0.3
podman --version
podman version 4.0.2
# podman-compose logs
['podman', '--version', '']
using podman version: 4.0.2
podman logs docker_my-service_1 docker_my-db_1
Error: no container with name or ID "docker_my-service_1" found: no such container
exit code: 125

Environment:

  • OS: Linux (RHEL8)
  • podman version: 4.0.2
  • podman compose version: 1.0.3 (so I assume 24ec539932580a6bc96d6eb2341141b6d7198b39)

micheljung avatar Jul 20 '22 06:07 micheljung