How to find logs of a plugin in new Docker Plugin management system?

For a plugin like this one: https://github.com/vieux/docker-volume-sshfs which is designed for the new plugin management system and runs in kinda-container where do I find logs for this plugin?
On Mac OS X? On Centos?

I have the EXACT same question any one know?

As far as I know, there’s still no “easy” way to get the logs of a plugin.
However, if it logs to stdout/stderr, you can start your Docker daemon in debug mode ("debug": true in daemon.json), and tail your syslog (or journalctl -f -u docker.service)

There’s a very simple way of viewing docker plugin logs

first run this to get your plugin id

docker plugin inspect $your_plugin | grep "\"Id\""

second cd to the directory

cd /run/docker/plugins/$your_plugin_id

finally

cat < init-stdout
# or
cat < init-stderr
1 Like

its not so simple, and also it isn’t works bash: init-stderr: No such file or directory

Perfect, it works. Only filenames for stdout and stderr slightly differ on my system. Inspect the directory before you do cat.