Skip to content

Instantly share code, notes, and snippets.

@fenxiong
Created October 22, 2019 18:28
Show Gist options
  • Save fenxiong/5c69e987a5b89e3fd4985d1077942384 to your computer and use it in GitHub Desktop.
Save fenxiong/5c69e987a5b89e3fd4985d1077942384 to your computer and use it in GitHub Desktop.
test-cadvisor-inspect
[
{
"Id": "8876a57a1add328c1ef0aacf98833e777a97cbe1c45b4c229b308ed6f5a3b394",
"Created": "2019-10-22T18:22:40.95550303Z",
"Path": "/usr/bin/cadvisor",
"Args": [
"-logtostderr"
],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 29797,
"ExitCode": 0,
"Error": "",
"StartedAt": "2019-10-22T18:22:41.320251767Z",
"FinishedAt": "0001-01-01T00:00:00Z",
"Health": {
"Status": "healthy",
"FailingStreak": 0,
"Log": [
{
"Start": "2019-10-22T18:23:11.320470536Z",
"End": "2019-10-22T18:23:11.377313755Z",
"ExitCode": 0,
"Output": " % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\r100 2 100 2 0 0 2000 0 --:--:-- --:--:-- --:--:-- 2000\nok"
}
]
}
},
"Image": "sha256:752d61707eac173cfe56a23aa9de051597444286163667d60f8e6d4c63306472",
"ResolvConfPath": "/var/lib/docker/containers/8876a57a1add328c1ef0aacf98833e777a97cbe1c45b4c229b308ed6f5a3b394/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/8876a57a1add328c1ef0aacf98833e777a97cbe1c45b4c229b308ed6f5a3b394/hostname",
"HostsPath": "/var/lib/docker/containers/8876a57a1add328c1ef0aacf98833e777a97cbe1c45b4c229b308ed6f5a3b394/hosts",
"LogPath": "/var/lib/docker/containers/8876a57a1add328c1ef0aacf98833e777a97cbe1c45b4c229b308ed6f5a3b394/8876a57a1add328c1ef0aacf98833e777a97cbe1c45b4c229b308ed6f5a3b394-json.log",
"Name": "/ecs-test-cadvisor-7-cad-94ecacad8c85b48adb01",
"RestartCount": 0,
"Driver": "overlay2",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"/:/rootfs:ro",
"/var/run:/var/run:ro",
"/sys:/sys:ro",
"/var/lib/docker:/var/lib/docker:ro",
"/dev/disk:/dev/disk:ro"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "default",
"PortBindings": {
"8080/tcp": [
{
"HostIp": "",
"HostPort": "8080"
}
]
},
"RestartPolicy": {
"Name": "",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": [],
"CapAdd": [],
"CapDrop": [],
"Dns": [],
"DnsOptions": null,
"DnsSearch": [],
"ExtraHosts": [],
"GroupAdd": null,
"IpcMode": "shareable",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": true,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": [
"label=disable"
],
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"ConsoleSize": [
0,
0
],
"Isolation": "",
"CpuShares": 128,
"Memory": 0,
"NanoCpus": 0,
"CgroupParent": "/ecs/test-cadvisor/ac4a469132ae440bb73a8741db96db4b",
"BlkioWeight": 0,
"BlkioWeightDevice": null,
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": null,
"DeviceCgroupRules": null,
"DiskQuota": 0,
"KernelMemory": 0,
"MemoryReservation": 536870912,
"MemorySwap": 0,
"MemorySwappiness": null,
"OomKillDisable": false,
"PidsLimit": 0,
"Ulimits": [
{
"Name": "nofile",
"Hard": 4096,
"Soft": 1024
}
],
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0,
"MaskedPaths": null,
"ReadonlyPaths": null
},
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/ea5dca3a8c018dec50e27a2f606dcc05873f34d61d1f2e6621946f2e8a6cf646-init/diff:/var/lib/docker/overlay2/d3ccbfa623bf25247bfe221706c2d6c12a2186697be3ecda23a298bf1b9e514c/diff:/var/lib/docker/overlay2/edbcf8be9121a61b843b7dd3712ebd6268aba35af4a75d972f4c904820329db4/diff:/var/lib/docker/overlay2/d4dfe5f9d7b43dd3279999f4c0af1776a67864a4385b5fc6584a04c61ced092d/diff",
"MergedDir": "/var/lib/docker/overlay2/ea5dca3a8c018dec50e27a2f606dcc05873f34d61d1f2e6621946f2e8a6cf646/merged",
"UpperDir": "/var/lib/docker/overlay2/ea5dca3a8c018dec50e27a2f606dcc05873f34d61d1f2e6621946f2e8a6cf646/diff",
"WorkDir": "/var/lib/docker/overlay2/ea5dca3a8c018dec50e27a2f606dcc05873f34d61d1f2e6621946f2e8a6cf646/work"
},
"Name": "overlay2"
},
"Mounts": [
{
"Type": "bind",
"Source": "/",
"Destination": "/rootfs",
"Mode": "ro",
"RW": false,
"Propagation": "rslave"
},
{
"Type": "bind",
"Source": "/var/run",
"Destination": "/var/run",
"Mode": "ro",
"RW": false,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/sys",
"Destination": "/sys",
"Mode": "ro",
"RW": false,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/var/lib/docker",
"Destination": "/var/lib/docker",
"Mode": "ro",
"RW": false,
"Propagation": "rslave"
},
{
"Type": "bind",
"Source": "/dev/disk",
"Destination": "/dev/disk",
"Mode": "ro",
"RW": false,
"Propagation": "rprivate"
}
],
"Config": {
"Hostname": "8876a57a1add",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"8080/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"AWS_EXECUTION_ENV=AWS_ECS_EC2",
"ECS_CONTAINER_METADATA_URI=http://169.254.170.2/v3/24a320f8-ff6d-48a3-b325-25ffc499b1a7",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"GLIBC_VERSION=2.28-r0"
],
"Cmd": null,
"Healthcheck": {
"Test": [
"CMD-SHELL",
"curl -f http://localhost:8080/healthz || exit 1"
],
"Interval": 30000000000,
"Timeout": 3000000000
},
"ArgsEscaped": true,
"Image": "google/cadvisor:v0.33.0",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": [
"/usr/bin/cadvisor",
"-logtostderr"
],
"OnBuild": null,
"Labels": {
"com.amazonaws.ecs.cluster": "test-cadvisor",
"com.amazonaws.ecs.container-name": "cad",
"com.amazonaws.ecs.task-arn": "arn:aws:ecs:us-west-2:1234567890:task/test-cadvisor/ac4a469132ae440bb73a8741db96db4b",
"com.amazonaws.ecs.task-definition-family": "test-cadvisor",
"com.amazonaws.ecs.task-definition-version": "7"
}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "ff8b04e5249e9e7ae6c541913f63bc9751a695a74eb9862c61285a11684875a9",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {
"8080/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "8080"
}
]
},
"SandboxKey": "/var/run/docker/netns/ff8b04e5249e",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "b7a31462e0a1cc9474f91ffd895c74a90eed3a356dd7393c6c770c59a2892a60",
"Gateway": "172.17.0.1",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "172.17.0.2",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"MacAddress": "02:42:ac:11:00:02",
"Networks": {
"bridge": {
"IPAMConfig": null,
"Links": null,
"Aliases": null,
"NetworkID": "1fae5937b937dc666a4feaf5486fe2b883eddfcf2bd47dbe60a3629205cf57c4",
"EndpointID": "b7a31462e0a1cc9474f91ffd895c74a90eed3a356dd7393c6c770c59a2892a60",
"Gateway": "172.17.0.1",
"IPAddress": "172.17.0.2",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "02:42:ac:11:00:02",
"DriverOpts": null
}
}
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment