Open vutsalsinghal opened 1 year ago
Interesting! Seems easy to do! Just to understand correctly, it's to support a customized docker endpoint right ?
Not the ability to connect to multiple docker deamons at once, is that correct ?
@acouvreur yes correct!
So maybe in the sablier.yml we can define all the endpoints (default can be /var/run/docker.sock
) and in the subrequest call (with dynamic strat), along with the container name (sablierNames
), we can also pass the endpoint name (like sablierServer=machine2
) so the backend knows how to connect and start/stop/query the correct endpoint for that container.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This would be great to have. I put as many containers as possible to the TCP endpoint of https://github.com/Tecnativa/docker-socket-proxy and only expose the portions of the socket that are needed instead of direct socket access.
I agree on this. I prefer to use a docker proxy, instead of socket access.
This would be great to have. I put as many containers as possible to the TCP endpoint of https://github.com/Tecnativa/docker-socket-proxy and only expose the portions of the socket that are needed instead of direct socket access.
Figured it out,... the docker client used picks up DOCKER_HOST and some other bits from the environment. See https://github.com/acouvreur/sablier/issues/287
Hi,
Love
sablier
!I believe this is not super unusual to have multiple docker connections. For example - For example, I've three currently:
So basically in the subrequest to sablier backend from nginx (or traefik), when using docker provider, it should also pass something like
sablierServer
which can then be used to start/stop/query container status.Homepage project (link) uses this concept to display the status and container stats.