docker-engine-ruby 0.2.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (289) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/docker_engine_ruby/models/config.rb +6 -6
  5. data/lib/docker_engine_ruby/models/config_create_params.rb +1 -11
  6. data/lib/docker_engine_ruby/models/config_list_params.rb +1 -14
  7. data/lib/docker_engine_ruby/models/config_update_params.rb +1 -7
  8. data/lib/docker_engine_ruby/models/connect_request.rb +5 -5
  9. data/lib/docker_engine_ruby/models/container.rb +61 -143
  10. data/lib/docker_engine_ruby/models/container_archive_params.rb +1 -3
  11. data/lib/docker_engine_ruby/models/container_attach_params.rb +6 -29
  12. data/lib/docker_engine_ruby/models/container_create_params.rb +3 -1701
  13. data/lib/docker_engine_ruby/models/container_delete_params.rb +3 -9
  14. data/lib/docker_engine_ruby/models/container_exec_params.rb +11 -39
  15. data/lib/docker_engine_ruby/models/container_inspect_params.rb +1 -3
  16. data/lib/docker_engine_ruby/models/container_kill_params.rb +1 -6
  17. data/lib/docker_engine_ruby/models/container_list_params.rb +4 -36
  18. data/lib/docker_engine_ruby/models/container_logs_params.rb +7 -25
  19. data/lib/docker_engine_ruby/models/container_prune_params.rb +1 -16
  20. data/lib/docker_engine_ruby/models/container_prune_response.rb +2 -5
  21. data/lib/docker_engine_ruby/models/container_rename_params.rb +1 -3
  22. data/lib/docker_engine_ruby/models/container_resize_params.rb +2 -6
  23. data/lib/docker_engine_ruby/models/container_restart_params.rb +2 -9
  24. data/lib/docker_engine_ruby/models/container_start_params.rb +1 -8
  25. data/lib/docker_engine_ruby/models/container_stats_params.rb +2 -11
  26. data/lib/docker_engine_ruby/models/container_stop_params.rb +2 -9
  27. data/lib/docker_engine_ruby/models/container_top_params.rb +1 -3
  28. data/lib/docker_engine_ruby/models/container_update_params.rb +4 -80
  29. data/lib/docker_engine_ruby/models/container_wait_params.rb +1 -11
  30. data/lib/docker_engine_ruby/models/create_request.rb +17 -121
  31. data/lib/docker_engine_ruby/models/exec_inspect_response.rb +1 -12
  32. data/lib/docker_engine_ruby/models/exec_resize_params.rb +2 -6
  33. data/lib/docker_engine_ruby/models/exec_start_params.rb +3 -9
  34. data/lib/docker_engine_ruby/models/filesystem_change.rb +3 -3
  35. data/lib/docker_engine_ruby/models/image.rb +33 -66
  36. data/lib/docker_engine_ruby/models/image_build_params.rb +25 -122
  37. data/lib/docker_engine_ruby/models/image_build_prune_params.rb +5 -32
  38. data/lib/docker_engine_ruby/models/image_build_prune_response.rb +1 -3
  39. data/lib/docker_engine_ruby/models/image_commit_params.rb +7 -21
  40. data/lib/docker_engine_ruby/models/image_delete_params.rb +3 -14
  41. data/lib/docker_engine_ruby/models/image_get_all_params.rb +2 -13
  42. data/lib/docker_engine_ruby/models/image_get_params.rb +1 -10
  43. data/lib/docker_engine_ruby/models/image_history_params.rb +1 -15
  44. data/lib/docker_engine_ruby/models/image_inspect_params.rb +1 -3
  45. data/lib/docker_engine_ruby/models/image_list_params.rb +5 -29
  46. data/lib/docker_engine_ruby/models/image_load_params.rb +2 -14
  47. data/lib/docker_engine_ruby/models/image_prune_params.rb +1 -16
  48. data/lib/docker_engine_ruby/models/image_prune_response.rb +2 -5
  49. data/lib/docker_engine_ruby/models/image_pull_params.rb +13 -60
  50. data/lib/docker_engine_ruby/models/image_push_params.rb +2 -19
  51. data/lib/docker_engine_ruby/models/image_search_params.rb +3 -16
  52. data/lib/docker_engine_ruby/models/image_search_response.rb +1 -13
  53. data/lib/docker_engine_ruby/models/image_tag_params.rb +2 -6
  54. data/lib/docker_engine_ruby/models/info.rb +24 -53
  55. data/lib/docker_engine_ruby/models/inspect.rb +5 -7
  56. data/lib/docker_engine_ruby/models/list_response.rb +0 -3
  57. data/lib/docker_engine_ruby/models/network.rb +7 -4
  58. data/lib/docker_engine_ruby/models/network_create_params.rb +11 -26
  59. data/lib/docker_engine_ruby/models/network_inspect_params.rb +2 -6
  60. data/lib/docker_engine_ruby/models/network_inspect_response.rb +219 -89
  61. data/lib/docker_engine_ruby/models/network_list_params.rb +1 -21
  62. data/lib/docker_engine_ruby/models/network_prune_params.rb +1 -16
  63. data/lib/docker_engine_ruby/models/network_prune_response.rb +1 -2
  64. data/lib/docker_engine_ruby/models/node.rb +9 -22
  65. data/lib/docker_engine_ruby/models/node_delete_params.rb +1 -3
  66. data/lib/docker_engine_ruby/models/node_list_params.rb +1 -15
  67. data/lib/docker_engine_ruby/models/node_update_params.rb +1 -7
  68. data/lib/docker_engine_ruby/models/plugin.rb +2 -24
  69. data/lib/docker_engine_ruby/models/plugin_create_params.rb +1 -8
  70. data/lib/docker_engine_ruby/models/plugin_delete_params.rb +1 -7
  71. data/lib/docker_engine_ruby/models/plugin_disable_params.rb +1 -6
  72. data/lib/docker_engine_ruby/models/plugin_enable_params.rb +1 -3
  73. data/lib/docker_engine_ruby/models/plugin_list_params.rb +1 -12
  74. data/lib/docker_engine_ruby/models/plugin_privileges_params.rb +1 -7
  75. data/lib/docker_engine_ruby/models/plugin_pull_params.rb +8 -21
  76. data/lib/docker_engine_ruby/models/plugin_set_params.rb +3 -3
  77. data/lib/docker_engine_ruby/models/plugin_upgrade_params.rb +4 -13
  78. data/lib/docker_engine_ruby/models/secret.rb +6 -6
  79. data/lib/docker_engine_ruby/models/secret_create_params.rb +1 -11
  80. data/lib/docker_engine_ruby/models/secret_list_params.rb +1 -14
  81. data/lib/docker_engine_ruby/models/secret_update_params.rb +1 -7
  82. data/lib/docker_engine_ruby/models/service.rb +18 -33
  83. data/lib/docker_engine_ruby/models/service_create_params.rb +1 -15
  84. data/lib/docker_engine_ruby/models/service_inspect_params.rb +1 -3
  85. data/lib/docker_engine_ruby/models/service_list_params.rb +2 -17
  86. data/lib/docker_engine_ruby/models/service_logs_params.rb +7 -25
  87. data/lib/docker_engine_ruby/models/service_update_params.rb +4 -34
  88. data/lib/docker_engine_ruby/models/spec.rb +25 -96
  89. data/lib/docker_engine_ruby/models/stats_response.rb +143 -68
  90. data/lib/docker_engine_ruby/models/summary.rb +12 -32
  91. data/lib/docker_engine_ruby/models/swarm.rb +6 -9
  92. data/lib/docker_engine_ruby/models/swarm_init_params.rb +7 -35
  93. data/lib/docker_engine_ruby/models/swarm_join_params.rb +5 -31
  94. data/lib/docker_engine_ruby/models/swarm_leave_params.rb +1 -7
  95. data/lib/docker_engine_ruby/models/swarm_unlock_key_response.rb +1 -2
  96. data/lib/docker_engine_ruby/models/swarm_unlock_params.rb +1 -3
  97. data/lib/docker_engine_ruby/models/swarm_update_params.rb +4 -16
  98. data/lib/docker_engine_ruby/models/system_data_usage_params.rb +43 -16
  99. data/lib/docker_engine_ruby/models/system_data_usage_response.rb +0 -19
  100. data/lib/docker_engine_ruby/models/system_events_params.rb +3 -29
  101. data/lib/docker_engine_ruby/models/system_events_response.rb +0 -3
  102. data/lib/docker_engine_ruby/models/task.rb +10 -12
  103. data/lib/docker_engine_ruby/models/task_list_params.rb +1 -16
  104. data/lib/docker_engine_ruby/models/task_logs_params.rb +7 -25
  105. data/lib/docker_engine_ruby/models/version.rb +8 -17
  106. data/lib/docker_engine_ruby/models/volume.rb +38 -194
  107. data/lib/docker_engine_ruby/models/volume_delete_params.rb +1 -3
  108. data/lib/docker_engine_ruby/models/volume_list_params.rb +1 -15
  109. data/lib/docker_engine_ruby/models/volume_prune_params.rb +1 -14
  110. data/lib/docker_engine_ruby/models/volume_prune_response.rb +2 -5
  111. data/lib/docker_engine_ruby/models/volume_update_params.rb +18 -127
  112. data/lib/docker_engine_ruby/resources/auth.rb +1 -2
  113. data/lib/docker_engine_ruby/resources/configs.rb +9 -18
  114. data/lib/docker_engine_ruby/resources/containers.rb +88 -337
  115. data/lib/docker_engine_ruby/resources/distribution.rb +2 -3
  116. data/lib/docker_engine_ruby/resources/exec.rb +11 -22
  117. data/lib/docker_engine_ruby/resources/images.rb +98 -228
  118. data/lib/docker_engine_ruby/resources/networks.rb +22 -41
  119. data/lib/docker_engine_ruby/resources/nodes.rb +7 -17
  120. data/lib/docker_engine_ruby/resources/plugins.rb +27 -74
  121. data/lib/docker_engine_ruby/resources/secrets.rb +9 -18
  122. data/lib/docker_engine_ruby/resources/services.rb +23 -52
  123. data/lib/docker_engine_ruby/resources/swarm.rb +26 -38
  124. data/lib/docker_engine_ruby/resources/system.rb +8 -49
  125. data/lib/docker_engine_ruby/resources/tasks.rb +12 -32
  126. data/lib/docker_engine_ruby/resources/volumes.rb +8 -22
  127. data/lib/docker_engine_ruby/version.rb +1 -1
  128. data/rbi/docker_engine_ruby/models/config.rbi +9 -7
  129. data/rbi/docker_engine_ruby/models/config_create_params.rbi +2 -34
  130. data/rbi/docker_engine_ruby/models/config_list_params.rbi +1 -22
  131. data/rbi/docker_engine_ruby/models/config_update_params.rbi +1 -8
  132. data/rbi/docker_engine_ruby/models/connect_request.rbi +7 -12
  133. data/rbi/docker_engine_ruby/models/container.rbi +73 -194
  134. data/rbi/docker_engine_ruby/models/container_archive_params.rbi +1 -6
  135. data/rbi/docker_engine_ruby/models/container_attach_params.rbi +0 -28
  136. data/rbi/docker_engine_ruby/models/container_create_params.rbi +1 -3250
  137. data/rbi/docker_engine_ruby/models/container_delete_params.rbi +1 -12
  138. data/rbi/docker_engine_ruby/models/container_exec_params.rbi +0 -28
  139. data/rbi/docker_engine_ruby/models/container_inspect_params.rbi +1 -6
  140. data/rbi/docker_engine_ruby/models/container_kill_params.rbi +1 -6
  141. data/rbi/docker_engine_ruby/models/container_list_params.rbi +0 -50
  142. data/rbi/docker_engine_ruby/models/container_logs_params.rbi +0 -16
  143. data/rbi/docker_engine_ruby/models/container_prune_params.rbi +1 -26
  144. data/rbi/docker_engine_ruby/models/container_prune_response.rbi +1 -8
  145. data/rbi/docker_engine_ruby/models/container_rename_params.rbi +1 -6
  146. data/rbi/docker_engine_ruby/models/container_resize_params.rbi +1 -9
  147. data/rbi/docker_engine_ruby/models/container_restart_params.rbi +1 -9
  148. data/rbi/docker_engine_ruby/models/container_start_params.rbi +1 -10
  149. data/rbi/docker_engine_ruby/models/container_stats_params.rbi +1 -13
  150. data/rbi/docker_engine_ruby/models/container_stop_params.rbi +1 -9
  151. data/rbi/docker_engine_ruby/models/container_top_params.rbi +1 -6
  152. data/rbi/docker_engine_ruby/models/container_update_params.rbi +1 -170
  153. data/rbi/docker_engine_ruby/models/container_wait_params.rbi +1 -13
  154. data/rbi/docker_engine_ruby/models/create_request.rbi +7 -139
  155. data/rbi/docker_engine_ruby/models/exec_inspect_response.rbi +0 -2
  156. data/rbi/docker_engine_ruby/models/exec_resize_params.rbi +1 -9
  157. data/rbi/docker_engine_ruby/models/exec_start_params.rbi +0 -6
  158. data/rbi/docker_engine_ruby/models/filesystem_change.rbi +10 -13
  159. data/rbi/docker_engine_ruby/models/image.rbi +48 -106
  160. data/rbi/docker_engine_ruby/models/image_build_params.rbi +0 -127
  161. data/rbi/docker_engine_ruby/models/image_build_prune_params.rbi +0 -38
  162. data/rbi/docker_engine_ruby/models/image_build_prune_response.rbi +1 -6
  163. data/rbi/docker_engine_ruby/models/image_commit_params.rbi +0 -14
  164. data/rbi/docker_engine_ruby/models/image_delete_params.rbi +0 -10
  165. data/rbi/docker_engine_ruby/models/image_get_all_params.rbi +1 -17
  166. data/rbi/docker_engine_ruby/models/image_get_params.rbi +1 -14
  167. data/rbi/docker_engine_ruby/models/image_history_params.rbi +1 -24
  168. data/rbi/docker_engine_ruby/models/image_inspect_params.rbi +1 -6
  169. data/rbi/docker_engine_ruby/models/image_list_params.rbi +0 -32
  170. data/rbi/docker_engine_ruby/models/image_load_params.rbi +1 -18
  171. data/rbi/docker_engine_ruby/models/image_prune_params.rbi +1 -26
  172. data/rbi/docker_engine_ruby/models/image_prune_response.rbi +1 -8
  173. data/rbi/docker_engine_ruby/models/image_pull_params.rbi +6 -79
  174. data/rbi/docker_engine_ruby/models/image_push_params.rbi +0 -22
  175. data/rbi/docker_engine_ruby/models/image_search_params.rbi +1 -20
  176. data/rbi/docker_engine_ruby/models/image_search_response.rbi +0 -10
  177. data/rbi/docker_engine_ruby/models/image_tag_params.rbi +1 -9
  178. data/rbi/docker_engine_ruby/models/info.rbi +29 -76
  179. data/rbi/docker_engine_ruby/models/inspect.rbi +6 -12
  180. data/rbi/docker_engine_ruby/models/network.rbi +7 -4
  181. data/rbi/docker_engine_ruby/models/network_create_params.rbi +0 -30
  182. data/rbi/docker_engine_ruby/models/network_inspect_params.rbi +1 -9
  183. data/rbi/docker_engine_ruby/models/network_inspect_response.rbi +345 -198
  184. data/rbi/docker_engine_ruby/models/network_list_params.rbi +1 -36
  185. data/rbi/docker_engine_ruby/models/network_prune_params.rbi +1 -26
  186. data/rbi/docker_engine_ruby/models/network_prune_response.rbi +1 -5
  187. data/rbi/docker_engine_ruby/models/node.rbi +11 -17
  188. data/rbi/docker_engine_ruby/models/node_delete_params.rbi +1 -6
  189. data/rbi/docker_engine_ruby/models/node_list_params.rbi +1 -24
  190. data/rbi/docker_engine_ruby/models/node_update_params.rbi +1 -8
  191. data/rbi/docker_engine_ruby/models/plugin.rbi +1 -11
  192. data/rbi/docker_engine_ruby/models/plugin_create_params.rbi +1 -9
  193. data/rbi/docker_engine_ruby/models/plugin_delete_params.rbi +1 -8
  194. data/rbi/docker_engine_ruby/models/plugin_disable_params.rbi +1 -6
  195. data/rbi/docker_engine_ruby/models/plugin_enable_params.rbi +1 -6
  196. data/rbi/docker_engine_ruby/models/plugin_list_params.rbi +1 -18
  197. data/rbi/docker_engine_ruby/models/plugin_privileges_params.rbi +1 -8
  198. data/rbi/docker_engine_ruby/models/plugin_pull_params.rbi +6 -21
  199. data/rbi/docker_engine_ruby/models/plugin_set_params.rbi +3 -6
  200. data/rbi/docker_engine_ruby/models/plugin_upgrade_params.rbi +3 -17
  201. data/rbi/docker_engine_ruby/models/secret.rbi +8 -8
  202. data/rbi/docker_engine_ruby/models/secret_create_params.rbi +2 -34
  203. data/rbi/docker_engine_ruby/models/secret_list_params.rbi +1 -22
  204. data/rbi/docker_engine_ruby/models/secret_update_params.rbi +1 -8
  205. data/rbi/docker_engine_ruby/models/service.rbi +20 -40
  206. data/rbi/docker_engine_ruby/models/service_create_params.rbi +1 -36
  207. data/rbi/docker_engine_ruby/models/service_inspect_params.rbi +1 -6
  208. data/rbi/docker_engine_ruby/models/service_list_params.rbi +1 -25
  209. data/rbi/docker_engine_ruby/models/service_logs_params.rbi +0 -16
  210. data/rbi/docker_engine_ruby/models/service_update_params.rbi +0 -50
  211. data/rbi/docker_engine_ruby/models/spec.rbi +9 -82
  212. data/rbi/docker_engine_ruby/models/stats_response.rbi +213 -141
  213. data/rbi/docker_engine_ruby/models/summary.rbi +16 -53
  214. data/rbi/docker_engine_ruby/models/swarm.rbi +8 -8
  215. data/rbi/docker_engine_ruby/models/swarm_init_params.rbi +0 -50
  216. data/rbi/docker_engine_ruby/models/swarm_join_params.rbi +0 -36
  217. data/rbi/docker_engine_ruby/models/swarm_leave_params.rbi +1 -8
  218. data/rbi/docker_engine_ruby/models/swarm_unlock_key_response.rbi +1 -5
  219. data/rbi/docker_engine_ruby/models/swarm_unlock_params.rbi +1 -6
  220. data/rbi/docker_engine_ruby/models/swarm_update_params.rbi +0 -10
  221. data/rbi/docker_engine_ruby/models/system_data_usage_params.rbi +79 -27
  222. data/rbi/docker_engine_ruby/models/system_events_params.rbi +1 -46
  223. data/rbi/docker_engine_ruby/models/task.rbi +12 -16
  224. data/rbi/docker_engine_ruby/models/task_list_params.rbi +1 -26
  225. data/rbi/docker_engine_ruby/models/task_logs_params.rbi +0 -16
  226. data/rbi/docker_engine_ruby/models/version.rbi +8 -22
  227. data/rbi/docker_engine_ruby/models/volume.rbi +25 -225
  228. data/rbi/docker_engine_ruby/models/volume_delete_params.rbi +1 -6
  229. data/rbi/docker_engine_ruby/models/volume_list_params.rbi +1 -24
  230. data/rbi/docker_engine_ruby/models/volume_prune_params.rbi +1 -22
  231. data/rbi/docker_engine_ruby/models/volume_prune_response.rbi +1 -8
  232. data/rbi/docker_engine_ruby/models/volume_update_params.rbi +7 -143
  233. data/rbi/docker_engine_ruby/resources/auth.rbi +1 -2
  234. data/rbi/docker_engine_ruby/resources/configs.rbi +8 -29
  235. data/rbi/docker_engine_ruby/resources/containers.rbi +36 -388
  236. data/rbi/docker_engine_ruby/resources/distribution.rbi +2 -6
  237. data/rbi/docker_engine_ruby/resources/exec.rbi +5 -24
  238. data/rbi/docker_engine_ruby/resources/images.rbi +72 -365
  239. data/rbi/docker_engine_ruby/resources/networks.rbi +7 -76
  240. data/rbi/docker_engine_ruby/resources/nodes.rbi +6 -30
  241. data/rbi/docker_engine_ruby/resources/plugins.rbi +22 -91
  242. data/rbi/docker_engine_ruby/resources/secrets.rbi +8 -29
  243. data/rbi/docker_engine_ruby/resources/services.rbi +12 -60
  244. data/rbi/docker_engine_ruby/resources/swarm.rbi +6 -59
  245. data/rbi/docker_engine_ruby/resources/system.rbi +11 -66
  246. data/rbi/docker_engine_ruby/resources/tasks.rbi +3 -34
  247. data/rbi/docker_engine_ruby/resources/volumes.rbi +7 -43
  248. data/sig/docker_engine_ruby/models/config.rbs +11 -9
  249. data/sig/docker_engine_ruby/models/config_create_params.rbs +3 -24
  250. data/sig/docker_engine_ruby/models/connect_request.rbs +12 -12
  251. data/sig/docker_engine_ruby/models/container.rbs +62 -62
  252. data/sig/docker_engine_ruby/models/container_create_params.rbs +1 -1321
  253. data/sig/docker_engine_ruby/models/container_update_params.rbs +0 -51
  254. data/sig/docker_engine_ruby/models/create_request.rbs +5 -5
  255. data/sig/docker_engine_ruby/models/filesystem_change.rbs +1 -1
  256. data/sig/docker_engine_ruby/models/image.rbs +51 -53
  257. data/sig/docker_engine_ruby/models/image_pull_params.rbs +5 -7
  258. data/sig/docker_engine_ruby/models/info.rbs +54 -36
  259. data/sig/docker_engine_ruby/models/inspect.rbs +12 -8
  260. data/sig/docker_engine_ruby/models/network.rbs +5 -5
  261. data/sig/docker_engine_ruby/models/network_inspect_response.rbs +179 -90
  262. data/sig/docker_engine_ruby/models/node.rbs +18 -14
  263. data/sig/docker_engine_ruby/models/plugin_pull_params.rbs +5 -9
  264. data/sig/docker_engine_ruby/models/plugin_set_params.rbs +2 -4
  265. data/sig/docker_engine_ruby/models/plugin_upgrade_params.rbs +2 -6
  266. data/sig/docker_engine_ruby/models/secret.rbs +10 -10
  267. data/sig/docker_engine_ruby/models/secret_create_params.rbs +3 -24
  268. data/sig/docker_engine_ruby/models/service.rbs +25 -25
  269. data/sig/docker_engine_ruby/models/service_create_params.rbs +1 -16
  270. data/sig/docker_engine_ruby/models/service_update_params.rbs +0 -13
  271. data/sig/docker_engine_ruby/models/spec.rbs +10 -10
  272. data/sig/docker_engine_ruby/models/stats_response.rbs +188 -74
  273. data/sig/docker_engine_ruby/models/summary.rbs +20 -16
  274. data/sig/docker_engine_ruby/models/swarm.rbs +10 -10
  275. data/sig/docker_engine_ruby/models/system_data_usage_params.rbs +25 -10
  276. data/sig/docker_engine_ruby/models/task.rbs +15 -15
  277. data/sig/docker_engine_ruby/models/version.rbs +13 -4
  278. data/sig/docker_engine_ruby/models/volume.rbs +27 -25
  279. data/sig/docker_engine_ruby/models/volume_update_params.rbs +5 -5
  280. data/sig/docker_engine_ruby/resources/configs.rbs +2 -2
  281. data/sig/docker_engine_ruby/resources/containers.rbs +1 -2
  282. data/sig/docker_engine_ruby/resources/images.rbs +3 -3
  283. data/sig/docker_engine_ruby/resources/networks.rbs +1 -1
  284. data/sig/docker_engine_ruby/resources/nodes.rbs +1 -1
  285. data/sig/docker_engine_ruby/resources/plugins.rbs +3 -3
  286. data/sig/docker_engine_ruby/resources/secrets.rbs +2 -2
  287. data/sig/docker_engine_ruby/resources/services.rbs +2 -2
  288. data/sig/docker_engine_ruby/resources/system.rbs +1 -1
  289. metadata +1 -1
@@ -3,18 +3,15 @@
3
3
  module DockerEngineRuby
4
4
  module Resources
5
5
  class Containers
6
- # Some parameter documentations has been truncated, see
7
- # {DockerEngineRuby::Models::ContainerCreateParams} for more details.
8
- #
9
6
  # Create a container
10
7
  #
11
8
  # @overload create(config:, name: nil, platform: nil, request_options: {})
12
9
  #
13
- # @param config [DockerEngineRuby::Models::ContainerCreateParams::Config] Body param: Configuration for a container that is portable between hosts.
10
+ # @param config [DockerEngineRuby::Models::Config] Body param: Configuration for a container that is portable between hosts.
14
11
  #
15
- # @param name [String] Query param: Assign the specified name to the container. Must match
12
+ # @param name [String] Query param
16
13
  #
17
- # @param platform [String] Query param: Platform in the format `os[/arch[/variant]]` used for image lookup.
14
+ # @param platform [String] Query param
18
15
  #
19
16
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
20
17
  #
@@ -36,12 +33,11 @@ module DockerEngineRuby
36
33
  # Some parameter documentations has been truncated, see
37
34
  # {DockerEngineRuby::Models::ContainerUpdateParams} for more details.
38
35
  #
39
- # Change various configuration options of a container without having to recreate
40
- # it.
36
+ # Update a container
41
37
  #
42
- # @overload update(id, blkio_device_read_bps: nil, blkio_device_read_i_ops: nil, blkio_device_write_bps: nil, blkio_device_write_i_ops: nil, blkio_weight: nil, blkio_weight_device: nil, cgroup_parent: nil, cpu_count: nil, cpu_percent: nil, cpu_period: nil, cpu_quota: nil, cpu_realtime_period: nil, cpu_realtime_runtime: nil, cpuset_cpus: nil, cpuset_mems: nil, cpu_shares: nil, device_cgroup_rules: nil, device_requests: nil, devices: nil, init: nil, io_maximum_bandwidth: nil, io_maximum_i_ops: nil, memory: nil, memory_reservation: nil, memory_swap: nil, memory_swappiness: nil, nano_cpus: nil, oom_kill_disable: nil, pids_limit: nil, restart_policy: nil, ulimits: nil, request_options: {})
38
+ # @overload update(id, blkio_device_read_bps: nil, blkio_device_read_i_ops: nil, blkio_device_write_bps: nil, blkio_device_write_i_ops: nil, blkio_weight: nil, blkio_weight_device: nil, cgroup_parent: nil, cpu_count: nil, cpu_percent: nil, cpu_period: nil, cpu_quota: nil, cpu_realtime_period: nil, cpu_realtime_runtime: nil, cpuset_cpus: nil, cpuset_mems: nil, cpu_shares: nil, device_cgroup_rules: nil, device_requests: nil, devices: nil, init: nil, io_maximum_bandwidth: nil, io_maximum_i_ops: nil, memory: nil, memory_reservation: nil, memory_swap: nil, memory_swappiness: nil, nano_cpus: nil, oom_kill_disable: nil, pids_limit: nil, ulimits: nil, request_options: {})
43
39
  #
44
- # @param id [String] ID or name of the container
40
+ # @param id [String]
45
41
  #
46
42
  # @param blkio_device_read_bps [Array<DockerEngineRuby::Models::ContainerUpdateParams::BlkioDeviceReadBp>] Limit read rate (bytes per second) from a device, in the form:
47
43
  #
@@ -101,8 +97,6 @@ module DockerEngineRuby
101
97
  #
102
98
  # @param pids_limit [Integer, nil] Tune a container's PIDs limit. Set `0` or `-1` for unlimited, or `null`
103
99
  #
104
- # @param restart_policy [DockerEngineRuby::Models::ContainerUpdateParams::RestartPolicy] The behavior to apply when the container exits. The default is not to
105
- #
106
100
  # @param ulimits [Array<DockerEngineRuby::Models::ContainerUpdateParams::Ulimit>] A list of resource limits to set in the container. For example:
107
101
  #
108
102
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
@@ -121,26 +115,14 @@ module DockerEngineRuby
121
115
  )
122
116
  end
123
117
 
124
- # Some parameter documentations has been truncated, see
125
- # {DockerEngineRuby::Models::ContainerListParams} for more details.
126
- #
127
- # Returns a list of containers. For details on the format, see the
128
- # [inspect endpoint](#operation/ContainerInspect).
129
- #
130
- # Note that it uses a different, smaller representation of a container than
131
- # inspecting a single container. For example, the list of linked containers is not
132
- # propagated .
118
+ # List containers
133
119
  #
