Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save codefromthecrypt/e19e81837f909e3762097b052e9d2b83 to your computer and use it in GitHub Desktop.
Save codefromthecrypt/e19e81837f909e3762097b052e9d2b83 to your computer and use it in GitHub Desktop.
docker inspect
$ docker inspect 97f9b5dc9c2f
[
{
"Id": "97f9b5dc9c2f850f808ffa73893e0152d543437a917bdb6d05eb6b606fe5f54c",
"Created": "2016-08-25T08:08:12.540730023Z",
"Path": "/bin/sh",
"Args": [
"-c",
"test -n \"$STORAGE_TYPE\" \u0026\u0026 source .${STORAGE_TYPE}_profile; java ${JAVA_OPTS} -cp . org.springframework.boot.loader.JarLauncher"
],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 28925,
"ExitCode": 0,
"Error": "",
"StartedAt": "2016-08-25T08:08:12.851063765Z",
"FinishedAt": "0001-01-01T00:00:00Z"
},
"Image": "sha256:7b79887e0d2709760fc31f984e3a2741844a209514a814130f4f0c789d1cc04a",
"ResolvConfPath": "/mnt/sda1/var/lib/docker/containers/97f9b5dc9c2f850f808ffa73893e0152d543437a917bdb6d05eb6b606fe5f54c/resolv.conf",
"HostnamePath": "/mnt/sda1/var/lib/docker/containers/97f9b5dc9c2f850f808ffa73893e0152d543437a917bdb6d05eb6b606fe5f54c/hostname",
"HostsPath": "/mnt/sda1/var/lib/docker/containers/97f9b5dc9c2f850f808ffa73893e0152d543437a917bdb6d05eb6b606fe5f54c/hosts",
"LogPath": "/mnt/sda1/var/lib/docker/containers/97f9b5dc9c2f850f808ffa73893e0152d543437a917bdb6d05eb6b606fe5f54c/97f9b5dc9c2f850f808ffa73893e0152d543437a917bdb6d05eb6b606fe5f54c-json.log",
"Name": "/zipkin",
"RestartCount": 0,
"Driver": "aufs",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "",
"ExecIDs": null,
"HostConfig": {
"Binds": [],
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "dockerzipkin_default",
"PortBindings": {
"9410/tcp": [
{
"HostIp": "",
"HostPort": "9410"
}
],
"9411/tcp": [
{
"HostIp": "",
"HostPort": "8080"
},
{
"HostIp": "",
"HostPort": "9411"
}
]
},
"RestartPolicy": {
"Name": "",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": [],
"CapAdd": null,
"CapDrop": null,
"Dns": null,
"DnsOptions": null,
"DnsSearch": null,
"ExtraHosts": null,
"GroupAdd": null,
"IpcMode": "",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"ConsoleSize": [
0,
0
],
"Isolation": "",
"CpuShares": 0,
"Memory": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": null,
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": null,
"DiskQuota": 0,
"KernelMemory": 0,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": -1,
"OomKillDisable": false,
"PidsLimit": 0,
"Ulimits": null,
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0
},
"GraphDriver": {
"Name": "aufs",
"Data": null
},
"Mounts": [],
"Config": {
"Hostname": "97f9b5dc9c2f",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"9410/tcp": {},
"9411/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"STORAGE_TYPE=cassandra",
"KAFKA_ZOOKEEPER=kafka-zookeeper",
"CASSANDRA_CONTACT_POINTS=cassandra",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/java/jre/bin:/usr/local/java/bin",
"JAVA_HOME=/usr/local/java",
"JRE=/usr/local/java/jre",
"JAVA_OPTS=-Djava.security.egd=file:/dev/./urandom",
"ENV=/etc/shinit.sh",
"ZIPKIN_REPO=https://jcenter.bintray.com",
"ZIPKIN_VERSION=1.7.0"
],
"Cmd": [
"/bin/sh",
"-c",
"test -n \"$STORAGE_TYPE\" \u0026\u0026 source .${STORAGE_TYPE}_profile; java ${JAVA_OPTS} -cp . org.springframework.boot.loader.JarLauncher"
],
"Image": "openzipkin/zipkin:1.7.0",
"Volumes": null,
"WorkingDir": "/zipkin",
"Entrypoint": null,
"OnBuild": null,
"Labels": {
"com.docker.compose.config-hash": "a3f397225e2b46c8c2a1d97600f83cdf74c91413bdfa24305982f5c4ac60f93e",
"com.docker.compose.container-number": "1",
"com.docker.compose.oneoff": "False",
"com.docker.compose.project": "dockerzipkin",
"com.docker.compose.service": "zipkin",
"com.docker.compose.version": "1.8.0"
}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "4869de4592f4c18a6ae57d02882df24aa38f3773b080f0e8adc407dcd66f3f41",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {
"9410/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "9410"
}
],
"9411/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "9411"
},
{
"HostIp": "0.0.0.0",
"HostPort": "8080"
}
]
},
"SandboxKey": "/var/run/docker/netns/4869de4592f4",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": "",
"Networks": {
"dockerzipkin_default": {
"IPAMConfig": null,
"Links": null,
"Aliases": [
"zipkin",
"97f9b5dc9c2f"
],
"NetworkID": "872f5e70f7c82dce251863fcca37119d635a16fb4f7b3903f7b6c4361301b47e",
"EndpointID": "c41bebe6aa9da62390192dffc50b99a359ae8c27148768d314d83d8c85915915",
"Gateway": "172.18.0.1",
"IPAddress": "172.18.0.5",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "02:42:ac:12:00:05"
}
}
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment