Show current upstream config?
pwFoo opened this issue · 7 comments
Hi,
I would use sshpiper with docker (swarm). Used an older sshpiper with workdir before. So all configs found in the filesystem. Is it possible to show all configured upstreams by command or filesystem?
find <path_to_working_dir> -name sshpiper_upstream -exec cat {} \;
?
I started the new container with docker plugin. Can't find a workingdir used to save the docker upstreams?
docker plugin does not use any dir
it use container label https://github.com/tg123/sshpiper/tree/master/plugin/docker#container-labels-for-plugin
HI @tg123 ,
I know the container labels. And how to show a list of configured (by labels) upstreams :)
docker ps --format json | jq
?
Sorry, I think we talk about different things?
Not list compose / docker labels, output current sshpiperd configuration of upstreams to verify if all containers added to sshpiper.
docker plugin loads running containers every time when a client is attempting to connect
so you can just ensure container does have labels
if you really want to list them
maybe add a log to dump pipes here
sshpiper/plugin/docker/docker.go
Line 178 in 72fc548