`pull` silently ignores unknown service names and exits 0

Open Beginner friendly
#1,640 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 4 days

@PacketBreaker is already working on this.

Since Nov 29, 2026.

  • #1642 by @PacketBreaker — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
69/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
cli

Research direction

Start at the pull command implementation and trace how it handles the requested service names, then check nearby tests for pull behavior. Reproduce with a compose file containing web and run pull typo_web and pull web typo_web; done means unknown names produce a no such service error, no service is pulled when any name is invalid, and the command exits non-zero.

Written by the indexing model from the issue text.

Description

bug

Describe the bug
podman-compose pull does not check whether the given service names exist. An unknown name is silently skipped and the command exits with 0, so the mistake goes unnoticed.
docker-compose stops with no such service: <name> and exits with 1.

To Reproduce
Steps to reproduce the behavior:
docker-compose.yml:

services:
  web:
    image: docker.io/library/busybox

Commands:

podman-compose pull typo_web
echo $?
0
podman-compose pull web typo_web
Trying to pull docker.io/library/busybox:latest...
echo $?
0

Expected behavior
Like docker-compose: print no such service: typo_web, pull nothing, and exit with a non-zero code.

$ docker compose version
Docker Compose version v5.8.0
$ docker compose pull typo_web
no such service: typo_web
$ echo $?
1
$ docker compose pull web typo_web
no such service: typo_web
$ echo $?
1

Actual behavior
No error or warning is printed and the exit code is 0. With web typo_web, web is pulled and typo_web is silently ignored.

Environment:

OS: Linux (Debian GNU/Linux 13 (trixie))
podman version: 5.4.2
podman compose version: 1.6.0 (also on main, 8063dae)

Additional context
The same happens with pull --include-deps typo_web (#1641).

Dominant language
Python
Stars
6.3k
Forks
647
Avg merge
3d 8h
Merged PRs (30d)
5

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from containers/podman-compose

All issues in containers/podman-compose

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.