Can docker port forward to a unix file socket on the host container?
Docker’s -p syntax won’t take a unix socket: -p=[] : Publish a container᾿s port to the host (format: ip:hostPort:containerPort | ip::containerPort | hostPort:containerPort) One solution would be to: Run your container without any -p specification, we’ll name it “cont1” (–name cont1) Run a second container which: Bind mounts the unix socket (-v /tmp/file.sock:/tmp/file.sock) to have … Read more