Replies: 13 comments
-
confirmed |
Beta Was this translation helpful? Give feedback.
-
The error seems to be here: it seems like we're filtering by type, but show-swarm-stack will always be true for a swarm endpoint. |
Beta Was this translation helpful? Give feedback.
-
Ok so not really a bug here. Actually, our intention was to force the user to deploy Swarm stacks only (and do not allow Compose stack deployment) when connected to a Swarm cluster. Few reasons are:
Thoughts @ncresswell ? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Ok, closing this issue as this is the actual behavior. |
Beta Was this translation helpful? Give feedback.
-
Hello, i opened this issue because, actually, we're migrating from legacy compose services to swarm services, they coexist in our approach, at this time. The issue was perceived when we create a docker machine to allow developers to learn and practice deploying and working with docker, so we need to supply templates to different needs and knowledge levels(from novice to the power user). |
Beta Was this translation helpful? Give feedback.
-
Following a discussion between @jeysibel @ncresswell and me, we decided to go for the following:
|
Beta Was this translation helpful? Give feedback.
-
When enabling support, user should be shown a message advising about the deployment constraints (agent vs no agent).
|
Beta Was this translation helpful? Give feedback.
-
Is there any timeframe for this issue? |
Beta Was this translation helpful? Give feedback.
-
@braaccckkk |
Beta Was this translation helpful? Give feedback.
-
Hello, just checking in a year later :) I'm basically facing the same issue as described above and it'd be so useful to keep deploying some containers this way, to keep things neat for some 'services' while retaining some features of docker run like --cap-add. As @jeysibel mentioned, some applications just won't play nice with swarm, but they're all apps I'd only have running on my manager anyway so it's not like they need that management level. I defined pretty much our entire company infrastructure through compose v2 files and relied on compose stacks for a long time to manage things. Works fantastic and it's a nice and simple way to define our infra. I'd love to continue managing things in a similar way while opening up swarm capabilities - not a hard required switch. I'm facing a need to use Traefik's swarm capabilities to do some more complex proxying, so it seems like I'm stuck with switching to swarm but I'd hate to have to 'downgrade' some of my template entries to normal containers (type 1) instead of the stacks I already have. |
Beta Was this translation helpful? Give feedback.
-
Hey, I just wanted to bump this issue and ask if this is still on the roadmap or not. I'm using swarm primarily, but there are still some containers I need to deploy using legacy compose files. This is due to swarm not supporting things like network_node or cap_add, which are crucial for some apps I deploy. |
Beta Was this translation helpful? Give feedback.
-
A simple user case for me is the need of deploying a traefik proxy in swarm mode, but also be able to manage a container that need a specific hardware device present only on a specific node. At the moment, I sidestep this issue creating the container via cli on the host, but it would be great to be able to handle both in portainer. Ideally having a dropdown selecting the deployment method ( compose or stack ), or deducing the deployment mode from the shape of the compose specification ( like absence of |
Beta Was this translation helpful? Give feedback.
-
Bug description
Although registered in database, templates type 3 (compose stack) aren't showing up in the Ui either created via Ui or via API. The create process is ok, in both cases (i can see the template description via api), but after creation, the UI is showing only swarm stack and single container templates.
Expected behavior
The Ui must show every container template add by user.
I expect to see compose stack templates alongside the swarm and single container templates.
Steps to reproduce the issue:
Technical details:
docker run -p 9000:9000 portainer/portainer
): Compose fileAdditional context
Add any other context about the problem here.
Beta Was this translation helpful? Give feedback.
All reactions