Closed raelyan closed 5 months ago
Looks like it only turns POST on for endpoints you've allowed:
Below is an excerpt from /usr/local/etc/haproxy/haproxy.cfg
from inside the container. This follows the "fall-through" style rules detailed here: https://cbonte.github.io/haproxy-dconv/1.7/configuration.html#4-http-request
Stop, restart and kill are all POST requests:
https://docs.docker.com/engine/api/v1.43/#tag/Container/operation/ContainerStop https://docs.docker.com/engine/api/v1.43/#tag/Container/operation/ContainerRestart https://docs.docker.com/engine/api/v1.43/#tag/Container/operation/ContainerKill
Hope that helps!
Hi!
With the following configuration I can't stop containers with Portainer:
I don't know if it is a bug or I am not understanding it correctly. But I think ALLOW_RESTARTS=1 should allow me to do this.
Does anyone know what can happen? Is it necessary to activate POST? If I turn on POST and ALLOW_RESTARTS at the same time, does it only allow "stop, restart and kill" or turn on all POST options?.
Thank you very much.