134
120
  # @overload list(all: nil, filters: nil, limit: nil, size: nil, request_options: {})
135
121
  #
136
- # @param all [Boolean] Return all containers. By default, only running containers are shown.
137
- #
138
- # @param filters [String] Filters to process on the container list, encoded as JSON (a
139
- #
140
- # @param limit [Integer] Return this number of most recently created containers, including
141
- #
142
- # @param size [Boolean] Return the size of container as fields `SizeRw` and `SizeRootFs`.
143
- #
122
+ # @param all [Boolean]
123
+ # @param filters [String]
124
+ # @param limit [Integer]
125
+ # @param size [Boolean]
144
126
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
145
127
  #
146
128
  # @return [Array<DockerEngineRuby::Models::Summary>]
@@ -161,14 +143,10 @@ module DockerEngineRuby
161
143
  #
162
144
  # @overload delete(id, force: nil, link: nil, v: nil, request_options: {})
163
145
  #
164
- # @param id [String] ID or name of the container
165
- #
166
- # @param force [Boolean] If the container is running, kill it before removing it.
167
- #
168
- # @param link [Boolean] Remove the specified link associated with the container.
169
- #
170
- # @param v [Boolean] Remove anonymous volumes associated with the container.
171
- #
146
+ # @param id [String]
147
+ # @param force [Boolean]
148
+ # @param link [Boolean]
149
+ # @param v [Boolean]
172
150
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
173
151
  #
174
152
  # @return [nil]
@@ -185,14 +163,12 @@ module DockerEngineRuby
185
163
  )
186
164
  end
187
165
 
188
- # Get a tar archive of a resource in the filesystem of container id.
166
+ # Get an archive of a filesystem resource in a container
189
167
  #
190
168
  # @overload archive(id, path:, request_options: {})
191
169
  #
192
- # @param id [String] ID or name of the container
193
- #
194
- # @param path [String] Resource in the container’s filesystem to archive.
195
- #
170
+ # @param id [String]
171
+ # @param path [String]
196
172
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
197
173
  #
198
174
  # @return [nil]
@@ -209,121 +185,17 @@ module DockerEngineRuby
209
185
  )
210
186
  end
211
187
 
212
- # Some parameter documentations has been truncated, see
213
- # {DockerEngineRuby::Models::ContainerAttachParams} for more details.
214
- #
215
- # Attach to a container to read its output or send it input. You can attach to the
216
- # same container multiple times and you can reattach to containers that have been
217
- # detached.
218
- #
219
- # Either the `stream` or `logs` parameter must be `true` for this endpoint to do
220
- # anything.
221
- #
222
- # See the
223
- # [documentation for the `docker attach` command](https://docs.docker.com/engine/reference/commandline/attach/)
224
- # for more details.
225
- #
226
- # ### Hijacking
227
- #
228
- # This endpoint hijacks the HTTP connection to transport `stdin`, `stdout`, and
229
- # `stderr` on the same socket.
230
- #
231
- # This is the response from the daemon for an attach request:
232
- #
233
- # ```
234
- # HTTP/1.1 200 OK
235
- # Content-Type: application/vnd.docker.raw-stream
236
- #
237
- # [STREAM]
238
- # ```
239
- #
240
- # After the headers and two new lines, the TCP connection can now be used for raw,
241
- # bidirectional communication between the client and server.
242
- #
243
- # To hint potential proxies about connection hijacking, the Docker client can also
244
- # optionally send connection upgrade headers.
245
- #
246
- # For example, the client sends this request to upgrade the connection:
247
- #
248
- # ```
249
- # POST /containers/16253994b7c4/attach?stream=1&stdout=1 HTTP/1.1
250
- # Upgrade: tcp
251
- # Connection: Upgrade
252
- # ```
253
- #
254
- # The Docker daemon will respond with a `101 UPGRADED` response, and will
255
- # similarly follow with the raw stream:
256
- #
257
- # ```
258
- # HTTP/1.1 101 UPGRADED
259
- # Content-Type: application/vnd.docker.raw-stream
260
- # Connection: Upgrade
261
- # Upgrade: tcp
262
- #
263
- # [STREAM]
264
- # ```
265
- #
266
- # ### Stream format
267
- #
268
- # When the TTY setting is disabled in
269
- # [`POST /containers/create`](#operation/ContainerCreate), the HTTP Content-Type
270
- # header is set to application/vnd.docker.multiplexed-stream and the stream over
271
- # the hijacked connected is multiplexed to separate out `stdout` and `stderr`. The
272
- # stream consists of a series of frames, each containing a header and a payload.
273
- #
274
- # The header contains the information which the stream writes (`stdout` or
275
- # `stderr`). It also contains the size of the associated frame encoded in the last
276
- # four bytes (`uint32`).
277
- #
278
- # It is encoded on the first eight bytes like this:
279
- #
280
- # ```go
281
- # header := [8]byte{STREAM_TYPE, 0, 0, 0, SIZE1, SIZE2, SIZE3, SIZE4}
282
- # ```
283
- #
284
- # `STREAM_TYPE` can be:
285
- #
286
- # - 0: `stdin` (is written on `stdout`)
287
- # - 1: `stdout`
288
- # - 2: `stderr`
289
- #
290
- # `SIZE1, SIZE2, SIZE3, SIZE4` are the four bytes of the `uint32` size encoded as
291
- # big endian.
292
- #
293
- # Following the header is the payload, which is the specified number of bytes of
294
- # `STREAM_TYPE`.
295
- #
296
- # The simplest way to implement this protocol is the following:
297
- #
298
- # 1. Read 8 bytes.
299
- # 2. Choose `stdout` or `stderr` depending on the first byte.
300
- # 3. Extract the frame size from the last four bytes.
301
- # 4. Read the extracted size and output it on the correct output.
302
- # 5. Goto 1.
303
- #
304
- # ### Stream format when using a TTY
305
- #
306
- # When the TTY setting is enabled in
307
- # [`POST /containers/create`](#operation/ContainerCreate), the stream is not
308
- # multiplexed. The data exchanged over the hijacked connection is simply the raw
309
- # data from the process PTY and client's `stdin`.
188
+ # Attach to a container
310
189
  #
311
190
  # @overload attach(id, detach_keys: nil, logs: nil, stderr: nil, stdin: nil, stdout: nil, stream: nil, request_options: {})
312
191
  #
313
- # @param id [String] ID or name of the container
314
- #
315
- # @param detach_keys [String] Override the key sequence for detaching a container.Format is a single
316
- #
317
- # @param logs [Boolean] Replay previous logs from the container.
318
- #
319
- # @param stderr [Boolean] Attach to `stderr`
320
- #
321
- # @param stdin [Boolean] Attach to `stdin`
322
- #
323
- # @param stdout [Boolean] Attach to `stdout`
324
- #
325
- # @param stream [Boolean] Stream attached streams from the time the request was made onwards.
326
- #
192
+ # @param id [String]
193
+ # @param detach_keys [String]
194
+ # @param logs [Boolean]
195
+ # @param stderr [Boolean]
196
+ # @param stdin [Boolean]
197
+ # @param stdout [Boolean]
198
+ # @param stream [Boolean]
327
199
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
328
200
  #
329
201
  # @return [nil]
@@ -340,17 +212,11 @@ module DockerEngineRuby
340
212
  )
341
213
  end
342
214
 
343
- # Returns which files in a container's filesystem have been added, deleted, or
344
- # modified. The `Kind` of modification can be one of:
345
- #
346
- # - `0`: Modified ("C")
347
- # - `1`: Added ("A")
348
- # - `2`: Deleted ("D")
215
+ # Get changes on a containers filesystem
349
216
  #
350
217
  # @overload changes(id, request_options: {})
351
218
  #
352
- # @param id [String] ID or name of the container
353
- #
219
+ # @param id [String]
354
220
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
355
221
  #
356
222
  # @return [Array<DockerEngineRuby::Models::FilesystemChange>]
@@ -365,37 +231,22 @@ module DockerEngineRuby
365
231
  )
366
232
  end
367
233
 
368
- # Some parameter documentations has been truncated, see
369
- # {DockerEngineRuby::Models::ContainerExecParams} for more details.
370
- #
371
- # Run a command inside a running container.
234
+ # Create an exec instance
372
235
  #
373
236
  # @overload exec_(id, attach_stderr: nil, attach_stdin: nil, attach_stdout: nil, cmd: nil, console_size: nil, detach_keys: nil, env: nil, privileged: nil, tty: nil, user: nil, working_dir: nil, request_options: {})
374
237
  #
375
- # @param id [String] ID or name of container
376
- #
377
- # @param attach_stderr [Boolean] Attach to `stderr` of the exec command.
378
- #
379
- # @param attach_stdin [Boolean] Attach to `stdin` of the exec command.
380
- #
381
- # @param attach_stdout [Boolean] Attach to `stdout` of the exec command.
382
- #
383
- # @param cmd [Array<String>] Command to run, as a string or array of strings.
384
- #
385
- # @param console_size [Array<Integer>, nil] Initial console size, as an `[height, width]` array.
386
- #
387
- # @param detach_keys [String] Override the key sequence for detaching a container. Format is
388
- #
389
- # @param env [Array<String>] A list of environment variables in the form `["VAR=value", ...]`.
390
- #
391
- # @param privileged [Boolean] Runs the exec process with extended privileges.
392
- #
393
- # @param tty [Boolean] Allocate a pseudo-TTY.
394
- #
395
- # @param user [String] The user, and optionally, group to run the exec process inside
396
- #
397
- # @param working_dir [String] The working directory for the exec process inside the container.
398
- #
238
+ # @param id [String]
239
+ # @param attach_stderr [Boolean]
240
+ # @param attach_stdin [Boolean]
241
+ # @param attach_stdout [Boolean]
242
+ # @param cmd [Array<String>]
243
+ # @param console_size [Array<Integer>, nil]
244
+ # @param detach_keys [String]
245
+ # @param env [Array<String>]
246
+ # @param privileged [Boolean]
247
+ # @param tty [Boolean]
248
+ # @param user [String]
249
+ # @param working_dir [String]
399
250
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
400
251
  #
401
252
  # @return [DockerEngineRuby::Models::ContainerExecResponse]
@@ -412,12 +263,11 @@ module DockerEngineRuby
412
263
  )
413
264
  end
414
265
 
415
- # Export the contents of a container as a tarball.
266
+ # Export a container
416
267
  #
417
268
  # @overload export(id, request_options: {})
418
269
  #
419
- # @param id [String] ID or name of the container
420
- #
270
+ # @param id [String]
421
271
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
422
272
  #
423
273
  # @return [nil]
@@ -432,14 +282,12 @@ module DockerEngineRuby
432
282
  )
433
283
  end
434
284
 
435
- # Return low-level information about a container.
285
+ # Inspect a container
436
286
  #
437
287
  # @overload inspect_(id, size: nil, request_options: {})
438
288
  #
439
- # @param id [String] ID or name of the container
440
- #
441
- # @param size [Boolean] Return the size of container as fields `SizeRw` and `SizeRootFs`
442
- #
289
+ # @param id [String]
290
+ # @param size [Boolean]
443
291
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
444
292
  #
445
293
  # @return [DockerEngineRuby::Models::Container]
@@ -456,17 +304,12 @@ module DockerEngineRuby
456
304
  )
457
305
  end
458
306
 
459
- # Some parameter documentations has been truncated, see
460
- # {DockerEngineRuby::Models::ContainerKillParams} for more details.
461
- #
462
- # Send a POSIX signal to a container, defaulting to killing to the container.
307
+ # Kill a container
463
308
  #
464
309
  # @overload kill(id, signal: nil, request_options: {})
465
310
  #
466
- # @param id [String] ID or name of the container
467
- #
468
- # @param signal [String] Signal to send to the container as an integer or string (e.g. `SIGINT`).
469
- #
311
+ # @param id [String]
312
+ # @param signal [String]
470
313
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
471
314
  #
472
315
  # @return [nil]
@@ -483,32 +326,18 @@ module DockerEngineRuby
483
326
  )
484
327
  end
485
328
 
486
- # Some parameter documentations has been truncated, see
487
- # {DockerEngineRuby::Models::ContainerLogsParams} for more details.
488
- #
489
- # Get `stdout` and `stderr` logs from a container.
490
- #
491
- # Note: This endpoint works only for containers with the `json-file` or `journald`
492
- # logging driver.
329
+ # Get container logs
493
330
  #
494
331
  # @overload logs(id, follow: nil, since: nil, stderr: nil, stdout: nil, tail: nil, timestamps: nil, until_: nil, request_options: {})
495
332
  #
496
- # @param id [String] ID or name of the container
497
- #
498
- # @param follow [Boolean] Keep connection after returning logs.
499
- #
500
- # @param since [Integer] Only return logs since this time, as a UNIX timestamp
501
- #
502
- # @param stderr [Boolean] Return logs from `stderr`
503
- #
504
- # @param stdout [Boolean] Return logs from `stdout`
505
- #
506
- # @param tail [String] Only return this number of log lines from the end of the logs.
507
- #
508
- # @param timestamps [Boolean] Add timestamps to every log line
509
- #
510
- # @param until_ [Integer] Only return logs before this time, as a UNIX timestamp
511
- #
333
+ # @param id [String]
334
+ # @param follow [Boolean]
335
+ # @param since [Integer]
336
+ # @param stderr [Boolean]
337
+ # @param stdout [Boolean]
338
+ # @param tail [String]
339
+ # @param timestamps [Boolean]
340
+ # @param until_ [Integer]
512
341
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
513
342
  #
514
343
  # @return [StringIO]
@@ -520,23 +349,17 @@ module DockerEngineRuby
520
349
  method: :get,
521
350
  path: ["containers/%1$s/logs", id],
522
351
  query: parsed.transform_keys(until_: "until"),
523
- headers: {"accept" => "application/vnd.docker.multiplexed-stream"},
352
+ headers: {"accept" => "application/octet-stream"},
524
353
  model: StringIO,
525
354
  options: options
526
355
  )
527
356
  end
528
357
 
529
- # Use the freezer cgroup to suspend all processes in a container.
530
- #
531
- # Traditionally, when suspending a process the `SIGSTOP` signal is used, which is
532
- # observable by the process being suspended. With the freezer cgroup the process
533
- # is unaware, and unable to capture, that it is being suspended, and subsequently
534
- # resumed.
358
+ # Pause a container
535
359
  #
536
360
  # @overload pause(id, request_options: {})
537
361
  #
538
- # @param id [String] ID or name of the container
539
- #
362
+ # @param id [String]
540
363
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
541
364
  #
542
365
  # @return [nil]
@@ -551,15 +374,11 @@ module DockerEngineRuby
551
374
  )
552
375
  end
553
376
 
554
- # Some parameter documentations has been truncated, see
555
- # {DockerEngineRuby::Models::ContainerPruneParams} for more details.
556
- #
557
377
  # Delete stopped containers
558
378
  #
559
379
  # @overload prune(filters: nil, request_options: {})
560
380
  #
561
- # @param filters [String] Filters to process on the prune list, encoded as JSON (a `map[string][]string`).
562
- #
381
+ # @param filters [String]
563
382
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
564
383
  #
565
384
  # @return [DockerEngineRuby::Models::ContainerPruneResponse]
@@ -580,10 +399,8 @@ module DockerEngineRuby
580
399
  #
581
400
  # @overload rename(id, name:, request_options: {})
582
401
  #
583
- # @param id [String] ID or name of the container
584
- #
585
- # @param name [String] New name for the container
586
- #
402
+ # @param id [String]
403
+ # @param name [String]
587
404
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
588
405
  #
589
406
  # @return [nil]
@@ -600,16 +417,13 @@ module DockerEngineRuby
600
417
  )
601
418
  end
602
419
 
603
- # Resize the TTY for a container.
420
+ # Resize a container TTY
604
421
  #
605
422
  # @overload resize(id, h:, w:, request_options: {})
606
423
  #
607
- # @param id [String] ID or name of the container
608
- #
609
- # @param h [Integer] Height of the TTY session in characters
610
- #
611
- # @param w [Integer] Width of the TTY session in characters
612
- #
424
+ # @param id [String]
425
+ # @param h [Integer]
426
+ # @param w [Integer]
613
427
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
614
428
  #
615
429
  # @return [nil]
@@ -626,19 +440,13 @@ module DockerEngineRuby
626
440
  )
627
441
  end
628
442
 
629
- # Some parameter documentations has been truncated, see
630
- # {DockerEngineRuby::Models::ContainerRestartParams} for more details.
631
- #
632
443
  # Restart a container
633
444
  #
634
445
  # @overload restart(id, signal: nil, t: nil, request_options: {})
635
446
  #
636
- # @param id [String] ID or name of the container
637
- #
638
- # @param signal [String] Signal to send to the container as an integer or string (e.g. `SIGINT`).
639
- #
640
- # @param t [Integer] Number of seconds to wait before killing the container
641
- #
447
+ # @param id [String]
448
+ # @param signal [String]
449
+ # @param t [Integer]
642
450
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
643
451
  #
644
452
  # @return [nil]
@@ -655,17 +463,12 @@ module DockerEngineRuby
655
463
  )
656
464
  end
657
465
 
658
- # Some parameter documentations has been truncated, see
659
- # {DockerEngineRuby::Models::ContainerStartParams} for more details.
660
- #
661
466
  # Start a container
662
467
  #
663
468
  # @overload start(id, detach_keys: nil, request_options: {})
664
469
  #
665
- # @param id [String] ID or name of the container
666
- #
667
- # @param detach_keys [String] Override the key sequence for detaching a container. Format is a
668
- #
470
+ # @param id [String]
471
+ # @param detach_keys [String]
669
472
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
670
473
  #
671
474
  # @return [nil]
@@ -682,50 +485,13 @@ module DockerEngineRuby
682
485
  )
683
486
  end
684
487
 
685
- # Some parameter documentations has been truncated, see
686
- # {DockerEngineRuby::Models::ContainerStatsParams} for more details.
687
- #
688
- # This endpoint returns a live stream of a container’s resource usage statistics.
689
- #
690
- # The `precpu_stats` is the CPU statistic of the _previous_ read, and is used to
691
- # calculate the CPU usage percentage. It is not an exact copy of the `cpu_stats`
692
- # field.
693
- #
694
- # If either `precpu_stats.online_cpus` or `cpu_stats.online_cpus` is nil then for
695
- # compatibility with older daemons the length of the corresponding
696
- # `cpu_usage.percpu_usage` array should be used.
697
- #
698
- # On a cgroup v2 host, the following fields are not set
699
- #
700
- # - `blkio_stats`: all fields other than `io_service_bytes_recursive`
701
- # - `cpu_stats`: `cpu_usage.percpu_usage`
702
- # - `memory_stats`: `max_usage` and `failcnt` Also, `memory_stats.stats` fields
703
- # are incompatible with cgroup v1.
704
- #
705
- # To calculate the values shown by the `stats` command of the docker cli tool the
706
- # following formulas can be used:
707
- #
708
- # - used_memory = `memory_stats.usage - memory_stats.stats.cache` (cgroups v1)
709
- # - used_memory = `memory_stats.usage - memory_stats.stats.inactive_file` (cgroups
710
- # v2)
711
- # - available_memory = `memory_stats.limit`
712
- # - Memory usage % = `(used_memory / available_memory) * 100.0`
713
- # - cpu_delta =
714
- # `cpu_stats.cpu_usage.total_usage - precpu_stats.cpu_usage.total_usage`
715
- # - system_cpu_delta =
716
- # `cpu_stats.system_cpu_usage - precpu_stats.system_cpu_usage`
717
- # - number_cpus = `length(cpu_stats.cpu_usage.percpu_usage)` or
718
- # `cpu_stats.online_cpus`
719
- # - CPU usage % = `(cpu_delta / system_cpu_delta) * number_cpus * 100.0`
488
+ # Get container stats based on resource usage
720
489
  #
721
490
  # @overload stats(id, one_shot: nil, stream: nil, request_options: {})
722
491
  #
723
- # @param id [String] ID or name of the container
724
- #
725
- # @param one_shot [Boolean] Only get a single stat instead of waiting for 2 cycles. Must be used
726
- #
727
- # @param stream [Boolean] Stream the output. If false, the stats will be output once and then
728
- #
492
+ # @param id [String]
493
+ # @param one_shot [Boolean]
494
+ # @param stream [Boolean]
729
495
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
730
496
  #
731
497
  # @return [DockerEngineRuby::Models::StatsResponse]
@@ -742,19 +508,13 @@ module DockerEngineRuby
742
508
  )
743
509
  end
744
510
 
745
- # Some parameter documentations has been truncated, see
746
- # {DockerEngineRuby::Models::ContainerStopParams} for more details.
747
- #
748
511
  # Stop a container
749
512
  #
750
513
  # @overload stop(id, signal: nil, t: nil, request_options: {})
751
514
  #
752
- # @param id [String] ID or name of the container
753
- #
754
- # @param signal [String] Signal to send to the container as an integer or string (e.g. `SIGINT`).
755
- #
756
- # @param t [Integer] Number of seconds to wait before killing the container
757
- #
515
+ # @param id [String]
516
+ # @param signal [String]
517
+ # @param t [Integer]
758
518
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
759
519
  #
760
520
  # @return [nil]
@@ -771,15 +531,12 @@ module DockerEngineRuby
771
531
  )
772
532
  end
773
533
 
774
- # On Unix systems, this is done by running the `ps` command. This endpoint is not
775
- # supported on Windows.
534
+ # List processes running inside a container
776
535
  #
777
536
  # @overload top(id, ps_args: nil, request_options: {})
778
537
  #
779
- # @param id [String] ID or name of the container
780
- #
781
- # @param ps_args [String] The arguments to pass to `ps`. For example, `aux`
782
- #
538
+ # @param id [String]
539
+ # @param ps_args [String]
783
540
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
784
541
  #
785
542
  # @return [DockerEngineRuby::Models::TopResponse]
@@ -796,12 +553,11 @@ module DockerEngineRuby
796
553
  )
797
554
  end
798
555
 
799
- # Resume a container which has been paused.
556
+ # Unpause a container
800
557
  #
801
558
  # @overload unpause(id, request_options: {})
802
559
  #
803
- # @param id [String] ID or name of the container
804
- #
560
+ # @param id [String]
805
561
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
806
562
  #
807
563
  # @return [nil]
@@ -816,17 +572,12 @@ module DockerEngineRuby
816
572
  )
817
573
  end
818
574
 
819
- # Some parameter documentations has been truncated, see
820
- # {DockerEngineRuby::Models::ContainerWaitParams} for more details.
821
- #
822
- # Block until a container stops, then returns the exit code.
575
+ # Wait for a container
823
576
  #
824
577
  # @overload wait(id, condition: nil, request_options: {})
825
578
  #
826
- # @param id [String] ID or name of the container
827
- #
828
- # @param condition [Symbol, DockerEngineRuby::Models::ContainerWaitParams::Condition] Wait until a container state reaches the given condition.
829
- #
579
+ # @param id [String]
580
+ # @param condition [Symbol, DockerEngineRuby::Models::ContainerWaitParams::Condition]
830
581
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
831
582
  #
832
583
  # @return [DockerEngineRuby::Models::WaitResponse]
@@ -3,12 +3,11 @@
3
3
  module DockerEngineRuby
4
4
  module Resources
5
5
  class Distribution
6
- # Return image digest and platform information by contacting the registry.
6
+ # Get image information from the registry
7
7
  #
8
8
  # @overload inspect_(name, request_options: {})
9
9
  #
10
- # @param name [String] Image name or id
11
- #
10
+ # @param name [String]
12
11
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
13
12
  #
14
13
  # @return [DockerEngineRuby::Models::Inspect]