You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to create a java plugin because of the use case that we have where we want to use some java library(which is hard to migrate in golang). Since I didn't find any helpers which are already there in github, I am trying to code from scratch!
I have made a good progress on that but I am stuck at one point where "plugin enable <plugin_name>" command is not able to find the .sock file at the desired location.
As per this document -- Plugin Discovery, sock file should be created in directory -- /run/docker/plugins. I looked at the code for "go-plugin-helpers" code as well (reference here), we are creating the .sock files in the location /run/docker/plugins/ . There are 2 things I am not sure about and which has got me confused:
When I try installing and enabling the sample plugins which are already developed in golang, I actually see the sock file in location /run/docker/plugins/a864dd55a0963ec5d1b501497864617be3b4b49d12a9b6f482e2d5ec72e4eb1c/jsonfile.sock and not /run/docker/plugins/jsonfile.sock. As per code, it is created as latter, then how is it creating the former. Which step is doing that in code? Am I missing something?
When I try to create a plugin and enable it, I am creating the .sock file in the suggested location /run/docker/plugins/ but my plugin enable command fails looking for the file in a different location Error response from daemon: dial unix /run/docker/plugins/a2b3f998d76eac6fa21d9e2963de29b1385b2244231f87a6b5a6bf05ac8ae7e9/jsonfile.sock: connect: no such file or directory
SO the questions are :
Why is it looking in the directory /run/docker/plugins/<docker-plugin-id> and not at the location where it is supposed to look at? Is it some configuration that I am missing?
How are go-helpers creating under the directory ```/run/docker/plugins/`` when I don't see any code which has any id passed and accepted?
I can share more details if someone has any pointers and can answer some questions here? Would really appreciate any help.
The text was updated successfully, but these errors were encountered:
I am trying to create a java plugin because of the use case that we have where we want to use some java library(which is hard to migrate in golang). Since I didn't find any helpers which are already there in github, I am trying to code from scratch!
I have made a good progress on that but I am stuck at one point where "plugin enable <plugin_name>" command is not able to find the .sock file at the desired location.
As per this document -- Plugin Discovery, sock file should be created in directory --
/run/docker/plugins
. I looked at the code for "go-plugin-helpers" code as well (reference here), we are creating the .sock files in the location/run/docker/plugins/
. There are 2 things I am not sure about and which has got me confused:/run/docker/plugins/a864dd55a0963ec5d1b501497864617be3b4b49d12a9b6f482e2d5ec72e4eb1c/jsonfile.sock
and not/run/docker/plugins/jsonfile.sock
. As per code, it is created as latter, then how is it creating the former. Which step is doing that in code? Am I missing something?/run/docker/plugins/
but my plugin enable command fails looking for the file in a different locationError response from daemon: dial unix /run/docker/plugins/a2b3f998d76eac6fa21d9e2963de29b1385b2244231f87a6b5a6bf05ac8ae7e9/jsonfile.sock: connect: no such file or directory
SO the questions are :
/run/docker/plugins/<docker-plugin-id>
and not at the location where it is supposed to look at? Is it some configuration that I am missing?I can share more details if someone has any pointers and can answer some questions here? Would really appreciate any help.
The text was updated successfully, but these errors were encountered: