`pull` silently ignores unknown service names and exits 0
Maintainers usually reply within 4 days
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 69/100
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
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
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from containers/podman-compose
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
containers/podman-compose#1652 ·
Maintainers usually reply within 4 days
-
`name_separator_compat` also changes network names, which docker compose does not doPossibly taken @Eliot5566 claimed this 12 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
containers/podman-compose#1628 ·
Maintainers usually reply within 4 days
-
`extra_hosts` entries written as `HOSTNAME=IP` fail with "bad format for add-host"Possibly taken @Eliot5566 claimed this 18 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
containers/podman-compose#1620 ·
Maintainers usually reply within 4 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
containers/podman-compose#1619 · 3 comments · 1 reaction ·
Maintainers usually reply within 4 days
-
Support for services.attachPossibly taken @orshih6 claimed this 11 days ago. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
containers/podman-compose#1597 ·
Maintainers usually reply within 4 days
All issues in containers/podman-compose
Similar issues
-
docs(contributing): the two things that silently block a PRPossibly taken A pull request linked to this issue is open or already merged. Openavailable documentation good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 95/100
Nixitov/Riptide-Native#944 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
JTHCode/secretguard#24 ·
Maintainers usually reply within 1 day
-
area: middleware documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
omarelshamy25x/shamy-hijri#63 ·
Maintainers usually reply within 1 day