containers / containers/podman-compose

podman-compose does not accept the "--pull=never" flag

Open
#816 0 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
Python
Stars
6.2k
Forks
622
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
podman-compose does not accept the "--pull=never" flag.

**To Reproduce**
Create Dockerfile:
```
version: '3'
services:
app1service:
image: localhost/doesnotexist
container_name: app1container
#pull_policy: never
```
Run the command and notice the error.
```
podman-compose up --no-build -d "app1service" --pull=never
...
podman-compose up: error: argument --pull: ignored explicit argument 'never'
```

The same command works as expected with Docker Compose.
https://docs.docker.com/compose/compose-file/05-services/#pull_policy
```
docker compose up --no-build -d "app1service" --pull=never
...
[+] Running 0/0
- Container app1container Creating 0.0s
Error response from daemon: failed to find image localhost/doesnotexist: localhost/doesnotexist: No such image
```

For now, i enable the item to the Dockerfile itself as a workaround.

**Expected behavior**
Accept the flag and do not pull the image from a repository.

**Actual behavior**
Command execution stops

```
$ podman-compose version
podman-compose version: 1.0.6
['podman', '--version', '']
using podman version: 4.6.2
podman-compose version 1.0.6
podman --version
podman version 4.6.2
exit code: 0
```

**Environment:**
- OS: Linux / WSL
- podman version:
- podman compose version: (git hex)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.