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-312169261
 
 
   here is an example of the output of `nc`
   
   ```
   ?  $ echo -e "GET http:/v1.24/info HTTP/1.0\r\n" | nc -U /var/run/docker.sock
   HTTP/1.0 200 OK
   Api-Version: 1.30
   Content-Type: application/json
   Date: Fri, 30 Jun 2017 04:01:49 GMT
   Docker-Experimental: true
   Ostype: linux
   Server: Docker/17.06.0-ce (linux)
   
   
{"ID":"OUQD:URU5:XVVF:IOOO:ZPJK:6L4A:LR2K:4IHR:V3DK:J676:DIC7:PKO5","Containers":6,"ContainersRunning":6,"ContainersPaused":0,"ContainersStopped":0,"Images":137,"Driver":"overlay2","DriverStatus":[["Backing
 Filesystem","extfs"],["Supports d_type","true"],["Native Overlay 
Diff","true"]],"SystemStatus":null,"Plugins":{"Volume":["local"],"Network":["bridge","host","ipvlan","macvlan","null","overlay"],"Authorization":null,"Log":["awslogs","fluentd","gcplogs","gelf","journald","json-file","logentries","splunk","syslog"]},"MemoryLimit":true,"SwapLimit":true,"KernelMemory":true,"CpuCfsPeriod":true,"CpuCfsQuota":true,"CPUShares":true,"CPUSet":true,"IPv4Forwarding":true,"BridgeNfIptables":true,"BridgeNfIp6tables":true,"Debug":true,"NFd":57,"OomKillDisable":true,"NGoroutines":62,"SystemTime":"2017-06-30T04:01:49.685087254Z","LoggingDriver":"json-file","CgroupDriver":"cgroupfs","NEventsListener":2,"KernelVersion":"4.9.31-moby","OperatingSystem":"Alpine
 Linux v3.5","OSType":"linux","Architect
 
ure":"x86_64","IndexServerAddress":"https://index.docker.io/v1/","RegistryConfig":{"AllowNondistributableArtifactsCIDRs":[],"AllowNondistributableArtifactsHostnames":[],"InsecureRegistryCIDRs":["127.0.0.0/8"],"IndexConfigs":{"docker.io":{"Name":"docker.io","Mirrors":[],"Secure":true,"Official":true}},"Mirrors":[]},"NCPU":4,"MemTotal":2095890432,"DockerRootDir":"/var/lib/docker","HttpProxy":"","HttpsProxy":"","NoProxy":"","Name":"moby","Labels":null,"ExperimentalBuild":true,"ServerVersion":"17.06.0-ce","ClusterStore":"","ClusterAdvertise":"","Runtimes":{"runc":{"path":"docker-runc"}},"DefaultRuntime":"runc","Swarm":{"NodeID":"","NodeAddr":"","LocalNodeState":"inactive","ControlAvailable":false,"Error":"","RemoteManagers":null},"LiveRestoreEnabled":false,"Isolation":"","InitBinary":"docker-init","ContainerdCommit":{"ID":"cfb82a876ecc11b5ca0977d1733adbe58599088a","Expected":"cfb82a876ecc11b5ca0977d1733adbe58599088a"},"RuncCommit":{"ID":"2d41c047c83e09a6d61d464906feb2a2f3c52aa4","Expect
 
ed":"2d41c047c83e09a6d61d464906feb2a2f3c52aa4"},"InitCommit":{"ID":"949e6fa","Expected":"949e6fa"},"SecurityOptions":["seccomp"],"ExecutionDriver":"<not
 supported>"}
   ```
 
----------------------------------------------------------------
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