podman-compose icon indicating copy to clipboard operation
podman-compose copied to clipboard

docker compose config – --profiles option not supported

Open piotr-dobrogost opened this issue 1 year ago • 3 comments

I'm trying to use podman-compose instead of docker-compose with PyCharm Python IDE which calls docker compose config with the option --profiles which results in the error:

 podman-compose: error: unrecognized arguments: --profiles
 Error: executing /usr/bin/podman-compose -f /home/piotr/projects/x/docker-compose.yml config --profiles: exit status 2

Could you please add support for docker compose config --profiles? This option is described at https://docs.docker.com/reference/cli/docker/compose/config/#options. This would complement support for --profile option added recently (https://github.com/containers/podman-compose/issues/430).

[piotr@fedora]~% podman-compose --version       
podman-compose version 1.2.0
podman version 5.2.3

I'm on Fedora 41 with the following packages installed:

podman.x86_64          5:5.2.3-1.fc41
podman-compose.noarch  1.2.0-2.fc41
podman-docker.noarch   5:5.2.3-1.fc41

piotr-dobrogost avatar Oct 03 '24 07:10 piotr-dobrogost

i think you need to use quote ("") for the profile name. my example is "all"

podman-compose --profile "all" up

luan-dang-techlabs avatar Oct 18 '24 22:10 luan-dang-techlabs

This is not about --profile option but another option called --profiles (plural, with "s" at the end) which is supposed to list all available profiles.

piotr-dobrogost avatar Oct 19 '24 16:10 piotr-dobrogost

This would be a big help, thanks.

Yohe-Am avatar Mar 04 '25 01:03 Yohe-Am