Skip to content

Instantly share code, notes, and snippets.

@seiffert
Created May 19, 2015 07:37
Show Gist options
  • Save seiffert/504b4e949b28a37a8022 to your computer and use it in GitHub Desktop.
Save seiffert/504b4e949b28a37a8022 to your computer and use it in GitHub Desktop.
Docker Inspect of AWS ECS agent container
[{
"AppArmorProfile": "",
"Args": [],
"Config": {
"AttachStderr": true,
"AttachStdin": false,
"AttachStdout": true,
"Cmd": null,
"CpuShares": 0,
"Cpuset": "",
"Domainname": "",
"Entrypoint": [
"/agent"
],
"Env": [
"ECS_CLUSTER=crims",
"ECS_DATADIR=/data/",
"ECS_CHECKPOINT=true",
"AWS_DEFAULT_REGION=eu-west-1",
"ECS_LOGFILE=/log/ecs-agent.log",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
],
"ExposedPorts": {
"51678/tcp": {}
},
"Hostname": "d2240d94af76",
"Image": "amazon/amazon-ecs-agent",
"Labels": {},
"MacAddress": "",
"Memory": 0,
"MemorySwap": 0,
"NetworkDisabled": false,
"OnBuild": null,
"OpenStdin": false,
"PortSpecs": null,
"StdinOnce": false,
"Tty": false,
"User": "",
"Volumes": null,
"WorkingDir": ""
},
"Created": "2015-05-18T22:59:54.770344134Z",
"Driver": "overlay",
"ExecDriver": "native-0.2",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"/var/run/docker.sock:/var/run/docker.sock",
"/var/log/ecs:/log",
"/var/ecs-data:/data"
],
"CapAdd": null,
"CapDrop": null,
"CgroupParent": "",
"ContainerIDFile": "",
"CpuShares": 0,
"CpusetCpus": "",
"Devices": [],
"Dns": null,
"DnsSearch": null,
"ExtraHosts": null,
"IpcMode": "",
"Links": null,
"LogConfig": {
"Config": null,
"Type": "json-file"
},
"LxcConf": [],
"Memory": 0,
"MemorySwap": 0,
"NetworkMode": "bridge",
"PidMode": "",
"PortBindings": {
"51678/tcp": [
{
"HostIp": "127.0.0.1",
"HostPort": "51678"
}
]
},
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"RestartPolicy": {
"MaximumRetryCount": 0,
"Name": "no"
},
"SecurityOpt": null,
"Ulimits": null,
"VolumesFrom": null
},
"HostnamePath": "/var/lib/docker/containers/d2240d94af760586fe35337716112adb08dbe292ea1be027c6ae21106b8d207f/hostname",
"HostsPath": "/var/lib/docker/containers/d2240d94af760586fe35337716112adb08dbe292ea1be027c6ae21106b8d207f/hosts",
"Id": "d2240d94af760586fe35337716112adb08dbe292ea1be027c6ae21106b8d207f",
"Image": "153c1961a9ce6ec9fa0b152100a7756b3d72ee3135f877249dd486aafe904bc8",
"LogPath": "/var/lib/docker/containers/d2240d94af760586fe35337716112adb08dbe292ea1be027c6ae21106b8d207f/d2240d94af760586fe35337716112adb08dbe292ea1be027c6
ae21106b8d207f-json.log",
"MountLabel": "",
"Name": "/ecs-agent",
"NetworkSettings": {
"Bridge": "docker0",
"Gateway": "172.17.42.1",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "172.17.0.1",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"LinkLocalIPv6Address": "fe80::42:acff:fe11:1",
"LinkLocalIPv6PrefixLen": 64,
"MacAddress": "02:42:ac:11:00:01",
"PortMapping": null,
"Ports": {
"51678/tcp": [
{
"HostIp": "127.0.0.1",
"HostPort": "51678"
}
]
}
},
"Path": "/agent",
"ProcessLabel": "",
"ResolvConfPath": "/var/lib/docker/containers/d2240d94af760586fe35337716112adb08dbe292ea1be027c6ae21106b8d207f/resolv.conf",
"RestartCount": 0,
"State": {
"Dead": false,
"Error": "",
"ExitCode": 0,
"FinishedAt": "0001-01-01T00:00:00Z",
"OOMKilled": false,
"Paused": false,
"Pid": 724,
"Restarting": false,
"Running": true,
"StartedAt": "2015-05-18T22:59:55.080310496Z"
},
"Volumes": {
"/data": "/var/ecs-data",
"/log": "/var/log/ecs",
"/var/run/docker.sock": "/run/docker.sock"
},
"VolumesRW": {
"/data": true,
"/log": true,
"/var/run/docker.sock": true
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment