v1

latestOpenAPI 3.0.02026-07-1410578280.2 KB
Container

Inspect a container

Return low-level information about a container.

get/containers/{id}/json

Path parameters

idstring required

ID or name of the container

Query parameters

sizeboolean

Return the size of container as fields SizeRw and SizeRootFs

Response

no error

AppArmorProfilestring
Argsstring[]

The arguments to the command being run

Createdstring

The time the container was created

Driverstring
ExecIDsstring
HostnamePathstring
HostsPathstring
Idstring

The ID of the container

Imagestring

The container's image

LogPathstring
MountLabelstring
Namestring
Nodeobject

TODO

Pathstring

The path to the command being run

ProcessLabelstring
ResolvConfPathstring
RestartCountinteger
SizeRootFsinteger

The total size of all the files in this container.

SizeRwinteger

The size of files that have been created or changed by this container.

Example response

{
  "HostConfig": {
    "CpusetCpus": "0-3",
    "DeviceCgroupRules": [
      "c 13:* rwm"
    ],
    "Devices": [
      {
        "CgroupPermissions": "mrw",
        "PathInContainer": "/dev/deviceName",
        "PathOnHost": "/dev/deviceName"
      }
    ],
    "OomScoreAdj": 500
  },
  "NetworkSettings": {
    "Bridge": "docker0",
    "EndpointID": "b88f5b905aabf2893f3cbc4ee42d1ea7980bbc0a92e2c8922b1e1795298afb0b",
    "Gateway": "172.17.0.1",
    "GlobalIPv6Address": "2001:db8::5689",
    "GlobalIPv6PrefixLen": 64,
    "IPAddress": "172.17.0.4",
    "IPPrefixLen": 16,
    "IPv6Gateway": "2001:db8:2::100",
    "LinkLocalIPv6Address": "fe80::42:acff:fe11:1",
    "MacAddress": "02:42:ac:11:00:04",
    "Ports": {
      "2377/tcp": null,
      "443/tcp": [
        {
          "HostIp": "127.0.0.1",
          "HostPort": "4443"
        }
      ],
      "53/udp": [
        {
          "HostIp": "0.0.0.0",
          "HostPort": "53"
        }
      ],
      "80/tcp": [
        {
          "HostIp": "0.0.0.0",
          "HostPort": "80"
        },
        {
          "HostIp": "0.0.0.0",
          "HostPort": "8080"
        }
      ],
      "80/udp": [
        {
          "HostIp": "0.0.0.0",
          "HostPort": "80"
        }
      ]
    },
    "SandboxID": "9d12daf2c33f5959c8bf90aa513e4f65b561738661003029ec84830cd503a0c3",
    "SandboxKey": "/var/run/docker/netns/8ab54b426c38"
  }
}