In #17481, a problem in the current implementation of docker network inspectsurfaced:
The output has all keys lowercased, e.g. name, id. This is not in line with the output of the other inspect commands, that use capitalized keys, e.g. Id and Name.
This is confusing. In all outputs, IDs should be Id and names should be Name.
This also complicates the implementation in #17481.
Therfore the implementation of docker network inspect should be changed to use the capitalized key names like defined in https://github.com/docker/docker/blob/master/api/types/types.go#L337-L345.
docker inspect
root@19726e047c5a:~# docker inspect sad_bhaskara | head
[
{
"Id": "e87a85628a32e40cf43a2958328a7a3b57c4ee274c7a5a45cf45f23d932e6a0f",
"Created": "2015-10-30T07:37:27.590472546Z",
"Path": "/hello",
"Args": [],
"State": {
"Status": "exited",
"Running": false,
"Paused": false,
docker volume inspect
root@19726e047c5a:~# docker volume inspect volume
[
{
"Name": "volume",
"Driver": "local",
"Mountpoint": "/var/lib/docker/volumes/volume/_data"
}
]
docker network inspect
root@19726e047c5a:~# docker network inspect host
[
{
"name": "host",
"id": "ea55f7db377c388395080351f5778aee23edcac3f0364604f05cce09a7e3bd98",
"scope": "local",
"driver": "host",
"ipam": {
"driver": "default",
"config": []
},
"containers": {},
"options": {}
}
]
In #17481, a problem in the current implementation of
docker network inspectsurfaced:The output has all keys lowercased, e.g.
name,id. This is not in line with the output of the other inspect commands, that use capitalized keys, e.g.IdandName.This is confusing. In all outputs, IDs should be
Idand names should beName.This also complicates the implementation in #17481.
Therfore the implementation of
docker network inspectshould be changed to use the capitalized key names like defined in https://github.com/docker/docker/blob/master/api/types/types.go#L337-L345.docker inspect
docker volume inspect
docker network inspect