This answer on stackoverflow says that the right way to specify the URL to a UNIX socket is by using the format http+unix://%2Ftmp%2Fprofilesvc.sock/path/to/page
where the scheme is http+unix
. However, this website suggests the right way is to use the format unix:///mnt/wsl/shared-docker/docker.sock
, where the scheme is unix
. I'm simply confused as to which is the correct way and if both are correct, how they are different. Thanks for the help.
Asked
Active
Viewed 346 times
0

edddd
- 433
- 3
- 17
-
The second form applies to a Docker instance. – user207421 Jul 06 '22 at 08:11
-
@user207421 is it just a syntax that Docker uses? Is `http+unix` the standard way to do this? – edddd Jul 06 '22 at 09:52
-
1I'm pretty sure the first form isn't standard (it's specific to that library), and no standard Unix Domain Socket URI exists. – Hasturkun Jul 06 '22 at 14:09
-
@Hasturkun that clears it up. – edddd Jul 06 '22 at 14:43