csantanapr commented on issue #2440: Use docker API via unix-socket in 
/var/run/docker.sock
URL: 
https://github.com/apache/incubator-openwhisk/pull/2440#issuecomment-311837325
 
 
   @markusthoemmes 
   
   
   I just hit a problem with travis, it looks I can't use `curl`, probably our 
other environments were we use Ubuntu 14 would have the same problem.
   ```
    [WARNING]: Consider using get_url or uri module rather than running curl
   fatal: [openwhisk-pg1-vm4.swg.usma.ibm.com]: FAILED! => {"changed": true, 
"cmd": "curl --unix-socket /var/run/docker.sock http:/v1.24/info", "delta": 
"0:00:00.011769", "end": "2017-06-28 18:09:08.003972", "failed": true, "rc": 2, 
"start": "2017-06-28 18:09:07.992203", "stderr": "curl: option --unix-socket: 
is unknown\ncurl: try 'curl --help' or 'curl --manual' for more information", 
"stderr_lines": ["curl: option --unix-socket: is unknown", "curl: try 'curl 
--help' or 'curl --manual' for more information"], "stdout": "", 
"stdout_lines": []}
   [FAILED]
   ```
   The version of curl in Ubuntu 14 is old and it doesn't support 
`--unix-socket`
   
   What could be an alternative? You think we can use ncats `nc` to talk to the 
docker API over unix socket? something like `echo -e "GET /images/json 
HTTP/1.0\r\n" | netcat -U /var/run/docker.sock`
   
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to