Advertisement
fefeh1

output from docker inspect

Jan 3rd, 2018
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.46 KB | None | 0 0
  1. ~ $ sudo docker inspect postgres
  2. [
  3. {
  4. "Id": "5c346f2a54e6d46cf4908efae50d647941cc734ccf3dfc7244840b288eff3a1a",
  5. "Created": "2018-01-03T02:47:57.104898053Z",
  6. "Path": "docker-entrypoint.sh",
  7. "Args": [
  8. "postgres"
  9. ],
  10. "State": {
  11. "Status": "running",
  12. "Running": true,
  13. "Paused": false,
  14. "Restarting": false,
  15. "OOMKilled": false,
  16. "Dead": false,
  17. "Pid": 1395,
  18. "ExitCode": 0,
  19. "Error": "",
  20. "StartedAt": "2018-01-03T20:23:42.580899722Z",
  21. "FinishedAt": "2018-01-03T06:55:11.094075838Z"
  22. },
  23. "Image": "sha256:23c1fbd604c024134f41e291293e645f1ab692088953be06121d6e8077f87e4e",
  24. "ResolvConfPath": "/var/lib/docker/containers/5c346f2a54e6d46cf4908efae50d647941cc734ccf3dfc7244840b288eff3a1a/resolv.conf",
  25. "HostnamePath": "/var/lib/docker/containers/5c346f2a54e6d46cf4908efae50d647941cc734ccf3dfc7244840b288eff3a1a/hostname",
  26. "HostsPath": "/var/lib/docker/containers/5c346f2a54e6d46cf4908efae50d647941cc734ccf3dfc7244840b288eff3a1a/hosts",
  27. "LogPath": "",
  28. "Name": "/postgres",
  29. "RestartCount": 0,
  30. "Driver": "devicemapper",
  31. "MountLabel": "system_u:object_r:svirt_sandbox_file_t:s0:c483,c996",
  32. "ProcessLabel": "system_u:system_r:svirt_lxc_net_t:s0:c483,c996",
  33. "AppArmorProfile": "",
  34. "ExecIDs": null,
  35. "HostConfig": {
  36. "Binds": null,
  37. "ContainerIDFile": "",
  38. "LogConfig": {
  39. "Type": "journald",
  40. "Config": {}
  41. },
  42. "NetworkMode": "default",
  43. "PortBindings": {
  44. "5432/tcp": [
  45. {
  46. "HostIp": "",
  47. "HostPort": "80"
  48. }
  49. ]
  50. },
  51. "RestartPolicy": {
  52. "Name": "always",
  53. "MaximumRetryCount": 0
  54. },
  55. "AutoRemove": false,
  56. "VolumeDriver": "",
  57. "VolumesFrom": null,
  58. "CapAdd": null,
  59. "CapDrop": null,
  60. "Dns": [],
  61. "DnsOptions": [],
  62. "DnsSearch": [],
  63. "ExtraHosts": null,
  64. "GroupAdd": null,
  65. "IpcMode": "",
  66. "Cgroup": "",
  67. "Links": null,
  68. "OomScoreAdj": 0,
  69. "PidMode": "",
  70. "Privileged": false,
  71. "PublishAllPorts": false,
  72. "ReadonlyRootfs": false,
  73. "SecurityOpt": null,
  74. "UTSMode": "",
  75. "UsernsMode": "",
  76. "ShmSize": 67108864,
  77. "Runtime": "docker-runc",
  78. "ConsoleSize": [
  79. 0,
  80. 0
  81. ],
  82. "Isolation": "",
  83. "CpuShares": 0,
  84. "Memory": 0,
  85. "CgroupParent": "",
  86. "BlkioWeight": 0,
  87. "BlkioWeightDevice": null,
  88. "BlkioDeviceReadBps": null,
  89. "BlkioDeviceWriteBps": null,
  90. "BlkioDeviceReadIOps": null,
  91. "BlkioDeviceWriteIOps": null,
  92. "CpuPeriod": 0,
  93. "CpuQuota": 0,
  94. "CpusetCpus": "",
  95. "CpusetMems": "",
  96. "Devices": [],
  97. "DiskQuota": 0,
  98. "KernelMemory": 0,
  99. "MemoryReservation": 0,
  100. "MemorySwap": 0,
  101. "MemorySwappiness": -1,
  102. "OomKillDisable": false,
  103. "PidsLimit": 0,
  104. "Ulimits": null,
  105. "CpuCount": 0,
  106. "CpuPercent": 0,
  107. "IOMaximumIOps": 0,
  108. "IOMaximumBandwidth": 0
  109. },
  110. "GraphDriver": {
  111. "Name": "devicemapper",
  112. "Data": {
  113. "DeviceId": "12",
  114. "DeviceName": "docker-202:1-777181-cfa253baaa10e9c336954b59094014deac37361fa2f7281f1d7d03b208e63276",
  115. "DeviceSize": "10737418240"
  116. }
  117. },
  118. "Mounts": [
  119. {
  120. "Name": "10ba20f189aad71ef3d28d46c9267735623e15a5a832a34f234b34f3a430835b",
  121. "Source": "/var/lib/docker/volumes/10ba20f189aad71ef3d28d46c9267735623e15a5a832a34f234b34f3a430835b/_data",
  122. "Destination": "/var/lib/postgresql/data",
  123. "Driver": "local",
  124. "Mode": "",
  125. "RW": true,
  126. "Propagation": ""
  127. }
  128. ],
  129. "Config": {
  130. "Hostname": "5c346f2a54e6",
  131. "Domainname": "",
  132. "User": "",
  133. "AttachStdin": false,
  134. "AttachStdout": false,
  135. "AttachStderr": false,
  136. "ExposedPorts": {
  137. "5432/tcp": {}
  138. },
  139. "Tty": false,
  140. "OpenStdin": false,
  141. "StdinOnce": false,
  142. "Env": [
  143. "POSTGRES_USER=demo",
  144. "POSTGRES_PASSWORD=password",
  145. "POSTGRES_DB=sample",
  146. "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
  147. "LANG=en_US.utf8",
  148. "PG_MAJOR=9.6",
  149. "PG_VERSION=9.6.6",
  150. "PG_SHA256=399cdffcb872f785ba67e25d275463d74521566318cfef8fe219050d063c8154",
  151. "PGDATA=/var/lib/postgresql/data"
  152. ],
  153. "Cmd": [
  154. "postgres"
  155. ],
  156. "Image": "postgres:9.6-alpine",
  157. "Volumes": {
  158. "/var/lib/postgresql/data": {}
  159. },
  160. "WorkingDir": "",
  161. "Entrypoint": [
  162. "docker-entrypoint.sh"
  163. ],
  164. "OnBuild": null,
  165. "Labels": {}
  166. },
  167. "NetworkSettings": {
  168. "Bridge": "",
  169. "SandboxID": "06028a9f57a1101c93d1d8e9f4c65b74b19194ddf78ced2469d00395031e9a0a",
  170. "HairpinMode": false,
  171. "LinkLocalIPv6Address": "",
  172. "LinkLocalIPv6PrefixLen": 0,
  173. "Ports": {
  174. "5432/tcp": [
  175. {
  176. "HostIp": "0.0.0.0",
  177. "HostPort": "80"
  178. }
  179. ]
  180. },
  181. "SandboxKey": "/var/run/docker/netns/06028a9f57a1",
  182. "SecondaryIPAddresses": null,
  183. "SecondaryIPv6Addresses": null,
  184. "EndpointID": "b739a4a1db43851858368639c8368f19f1bcb69dd18c1ce9ea7326add61062c6",
  185. "Gateway": "172.17.0.1",
  186. "GlobalIPv6Address": "",
  187. "GlobalIPv6PrefixLen": 0,
  188. "IPAddress": "172.17.0.2",
  189. "IPPrefixLen": 16,
  190. "IPv6Gateway": "",
  191. "MacAddress": "02:42:ac:11:00:02",
  192. "Networks": {
  193. "bridge": {
  194. "IPAMConfig": null,
  195. "Links": null,
  196. "Aliases": null,
  197. "NetworkID": "b1d52afbc8d2245d7f710bb7861ecad854ac31ed7f50a45cb55389e27d1cd84c",
  198. "EndpointID": "b739a4a1db43851858368639c8368f19f1bcb69dd18c1ce9ea7326add61062c6",
  199. "Gateway": "172.17.0.1",
  200. "IPAddress": "172.17.0.2",
  201. "IPPrefixLen": 16,
  202. "IPv6Gateway": "",
  203. "GlobalIPv6Address": "",
  204. "GlobalIPv6PrefixLen": 0,
  205. "MacAddress": "02:42:ac:11:00:02"
  206. }
  207. }
  208. }
  209. }
  210. ]
  211. ~ $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement