podman-compose
podman-compose copied to clipboard
podman-compose does not accept the "--pull=never" flag
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)