I’m trying to develop a docker plugin: Using the unix socket by specifying it in the config.json->interface->socket works and I’m able to get ‘docker plugin enable’ return success after ‘docker create plugin’.
When I instead tried a spec file in /etc/docker/plugins/myplugin.spec that contains ‘tcp://<ip>:<port>’ into the plugin’s rootfs(*) , the ‘docker plugin enable’ fails with the messages that the connection was refused as it a unix socket does not exist.
According to the docs (https://docs.docker.com/engine/extend/plugin_api/#plugin-discovery), docker daemon first scans for unix sockets and then tries .spec files if the unix socket doesn’t exist but this doesn’t seem to be happening. Unfortunately the documentation available is not heavy on details.
Is there supposed to be a special value for ‘socket’ in the config.json ? Tried without ‘socket’, and ‘socket’ with empty value but neither helped.
* - also tried creating the spec file in the host where docker daemon runs but that didn’t seem to work either.
Docker version 18.05.0-ce, build f150324 on Ubuntu 18.04