Replies: 5 comments
-
|
Ticket update by Anthony McMahon ([email protected]) This is working as designed. The underlying principle of Portainer is to enforce best practice across all functions, including Swarm. When using swarm, you should always use Swarm services and not containers. I am going to retag this as a feature request and notify our product team for consideration. |
Beta Was this translation helpful? Give feedback.
-
|
I have the same behaviour, arrived at by a different route. I created a custom type=Swarm template, then flipped the type to Standalone in an edit. It wasn't obvious to me what the two options meant, so I wanted to find out. The custom template disappeared, but is not gone and apparently can't be accessed anywhere in the UI. This means that, for example, it's no longer possible to delete the template, create a new one with the same name, or flip it back to type=Swarm. If you're in Swarm mode, then, why is the option of "Standalone" (which I am guessing from the "use Swarm services and not containers" comment above) available at all? Is there a way at present to delete a template outside the UI? I can see that the file itself is stored in the data volume under |
Beta Was this translation helpful? Give feedback.
-
|
@iay this sounds like a separate bug, would you mind opening a separate bug report for it? That'd be great, thanks! The only solution I can think about for your problem would be to use the API and send a DELETE request to remove the custom template. |
Beta Was this translation helpful? Give feedback.
-
|
@deviantony done, see #4743. Cheers. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug description
I created a custom template with type 'standalone'. Creating looks done successfully but it is not shown in the Custom Templates page.
Expected behavior
Created custom template should be listed in Custom Templates page.
Portainer Logs
2021/01/20 01:39:31 http error: Invalid JWT token (err=Invalid JWT token) (code=401)
2021/01/20 01:39:31 http error: Invalid JWT token (err=Invalid JWT token) (code=401)
2021/01/20 01:39:31 http error: Invalid JWT token (err=Invalid JWT token) (code=401)
2021/01/20 01:39:31 http error: Invalid JWT token (err=Invalid JWT token) (code=401)
I can only see these logs but it doesn't seem related to the symptom.
Steps to reproduce the issue:
Technical details:
docker run -p 9000:9000 portainer/portainer):sudo docker stack deploy -c portainer-agent-stack.yml portainerAdditional context
I can deploy a standalone app from a pre-defined standalone app template. e.g. nginx
My Portainer is managing a docker swarm cluster.
Beta Was this translation helpful? Give feedback.
All reactions