Skip to content

Instantly share code, notes, and snippets.

@pythianliappis
Created October 24, 2014 18:12
Show Gist options
  • Save pythianliappis/51db463731cbaa1f2901 to your computer and use it in GitHub Desktop.
Save pythianliappis/51db463731cbaa1f2901 to your computer and use it in GitHub Desktop.
docker inspect output from deploying redis
[{
"Args": [
"--dir",
"/redis-data"
],
"Config": {
"AttachStderr": false,
"AttachStdin": false,
"AttachStdout": false,
"Cmd": [
"--dir",
"/redis-data"
],
"CpuShares": 0,
"Cpuset": "",
"Domainname": "",
"Entrypoint": [
"/redis-stable/src/redis-server"
],
"Env": [
"_citadel_type=service",
"_citadel_labels=consul",
"HOME=/",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
],
"ExposedPorts": {
"6379/tcp": {}
},
"Hostname": "4158db669660",
"Image": "dockerfiles/redis",
"Memory": 0,
"MemorySwap": 0,
"NetworkDisabled": false,
"OnBuild": null,
"OpenStdin": false,
"PortSpecs": null,
"StdinOnce": false,
"Tty": false,
"User": "",
"Volumes": {
"/redis-data": {}
},
"WorkingDir": ""
},
"Created": "2014-10-24T17:21:13.753399291Z",
"Driver": "devicemapper",
"ExecDriver": "native-0.2",
"HostConfig": {
"Binds": [],
"ContainerIDFile": "",
"Dns": null,
"DnsSearch": null,
"Links": null,
"LxcConf": null,
"NetworkMode": "",
"PortBindings": {
"6379/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "49153"
}
]
},
"Privileged": false,
"PublishAllPorts": true,
"VolumesFrom": null
},
"HostnamePath": "/var/lib/docker/containers/4158db669660128d61332e39900b88af6e3742b1ccc871555159d3267868e6d7/hostname",
"HostsPath": "/var/lib/docker/containers/4158db669660128d61332e39900b88af6e3742b1ccc871555159d3267868e6d7/hosts",
"Id": "4158db669660128d61332e39900b88af6e3742b1ccc871555159d3267868e6d7",
"Image": "c3a7e9d54375e2edc3675a65033e75046e1e8eb2a0f9286f0751ec6b4ed16417",
"MountLabel": "",
"Name": "/goofy_darwin",
"NetworkSettings": {
"Bridge": "docker0",
"Gateway": "172.17.42.1",
"IPAddress": "172.17.0.51",
"IPPrefixLen": 16,
"PortMapping": null,
"Ports": {
"6379/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "49153"
}
]
}
},
"Path": "/redis-stable/src/redis-server",
"ProcessLabel": "",
"ResolvConfPath": "/var/lib/docker/containers/4158db669660128d61332e39900b88af6e3742b1ccc871555159d3267868e6d7/resolv.conf",
"State": {
"ExitCode": 0,
"FinishedAt": "0001-01-01T00:00:00Z",
"Paused": false,
"Pid": 19984,
"Running": true,
"StartedAt": "2014-10-24T17:21:14.10229267Z"
},
"Volumes": {
"/redis-data": "/var/lib/docker/vfs/dir/fc5185e81333f28b4cc578b86d9be2dac5a3e8e353492f93b4d89cf2df746bc3"
},
"VolumesRW": {
"/redis-data": true
}
}
]
[{
"Args": [
"--dir",
"/redis-data"
],
"Config": {
"AttachStderr": false,
"AttachStdin": false,
"AttachStdout": false,
"Cmd": [
"--dir",
"/redis-data"
],
"CpuShares": 10,
"Cpuset": "",
"Domainname": "",
"Entrypoint": [
"/redis-stable/src/redis-server"
],
"Env": [
"_citadel_type=service",
"_citadel_labels=consul",
"HOME=/",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
],
"ExposedPorts": {
"6379/tcp": {}
},
"Hostname": "7c8c5b2906be",
"Image": "dockerfiles/redis",
"Memory": 1.00663296e+08,
"MemorySwap": -1,
"NetworkDisabled": false,
"OnBuild": null,
"OpenStdin": false,
"PortSpecs": null,
"StdinOnce": false,
"Tty": false,
"User": "",
"Volumes": {
"/redis-data": {}
},
"WorkingDir": ""
},
"Created": "2014-10-24T18:11:08.446107214Z",
"Driver": "devicemapper",
"ExecDriver": "native-0.2",
"HostConfig": {
"Binds": [],
"ContainerIDFile": "",
"Dns": null,
"DnsSearch": null,
"Links": null,
"LxcConf": null,
"NetworkMode": "",
"PortBindings": {
"6379/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "49153"
}
]
},
"Privileged": false,
"PublishAllPorts": true,
"VolumesFrom": null
},
"HostnamePath": "/var/lib/docker/containers/7c8c5b2906be87cd46d6f39a39898d45d57512aa98c33371f9b8a6f824f96bcc/hostname",
"HostsPath": "/var/lib/docker/containers/7c8c5b2906be87cd46d6f39a39898d45d57512aa98c33371f9b8a6f824f96bcc/hosts",
"Id": "7c8c5b2906be87cd46d6f39a39898d45d57512aa98c33371f9b8a6f824f96bcc",
"Image": "c3a7e9d54375e2edc3675a65033e75046e1e8eb2a0f9286f0751ec6b4ed16417",
"MountLabel": "",
"Name": "/dreamy_pare",
"NetworkSettings": {
"Bridge": "docker0",
"Gateway": "172.17.42.1",
"IPAddress": "172.17.0.52",
"IPPrefixLen": 16,
"PortMapping": null,
"Ports": {
"6379/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "49153"
}
]
}
},
"Path": "/redis-stable/src/redis-server",
"ProcessLabel": "",
"ResolvConfPath": "/var/lib/docker/containers/7c8c5b2906be87cd46d6f39a39898d45d57512aa98c33371f9b8a6f824f96bcc/resolv.conf",
"State": {
"ExitCode": 0,
"FinishedAt": "0001-01-01T00:00:00Z",
"Paused": false,
"Pid": 20115,
"Running": true,
"StartedAt": "2014-10-24T18:11:08.922503129Z"
},
"Volumes": {
"/redis-data": "/var/lib/docker/vfs/dir/93394ee74d0d49bd0008e160dffb3c58c6f553cd18274b7c0a74080cb28e7738"
},
"VolumesRW": {
"/redis-data": true
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment