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

Podman not supporting --scale flag #267

Open
unvaare opened this issue Jan 19, 2021 · 7 comments
Open

Podman not supporting --scale flag #267

unvaare opened this issue Jan 19, 2021 · 7 comments

Comments

@unvaare
Copy link

unvaare commented Jan 19, 2021

I have been facing this issue where i am trying to scale down or up the services using --scale option but podman-compose is ignoring the altogether and spinning up containers as given in compose file.

Can someone please help?

@metal3d
Copy link

metal3d commented Jun 17, 2022

A Pod shares the same IP for all containers.
Scaling the same service will try to open several times the same ports on the Pod. So it's not possible.
Compose seems to not propose a way to create one pod per service. That would be the solution. But at this time, it's impossible.

And it's a pitty.

@heitorPB
Copy link

heitorPB commented Jan 4, 2023

Is there a workaround for this issue?

@me-coder
Copy link

me-coder commented Nov 5, 2024

@metal3d,
@unvaare is curious regarding podman-compose ignoring --scale.
podman-compose as default doesn't create pods unless directed to do so with --in-pod, but creates containers just like docker compose does (godman-compose more of a drop-in replacement for docker compose).
So --scale seems like a necessary feature support, which is missing from podman-compose.

Typically after podman-compose up -d we don't see any pods:

# podman pod ps
POD ID      NAME        STATUS      CREATED     INFRA ID    # OF CONTAINERS

Unless the command is accompanied by podman-compose --in-pod hosting up -d.

# podman pod ps
POD ID        NAME         STATUS      CREATED         INFRA ID    # OF CONTAINERS
d391e937fe90  pod_hosting  Running     46 seconds ago              1

In later case, what you have explained might apply, but for the former case there would be different containers with individually separate IPs that would be created and shouldn't be an issue.

@metal3d
Copy link

metal3d commented Nov 5, 2024

It seems that there is now a x-podman directive that may set in-pod to false.

@epag
Copy link

epag commented Jan 21, 2025

I also just ran into this same issue, did anyone find out a workaround?

me-coder added a commit to me-coder/podman-compose that referenced this issue Mar 5, 2025
me-coder added a commit to me-coder/podman-compose that referenced this issue Mar 5, 2025
@me-coder
Copy link

me-coder commented Mar 5, 2025

@unvaare, @epag,
I've submitted #1159 to address this, which is a partial working fix.
If you are still active and interested in this, could you help me test and review this change-set?

@epag
Copy link

epag commented Mar 5, 2025

Happy to help out in what ways I can later this week when I get some free time, thanks for addressing this! Fingers crossed my IT department is able to upgrade the version to include the change 🤞

me-coder added a commit to me-coder/podman-compose that referenced this issue Mar 7, 2025
me-coder added a commit to me-coder/podman-compose that referenced this issue Mar 7, 2025
me-coder added a commit to me-coder/podman-compose that referenced this issue Mar 7, 2025
me-coder added a commit to me-coder/podman-compose that referenced this issue Mar 7, 2025
me-coder added a commit to me-coder/podman-compose that referenced this issue Mar 7, 2025
me-coder added a commit to me-coder/podman-compose that referenced this issue Mar 7, 2025
me-coder added a commit to me-coder/podman-compose that referenced this issue Mar 7, 2025
me-coder added a commit to me-coder/podman-compose that referenced this issue Mar 7, 2025
me-coder added a commit to me-coder/podman-compose that referenced this issue Mar 7, 2025
me-coder added a commit to me-coder/podman-compose that referenced this issue Mar 7, 2025
me-coder added a commit to me-coder/podman-compose that referenced this issue Mar 7, 2025
me-coder added a commit to me-coder/podman-compose that referenced this issue Mar 7, 2025
me-coder added a commit to me-coder/podman-compose that referenced this issue Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants