Open ibreakthecloud opened 2 years ago
Also, If I exec inside service container do curl to /ping
it works for both the cases
I Hi @ibreakthecloud thank you for reporting this!
I can reproduce this as well. This could be related to the length of the socket path. If I change the image tag to a/b:latest
it works.
This is something we know, we must find a way to shorten the socket path.
I Hi @ibreakthecloud thank you for reporting this!
I can reproduce this as well. This could be related to the length of the socket path. If I change the image tag to
a/b:latest
it works. This is something we know, we must find a way to shorten the socket path.
Thanks for the quick reply @benja-M-1 . Is there a way to manually put the socket path, instead of letting it generate?
Unfortunately, no, there is not. In metadata.json
you can shorten the name of the generated socker but it may not be enough. The name of the extension also counts in the length.
In Docker Desktop 4.15 we've improved the docker extension init
command to generate a shorter socket name in the metadata.json
that does not depend on the extension name. No matter the name of your extension, the socket name will be backend.sock
.
@ibreakthecloud In your existing metadata.json
file, could you replace the socket name with a shorter one such as backend.sock
?
While this is not a definitive solution, it will reduce the likelihood of hitting this issue.
Describe the bug I have created a docker extension, currently the code is private. when I do
docker build -t secretscanner-docker-extension:latest .
and thendocker extension install secretscanner-docker-extension:latest
I am able to use the extension properly, ui is able to do
ddClient.extension.vm?.service?.get('/ping')
But, when I do
docker build -t deepfenceio/secretscanner-docker-extension:latest .
and thendocker extension install deepfence/secretscanner-docker-extension:latest
ddClient.extension.vm?.service?.get('/ping')
throws below error in console logmy docker compose yaml
Add the steps to reproduce Steps to reproduce the behavior:
Describe the expected behavior A clear and concise description of what you expected to happen.
Optional: Add screenshots If applicable, add screenshots to help explain your problem.
Output of
docker extension version
:Output of
docker version
:Include the Diagnostics ID
Additional context Add any other context about the problem here.