How can I execute following curl call from PHP
curl --unix-socket /var/run/docker.sock http:/images/json
I went through this list of options available for curl_setopt but couldn't find any option related to above --unix-socket. I got above curl call from this answer.
Edit
From this blog article, can we somehow use CURLOPT_UNIX_SOCKET_PATH option in PHP?