Guest User

Untitled

a guest
Jan 5th, 2018
384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.85 KB | None | 0 0
  1. could not translate host name "dev_db" to address: Temporary failure in name resolution
  2.  
  3. docker service inspect dev_slavedb
  4. [
  5. {
  6. "ID": "flcwn7p17lgy6f9ad89iqas0e",
  7. "Version": {
  8. "Index": 68009
  9. },
  10. "CreatedAt": "2018-01-06T00:33:22.602060695Z",
  11. "UpdatedAt": "2018-01-06T00:33:22.603561612Z",
  12. "Spec": {
  13. "Name": "dev_slavedb",
  14. "Labels": {},
  15. "TaskTemplate": {
  16. "ContainerSpec": {
  17. "Image": "postgres:latest@sha256:3f4441460029e12905a5d447a3549ae2ac13323d045391b0cb0cf8b48ea17463",
  18. "Env": [
  19. "POSTGRES_USER=mydatabase",
  20. "POSTGRES_PASSWORD=mydatabase"
  21. ],
  22. "Mounts": [
  23. {
  24. "Type": "volume",
  25. "Source": "slave_postgres",
  26. "Target": "/var/lib/postgresql/data"
  27. }
  28. ],
  29. "StopGracePeriod": 10000000000,
  30. "DNSConfig": {}
  31. },
  32. "Resources": {
  33. "Limits": {},
  34. "Reservations": {}
  35. },
  36. "RestartPolicy": {
  37. "Condition": "any",
  38. "Delay": 5000000000,
  39. "MaxAttempts": 0
  40. },
  41. "Placement": {
  42. "Constraints": [
  43. "node.hostname==swarm02"
  44. ],
  45. "Platforms": [
  46. {
  47. "Architecture": "amd64",
  48. "OS": "linux"
  49. },
  50. {
  51. "OS": "linux"
  52. },
  53. {
  54. "OS": "linux"
  55. },
  56. {
  57. "Architecture": "arm64",
  58. "OS": "linux"
  59. },
  60. {
  61. "Architecture": "386",
  62. "OS": "linux"
  63. },
  64. {
  65. "Architecture": "ppc64le",
  66. "OS": "linux"
  67. },
  68. {
  69. "Architecture": "s390x",
  70. "OS": "linux"
  71. }
  72. ]
  73. },
  74. "Networks": [
  75. {
  76. "Target": "hh8zmhc9gx0p9iwukozo31dgs"
  77. }
  78. ],
  79. "ForceUpdate": 0,
  80. "Runtime": "container"
  81. },
  82. "Mode": {
  83. "Replicated": {
  84. "Replicas": 1
  85. }
  86. },
  87. "UpdateConfig": {
  88. "Parallelism": 1,
  89. "FailureAction": "pause",
  90. "Monitor": 5000000000,
  91. "MaxFailureRatio": 0,
  92. "Order": "stop-first"
  93. },
  94. "RollbackConfig": {
  95. "Parallelism": 1,
  96. "FailureAction": "pause",
  97. "Monitor": 5000000000,
  98. "MaxFailureRatio": 0,
  99. "Order": "stop-first"
  100. },
  101. "EndpointSpec": {
  102. "Mode": "vip",
  103. "Ports": [
  104. {
  105. "Protocol": "tcp",
  106. "TargetPort": 5432,
  107. "PublishedPort": 5432,
  108. "PublishMode": "host"
  109. }
  110. ]
  111. }
  112. },
  113. "Endpoint": {
  114. "Spec": {
  115. "Mode": "vip",
  116. "Ports": [
  117. {
  118. "Protocol": "tcp",
  119. "TargetPort": 5432,
  120. "PublishedPort": 5432,
  121. "PublishMode": "host"
  122. }
  123. ]
  124. },
  125. "Ports": [
  126. {
  127. "Protocol": "tcp",
  128. "TargetPort": 5432,
  129. "PublishedPort": 5432,
  130. "PublishMode": "host"
  131. }
  132. ],
  133. "VirtualIPs": [
  134. {
  135. "NetworkID": "hh8zmhc9gx0p9iwukozo31dgs",
  136. "Addr": "10.0.0.4/24"
  137. }
  138. ]
  139. }
  140. }
  141. ]
  142.  
  143.  
  144.  
  145.  
  146.  
  147. docker service inspect dev_db
  148. [
  149. {
  150. "ID": "jqwmzoe57lonbr0wwnp262x9i",
  151. "Version": {
  152. "Index": 68001
  153. },
  154. "CreatedAt": "2018-01-06T00:30:50.284998521Z",
  155. "UpdatedAt": "2018-01-06T00:30:50.285963303Z",
  156. "Spec": {
  157. "Name": "dev_db",
  158. "Labels": {},
  159. "TaskTemplate": {
  160. "ContainerSpec": {
  161. "Image": "postgres:latest@sha256:3f4441460029e12905a5d447a3549ae2ac13323d045391b0cb0cf8b48ea17463",
  162. "Env": [
  163. "POSTGRES_USER=mydatabase",
  164. "POSTGRES_PASSWORD=mydatabase"
  165. ],
  166. "Mounts": [
  167. {
  168. "Type": "volume",
  169. "Source": "postgres",
  170. "Target": "/var/lib/postgresql/data"
  171. }
  172. ],
  173. "StopGracePeriod": 10000000000,
  174. "DNSConfig": {}
  175. },
  176. "Resources": {
  177. "Limits": {},
  178. "Reservations": {}
  179. },
  180. "RestartPolicy": {
  181. "Condition": "any",
  182. "Delay": 5000000000,
  183. "MaxAttempts": 0
  184. },
  185. "Placement": {
  186. "Constraints": [
  187. "node.hostname==swarm01"
  188. ],
  189. "Platforms": [
  190. {
  191. "Architecture": "amd64",
  192. "OS": "linux"
  193. },
  194. {
  195. "OS": "linux"
  196. },
  197. {
  198. "OS": "linux"
  199. },
  200. {
  201. "Architecture": "arm64",
  202. "OS": "linux"
  203. },
  204. {
  205. "Architecture": "386",
  206. "OS": "linux"
  207. },
  208. {
  209. "Architecture": "ppc64le",
  210. "OS": "linux"
  211. },
  212. {
  213. "Architecture": "s390x",
  214. "OS": "linux"
  215. }
  216. ]
  217. },
  218. "Networks": [
  219. {
  220. "Target": "hh8zmhc9gx0p9iwukozo31dgs"
  221. }
  222. ],
  223. "ForceUpdate": 0,
  224. "Runtime": "container"
  225. },
  226. "Mode": {
  227. "Replicated": {
  228. "Replicas": 1
  229. }
  230. },
  231. "UpdateConfig": {
  232. "Parallelism": 1,
  233. "FailureAction": "pause",
  234. "Monitor": 5000000000,
  235. "MaxFailureRatio": 0,
  236. "Order": "stop-first"
  237. },
  238. "RollbackConfig": {
  239. "Parallelism": 1,
  240. "FailureAction": "pause",
  241. "Monitor": 5000000000,
  242. "MaxFailureRatio": 0,
  243. "Order": "stop-first"
  244. },
  245. "EndpointSpec": {
  246. "Mode": "vip",
  247. "Ports": [
  248. {
  249. "Protocol": "tcp",
  250. "TargetPort": 5432,
  251. "PublishedPort": 5432,
  252. "PublishMode": "host"
  253. }
  254. ]
  255. }
  256. },
  257. "Endpoint": {
  258. "Spec": {
  259. "Mode": "vip",
  260. "Ports": [
  261. {
  262. "Protocol": "tcp",
  263. "TargetPort": 5432,
  264. "PublishedPort": 5432,
  265. "PublishMode": "host"
  266. }
  267. ]
  268. },
  269. "Ports": [
  270. {
  271. "Protocol": "tcp",
  272. "TargetPort": 5432,
  273. "PublishedPort": 5432,
  274. "PublishMode": "host"
  275. }
  276. ],
  277. "VirtualIPs": [
  278. {
  279. "NetworkID": "hh8zmhc9gx0p9iwukozo31dgs",
  280. "Addr": "10.0.0.2/24"
  281. }
  282. ]
  283. }
  284. }
  285. ]
Add Comment
Please, Sign In to add comment