Using the Docker proxy
You can use a docker socket proxy as an additional security measure and as an alternative to mounting the docker socket directly.
Assuming your docker socket proxy is running as myproxy
running on port 1028;
actions:
- title: Stop container
shell: DOCKER_HOST=myproxy:1028 docker stop mycontainer