Skip to content

Instantly share code, notes, and snippets.

@atrauzzi
Created November 6, 2015 05:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atrauzzi/8ca2d0b41c7852907fdd to your computer and use it in GitHub Desktop.
Save atrauzzi/8ca2d0b41c7852907fdd to your computer and use it in GitHub Desktop.
Inspect output for docker/compose #2301
[
{
"Id": "7b8796b753d4701fcc12657fcbafa467c4cca5d8a7b18163a52829157b91f44f",
"Created": "2015-11-06T11:28:42.002941793Z",
"Path": "/docker-entrypoint.sh",
"Args": [
"elasticsearch"
],
"State": {
"Status": "created",
"Running": false,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 0,
"ExitCode": -1,
"Error": "[8] System error: no such file or directory",
"StartedAt": "0001-01-01T00:00:00Z",
"FinishedAt": "0001-01-01T00:00:00Z"
},
"Image": "8112755253f10ef7d00f5cfeb835580d664e4a6b5da5d5efda0f402efd903af0",
"ResolvConfPath": "/mnt/sda1/var/lib/docker/containers/7b8796b753d4701fcc12657fcbafa467c4cca5d8a7b18163a52829157b91f44f/resolv.conf",
"HostnamePath": "/mnt/sda1/var/lib/docker/containers/7b8796b753d4701fcc12657fcbafa467c4cca5d8a7b18163a52829157b91f44f/hostname",
"HostsPath": "/mnt/sda1/var/lib/docker/containers/7b8796b753d4701fcc12657fcbafa467c4cca5d8a7b18163a52829157b91f44f/hosts",
"LogPath": "/mnt/sda1/var/lib/docker/containers/7b8796b753d4701fcc12657fcbafa467c4cca5d8a7b18163a52829157b91f44f/7b8796b753d4701fcc12657fcbafa467c4cca5d8a7b18163a52829157b91f44f-json.log",
"Name": "/project_dev_search",
"RestartCount": 0,
"Driver": "aufs",
"ExecDriver": "native-0.2",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"/c/Users/atrauzzi/Development/project/elasticsearch/docker-entrypoint.sh:/docker-entrypoint.sh:rw",
"/c/Users/atrauzzi/Development/project/elasticsearch/data:/usr/share/elasticsearch/data:rw",
"/c/Users/atrauzzi/Development/project/elasticsearch/config:/usr/share/elasticsearch/config:rw"
],
"ContainerIDFile": "",
"LxcConf": null,
"Memory": 0,
"MemoryReservation": 0,
"MemorySwap": 0,
"KernelMemory": 0,
"CpuShares": 0,
"CpuPeriod": 0,
"CpusetCpus": "",
"CpusetMems": "",
"CpuQuota": 0,
"BlkioWeight": 0,
"OomKillDisable": false,
"MemorySwappiness": null,
"Privileged": false,
"PortBindings": {
"9200/tcp": [
{
"HostIp": "",
"HostPort": "9200"
}
],
"9300/tcp": [
{
"HostIp": "",
"HostPort": "9300"
}
]
},
"Links": null,
"PublishAllPorts": false,
"Dns": null,
"DnsOptions": null,
"DnsSearch": null,
"ExtraHosts": [],
"VolumesFrom": [],
"Devices": null,
"NetworkMode": "default",
"IpcMode": "",
"PidMode": "",
"UTSMode": "",
"CapAdd": null,
"CapDrop": null,
"GroupAdd": null,
"RestartPolicy": {
"Name": "",
"MaximumRetryCount": 0
},
"SecurityOpt": null,
"ReadonlyRootfs": false,
"Ulimits": null,
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"CgroupParent": "",
"ConsoleSize": [
0,
0
],
"VolumeDriver": ""
},
"GraphDriver": {
"Name": "aufs",
"Data": null
},
"Mounts": [
{
"Source": "/c/Users/atrauzzi/Development/project/elasticsearch/docker-entrypoint.sh",
"Destination": "/docker-entrypoint.sh",
"Mode": "rw",
"RW": true
},
{
"Source": "/c/Users/atrauzzi/Development/project/elasticsearch/data",
"Destination": "/usr/share/elasticsearch/data",
"Mode": "rw",
"RW": true
},
{
"Source": "/c/Users/atrauzzi/Development/project/elasticsearch/config",
"Destination": "/usr/share/elasticsearch/config",
"Mode": "rw",
"RW": true
}
],
"Config": {
"Hostname": "7b8796b753d4",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/share/elasticsearch/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"LANG=C.UTF-8",
"JAVA_VERSION=8u66",
"JAVA_DEBIAN_VERSION=8u66-b17-1~bpo8+1",
"CA_CERTIFICATES_JAVA_VERSION=20140324",
"ELASTICSEARCH_MAJOR=2.0",
"ELASTICSEARCH_VERSION=2.0.0",
"ELASTICSEARCH_REPO_BASE=http://packages.elasticsearch.org/elasticsearch/2.x/debian"
],
"Cmd": [
"elasticsearch"
],
"Image": "elasticsearch",
"Volumes": {
"/docker-entrypoint.sh": {},
"/usr/share/elasticsearch/config": {},
"/usr/share/elasticsearch/data": {}
},
"WorkingDir": "",
"Entrypoint": [
"/docker-entrypoint.sh"
],
"OnBuild": null,
"Labels": {
"com.docker.compose.config-hash": "e72f273a6b809256acdfbc09a0ef6d2a873dcd1b3b4b6a74ed74ad24f53147d9",
"com.docker.compose.container-number": "1",
"com.docker.compose.oneoff": "False",
"com.docker.compose.project": "project",
"com.docker.compose.service": "search",
"com.docker.compose.version": "1.6.0dev"
},
"MacAddress": "",
"NetworkDisabled": false,
"ExposedPorts": {
"9200/tcp": {},
"9300/tcp": {}
},
"VolumeDriver": ""
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": null,
"SandboxKey": "",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": ""
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment