Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: unknown flag: --env #980

Open
rpete3 opened this issue Jun 27, 2024 · 1 comment
Open

Error: unknown flag: --env #980

rpete3 opened this issue Jun 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@rpete3
Copy link

rpete3 commented Jun 27, 2024

Describe the bug
podman-compose is throwing the following error: Error: unknown flag: --env

To Reproduce
Steps to reproduce the behavior:

  1. what is the content of the current working directory image
  2. podman-compose build

Expected behavior
Build to run. Validated build is working with podman-compose 1.0.6

Actual behavior
Error: unknown flag: --env

Output

peterxr3@U-3GxxxxYCN0K9W:~/github/cls-print-rules$ podman-compose build
Error: unknown flag: --env
peterxr3@U-3GxxxxCN0K9W:~/github/cls-print-rules$ podman-compose --version
podman-compose version 1.2.0
podman version 3.4.4
peterxr3@U-3GxxxxCN0K9W:~/github/cls-print-rules$ 

Environment:

  • OS: Linux Ubuntu 22.04
  • podman version: 3.4.4
  • podman compose version: 1.1.0, 1.2.0

Additional context
Was working fine until 1.1.0 release, 1.2.0 release does not fix it.

@skateman
Copy link

skateman commented Jul 1, 2024

Seems like podman-compose >= 1.1.0 requires a newer version of podman. The issue seems to be with the podman-compose build command forwarding environment variables to the podman build command. I suspect that the installed version of podman is too old and does not support this feature yet.

I am not aware if GH actions allows you to configure the version of podman installed, so you can either:

  • downgrade the compose when you install it to something older than 1.1.0
  • install a newer version of podman manually

skateman added a commit to RedHatInsights/compliance-backend that referenced this issue Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants