Skip to content

Instantly share code, notes, and snippets.

@soltysh
Created February 28, 2017 20:56
Show Gist options
  • Save soltysh/b4d862afa8adcc7f28bb123060d96216 to your computer and use it in GitHub Desktop.
Save soltysh/b4d862afa8adcc7f28bb123060d96216 to your computer and use it in GitHub Desktop.
$ docker inspect k8s_hello.883a8857_hello-1-xmbfn_test_09c33e62-fdf8-11e6-b733-525400f25e34_83f3eb86
[
{
"Id": "1af818d739c90a76f233175ebafe097be71f476f4ed07166e86ad753dc141244",
"Created": "2017-02-28T20:54:59.744783438Z",
"Path": "/hello-openshift",
"Args": [],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 1745,
"ExitCode": 0,
"Error": "",
"StartedAt": "2017-02-28T20:55:00.302402402Z",
"FinishedAt": "0001-01-01T00:00:00Z"
},
"Image": "sha256:bfb70e2284d2bd4c93e6194e0dfd044bcd29ab7cd7473ae38363eaef61a475a5",
"ResolvConfPath": "/var/lib/docker/containers/dcee7dfd1389337cfabec67aa3436a0b9cee8d49b8782871dd7da62f40beae7c/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/dcee7dfd1389337cfabec67aa3436a0b9cee8d49b8782871dd7da62f40beae7c/hostname",
"HostsPath": "/home/vagrant/openshift.local.volumes/pods/09c33e62-fdf8-11e6-b733-525400f25e34/etc-hosts",
"LogPath": "",
"Name": "/k8s_hello.883a8857_hello-1-xmbfn_test_09c33e62-fdf8-11e6-b733-525400f25e34_83f3eb86",
"RestartCount": 0,
"Driver": "devicemapper",
"MountLabel": "system_u:object_r:container_file_t:s0:c6,c5",
"ProcessLabel": "system_u:system_r:container_t:s0:c6,c5",
"AppArmorProfile": "",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"/home/vagrant/openshift.local.volumes/pods/09c33e62-fdf8-11e6-b733-525400f25e34/volumes/kubernetes.io~secret/default-token-j7rf8:/var/run/secrets/kubernetes.io/serviceaccount:ro,Z",
"/home/vagrant/openshift.local.volumes/pods/09c33e62-fdf8-11e6-b733-525400f25e34/etc-hosts:/etc/hosts:Z",
"/home/vagrant/openshift.local.volumes/pods/09c33e62-fdf8-11e6-b733-525400f25e34/containers/hello/83f3eb86:/dev/termination-log:Z"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "journald",
"Config": {}
},
"NetworkMode": "container:dcee7dfd1389337cfabec67aa3436a0b9cee8d49b8782871dd7da62f40beae7c",
"PortBindings": null,
"RestartPolicy": {
"Name": "",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"CapAdd": null,
"CapDrop": [
"KILL",
"MKNOD",
"SETGID",
"SETUID",
"SYS_CHROOT"
],
"Dns": null,
"DnsOptions": null,
"DnsSearch": null,
"ExtraHosts": null,
"GroupAdd": [
"1000040000"
],
"IpcMode": "container:dcee7dfd1389337cfabec67aa3436a0b9cee8d49b8782871dd7da62f40beae7c",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 1000,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": [
"seccomp=unconfined",
"label=level:s0:c6,c5",
"label=user:system_u",
"label=role:system_r",
"label=type:container_t",
"label=level:s0:c6,c5"
],
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "oci",
"ConsoleSize": [
0,
0
],
"Isolation": "",
"CpuShares": 2,
"Memory": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": null,
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": [],
"DiskQuota": 0,
"KernelMemory": 0,
"MemoryReservation": 0,
"MemorySwap": -1,
"MemorySwappiness": -1,
"OomKillDisable": false,
"PidsLimit": 0,
"Ulimits": null,
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0
},
"GraphDriver": {
"Name": "devicemapper",
"Data": {
"DeviceId": "15337",
"DeviceName": "docker-253:1-1569815-27e14926d1537c9f183418e49f94b2a6d503b34a9dec83e166fe0371c5294c0d",
"DeviceSize": "10737418240"
}
},
"Mounts": [
{
"Source": "/home/vagrant/openshift.local.volumes/pods/09c33e62-fdf8-11e6-b733-525400f25e34/volumes/kubernetes.io~secret/default-token-j7rf8",
"Destination": "/var/run/secrets/kubernetes.io/serviceaccount",
"Mode": "ro,Z",
"RW": false,
"Propagation": "rprivate"
},
{
"Source": "/home/vagrant/openshift.local.volumes/pods/09c33e62-fdf8-11e6-b733-525400f25e34/etc-hosts",
"Destination": "/etc/hosts",
"Mode": "Z",
"RW": true,
"Propagation": "rprivate"
},
{
"Source": "/home/vagrant/openshift.local.volumes/pods/09c33e62-fdf8-11e6-b733-525400f25e34/containers/hello/83f3eb86",
"Destination": "/dev/termination-log",
"Mode": "Z",
"RW": true,
"Propagation": "rprivate"
}
],
"Config": {
"Hostname": "hello-1-xmbfn",
"Domainname": "",
"User": "1000040000",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"8080/tcp": {},
"8888/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"KUBERNETES_PORT_53_UDP_ADDR=172.30.0.1",
"KUBERNETES_SERVICE_PORT_DNS=53",
"KUBERNETES_PORT_443_TCP_ADDR=172.30.0.1",
"KUBERNETES_SERVICE_PORT_DNS_TCP=53",
"KUBERNETES_PORT_443_TCP=tcp://172.30.0.1:443",
"KUBERNETES_PORT_53_UDP_PROTO=udp",
"KUBERNETES_PORT_53_TCP=tcp://172.30.0.1:53",
"KUBERNETES_SERVICE_PORT=443",
"KUBERNETES_SERVICE_PORT_HTTPS=443",
"KUBERNETES_PORT_443_TCP_PROTO=tcp",
"KUBERNETES_PORT_443_TCP_PORT=443",
"KUBERNETES_PORT_53_UDP_PORT=53",
"KUBERNETES_PORT_53_TCP_PROTO=tcp",
"KUBERNETES_PORT_53_TCP_PORT=53",
"KUBERNETES_SERVICE_HOST=172.30.0.1",
"KUBERNETES_PORT=tcp://172.30.0.1:443",
"KUBERNETES_PORT_53_UDP=udp://172.30.0.1:53",
"KUBERNETES_PORT_53_TCP_ADDR=172.30.0.1",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
],
"Cmd": null,
"Image": "openshift/hello-openshift",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": [
"/hello-openshift"
],
"OnBuild": null,
"Labels": {
"io.kubernetes.container.hash": "883a8857",
"io.kubernetes.container.name": "hello",
"io.kubernetes.container.restartCount": "0",
"io.kubernetes.container.terminationMessagePath": "/dev/termination-log",
"io.kubernetes.pod.name": "hello-1-xmbfn",
"io.kubernetes.pod.namespace": "test",
"io.kubernetes.pod.terminationGracePeriod": "30",
"io.kubernetes.pod.uid": "09c33e62-fdf8-11e6-b733-525400f25e34"
}
},
"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": "",
"Networks": null
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment