I take back the second statement. I was wrong. It is returning nulls for the names just like the docker ps -a command but the docker command isn’t showing the null values. Below is an example.
HTTP/1.1 200 OK
Content-Type: application/json
Date: Tue, 08 Sep 2015 18:50:59 GMT
Content-Length: 1016
[{“Id”:“97447f37169283c9889e4fb427e2177739f7dfcb2a77822f190df4bfcb3c8cfa”,“Names”:["/bigbiller_workers"],“Image”:“sdslnxdockrepo1.topechelon.corp/bigbiller_workers:1569”,“Command”:"/sbin/my_init",“Created”:1441397555,“Ports”:[{“PrivatePort”:443,“Type”:“tcp”},{“PrivatePort”:80,“Type”:“tcp”}],“Labels”:{},“Status”:“Up 3 days”},{“Id”:“a27469782e95d2d2721958b79fdef9d5a063ebdf69313732d4a0e2f9a5306bd9”,“Names”:["/bigbiller_scheduled_tasks"],“Image”:“sdslnxdockrepo1.topechelon.corp/bigbiller_scheduled_tasks:1569”,“Command”:"/sbin/my_init",“Created”:1441397100,“Ports”:[{“PrivatePort”:443,“Type”:“tcp”},{“PrivatePort”:80,“Type”:“tcp”}],“Labels”:{},“Status”:“Up 3 days”},{“Id”:“c194847ec41da67c003b6b8dd5c9d22a65fd45a6086a9708eebe66d5645b9dde”,“Names”:["/bigbillerwebapp"],“Image”:“sdslnxdockrepo1.topechelon.corp/bigbiller:1569”,“Command”:"/sbin/my_init",“Created”:1441397071,“Ports”:[{“IP”:“0.0.0.0”,“PrivatePort”:80,“PublicPort”:2280,“Type”:“tcp”},{“PrivatePort”:443,“Type”:“tcp”}],“Labels”:{},“Status”:“Up 3 days”}]
root@sdslnxkvm4:~# echo -en “GET /v1.19/containers/json HTTP/1.1\r\nHost: /var/run/docker.sock\r\nUser-Agent: Docker-Client/1.8.1 (linux)\r\n\r\n” | socat stdio unix-connect:/var/run/docker.sock
HTTP/1.1 200 OK
Content-Type: application/json
Date: Tue, 08 Sep 2015 18:51:01 GMT
Content-Length: 956
[{“Id”:“97447f37169283c9889e4fb427e2177739f7dfcb2a77822f190df4bfcb3c8cfa”,“Names”:null,“Image”:“sdslnxdockrepo1.topechelon.corp/bigbiller_workers:1569”,“Command”:"/sbin/my_init",“Created”:1441397555,“Ports”:[{“PrivatePort”:80,“Type”:“tcp”},{“PrivatePort”:443,“Type”:“tcp”}],“Labels”:{},“Status”:“Up 3 days”},{“Id”:“a27469782e95d2d2721958b79fdef9d5a063ebdf69313732d4a0e2f9a5306bd9”,“Names”:null,“Image”:“sdslnxdockrepo1.topechelon.corp/bigbiller_scheduled_tasks:1569”,“Command”:"/sbin/my_init",“Created”:1441397100,“Ports”:[{“PrivatePort”:443,“Type”:“tcp”},{“PrivatePort”:80,“Type”:“tcp”}],“Labels”:{},“Status”:“Up 3 days”},{“Id”:“c194847ec41da67c003b6b8dd5c9d22a65fd45a6086a9708eebe66d5645b9dde”,“Names”:null,“Image”:“sdslnxdockrepo1.topechelon.corp/bigbiller:1569”,“Command”:"/sbin/my_init",“Created”:1441397071,“Ports”:[{“PrivatePort”:443,“Type”:“tcp”},{“IP”:“0.0.0.0”,“PrivatePort”:80,“PublicPort”:2280,“Type”:“tcp”}],“Labels”:{},“Status”:“Up 3 days”}]