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,12 +3,11 @@
3
3
  module DockerEngineRuby
4
4
  module Resources
5
5
  class Exec
6
- # Return low-level information about an exec instance.
6
+ # Inspect an exec instance
7
7
  #
8
8
  # @overload inspect_(id, request_options: {})
9
9
  #
10
- # @param id [String] Exec instance ID
11
- #
10
+ # @param id [String]
12
11
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
13
12
  #
14
13
  # @return [DockerEngineRuby::Models::ExecInspectResponse]
@@ -23,17 +22,13 @@ module DockerEngineRuby
23
22
  )
24
23
  end
25
24
 
26
- # Resize the TTY session used by an exec instance. This endpoint only works if
27
- # `tty` was specified as part of creating and starting the exec instance.
25
+ # Resize an exec instance
28
26
  #
29
27
  # @overload resize(id, h:, w:, request_options: {})
30
28
  #
31
- # @param id [String] Exec instance ID
32
- #
33
- # @param h [Integer] Height of the TTY session in characters
34
- #
35
- # @param w [Integer] Width of the TTY session in characters
36
- #
29
+ # @param id [String]
30
+ # @param h [Integer]
31
+ # @param w [Integer]
37
32
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
38
33
  #
39
34
  # @return [nil]
@@ -50,20 +45,14 @@ module DockerEngineRuby
50
45
  )
51
46
  end
52
47
 
53
- # Starts a previously set up exec instance. If detach is true, this endpoint
54
- # returns immediately after starting the command. Otherwise, it sets up an
55
- # interactive session with the command.
48
+ # Start an exec instance
56
49
  #
57
50
  # @overload start(id, console_size: nil, detach: nil, tty: nil, request_options: {})
58
51
  #
59
- # @param id [String] Exec instance ID
60
- #
61
- # @param console_size [Array<Integer>, nil] Initial console size, as an `[height, width]` array.
62
- #
63
- # @param detach [Boolean] Detach from the command.
64
- #
65
- # @param tty [Boolean] Allocate a pseudo-TTY.
66
- #
52
+ # @param id [String]
53
+ # @param console_size [Array<Integer>, nil]
54
+ # @param detach [Boolean]
55
+ # @param tty [Boolean]
67
56
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
68
57
  #
69
58
  # @return [nil]
@@ -3,24 +3,15 @@
3
3
  module DockerEngineRuby
4
4
  module Resources
5
5
  class Images
6
- # Some parameter documentations has been truncated, see
7
- # {DockerEngineRuby::Models::ImageListParams} for more details.
8
- #
9
- # Returns a list of images on the server. Note that it uses a different, smaller
10
- # representation of an image than inspecting a single image.
6
+ # List Images
11
7
  #
12
8
  # @overload list(all: nil, digests: nil, filters: nil, manifests: nil, shared_size: nil, request_options: {})
13
9
  #
14
- # @param all [Boolean] Show all images. Only images from a final layer (no children) are shown by defau
15
- #
16
- # @param digests [Boolean] Show digest information as a `RepoDigests` field on each image.
17
- #
18
- # @param filters [String] A JSON encoded value of the filters (a `map[string][]string`) to
19
- #
20
- # @param manifests [Boolean] Include `Manifests` in the image summary.
21
- #
22
- # @param shared_size [Boolean] Compute and show shared size as a `SharedSize` field on each image.
23
- #
10
+ # @param all [Boolean]
11
+ # @param digests [Boolean]
12
+ # @param filters [String]
13
+ # @param manifests [Boolean]
14
+ # @param shared_size [Boolean]
24
15
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
25
16
  #
26
17
  # @return [Array<DockerEngineRuby::Models::Summary>]
@@ -37,25 +28,14 @@ module DockerEngineRuby
37
28
  )
38
29
  end
39
30
 
40
- # Some parameter documentations has been truncated, see
41
- # {DockerEngineRuby::Models::ImageDeleteParams} for more details.
42
- #
43
- # Remove an image, along with any untagged parent images that were referenced by
44
- # that image.
45
- #
46
- # Images can't be removed if they have descendant images, are being used by a
47
- # running container or are being used by a build.
31
+ # Remove an image
48
32
  #
49
33
  # @overload delete(name, force: nil, noprune: nil, platforms: nil, request_options: {})
50
34
  #
51
- # @param name [String] Image name or ID
52
- #
53
- # @param force [Boolean] Remove the image even if it is being used by stopped containers or has other tag
54
- #
55
- # @param noprune [Boolean] Do not delete untagged parent images
56
- #
57
- # @param platforms [Array<String>] Select platform-specific content to delete.
58
- #
35
+ # @param name [String]
36
+ # @param force [Boolean]
37
+ # @param noprune [Boolean]
38
+ # @param platforms [Array<String>]
59
39
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
60
40
  #
61
41
  # @return [Array<DockerEngineRuby::Models::DeleteItem>]
@@ -72,79 +52,63 @@ module DockerEngineRuby
72
52
  )
73
53
  end
74
54
 
75
- # Some parameter documentations has been truncated, see
76
- # {DockerEngineRuby::Models::ImageBuildParams} for more details.
77
- #
78
- # Build an image from a tar archive with a `Dockerfile` in it.
79
- #
80
- # The `Dockerfile` specifies how the image is built from the tar archive. It is
81
- # typically in the archive's root, but can be at a different path or have a
82
- # different name by specifying the `dockerfile` parameter.
83
- # [See the `Dockerfile` reference for more information](https://docs.docker.com/engine/reference/builder/).
84
- #
85
- # The Docker daemon performs a preliminary validation of the `Dockerfile` before
86
- # starting the build, and returns an error if the syntax is incorrect. After that,
87
- # each instruction is run one-by-one until the ID of the new image is output.
88
- #
89
- # The build is canceled if the client drops the connection by quitting or being
90
- # killed.
55
+ # Build an image
91
56
  #
92
57
  # @overload build(body:, buildargs: nil, cachefrom: nil, cpuperiod: nil, cpuquota: nil, cpusetcpus: nil, cpushares: nil, dockerfile: nil, extrahosts: nil, forcerm: nil, labels: nil, memory: nil, memswap: nil, networkmode: nil, nocache: nil, outputs: nil, platform: nil, pull: nil, q: nil, remote: nil, rm: nil, shmsize: nil, squash: nil, t: nil, target: nil, version: nil, x_registry_config: nil, request_options: {})
93
58
  #
94
59
  # @param body [Pathname, StringIO, IO, String, DockerEngineRuby::FilePart] Body param
95
60
  #
96
- # @param buildargs [String] Query param: JSON map of string pairs for build-time variables. Users pass these
61
+ # @param buildargs [String] Query param
97
62
  #
98
- # @param cachefrom [String] Query param: JSON array of images used for build cache resolution.
63
+ # @param cachefrom [String] Query param
99
64
  #
100
- # @param cpuperiod [Integer] Query param: The length of a CPU period in microseconds.
65
+ # @param cpuperiod [Integer] Query param
101
66
  #
102
- # @param cpuquota [Integer] Query param: Microseconds of CPU time that the container can get in a CPU period
67
+ # @param cpuquota [Integer] Query param
103
68
  #
104
- # @param cpusetcpus [String] Query param: CPUs in which to allow execution (e.g., `0-3`, `0,1`).
69
+ # @param cpusetcpus [String] Query param
105
70
  #
106
- # @param cpushares [Integer] Query param: CPU shares (relative weight).
71
+ # @param cpushares [Integer] Query param
107
72
  #
108
- # @param dockerfile [String] Query param: Path within the build context to the `Dockerfile`. This is ignored
73
+ # @param dockerfile [String] Query param
109
74
  #
110
- # @param extrahosts [String] Query param: Extra hosts to add to /etc/hosts
75
+ # @param extrahosts [String] Query param
111
76
  #
112
- # @param forcerm [Boolean] Query param: Always remove intermediate containers, even upon failure.
77
+ # @param forcerm [Boolean] Query param
113
78
  #
114
- # @param labels [String] Query param: Arbitrary key/value labels to set on the image, as a JSON map of st
79
+ # @param labels [String] Query param
115
80
  #
116
- # @param memory [Integer] Query param: Set memory limit for build.
81
+ # @param memory [Integer] Query param
117
82
  #
118
- # @param memswap [Integer] Query param: Total memory (memory + swap). Set as `-1` to disable swap.
83
+ # @param memswap [Integer] Query param
119
84
  #
120
- # @param networkmode [String] Query param: Sets the networking mode for the run commands during build. Support
85
+ # @param networkmode [String] Query param
121
86
  #
122
- # @param nocache [Boolean] Query param: Do not use the cache when building the image.
87
+ # @param nocache [Boolean] Query param
123
88
  #
124
- # @param outputs [String] Query param: BuildKit output configuration in the format of a stringified JSON a
89
+ # @param outputs [String] Query param
125
90
  #
126
- # @param platform [String] Query param: Platform in the format os[/arch[/variant]]
91
+ # @param platform [String] Query param
127
92
  #
128
- # @param pull [String] Query param: Attempt to pull the image even if an older image exists locally.
93
+ # @param pull [String] Query param
129
94
  #
130
- # @param q [Boolean] Query param: Suppress verbose build output.
95
+ # @param q [Boolean] Query param
131
96
  #
132
- # @param remote [String] Query param: A Git repository URI or HTTP/HTTPS context URI. If the URI points t
97
+ # @param remote [String] Query param
133
98
  #
134
- # @param rm [Boolean] Query param: Remove intermediate containers after a successful build.
99
+ # @param rm [Boolean] Query param
135
100
  #
136
- # @param shmsize [Integer] Query param: Size of `/dev/shm` in bytes. The size must be greater than 0. If om
101
+ # @param shmsize [Integer] Query param
137
102
  #
138
- # @param squash [Boolean] Query param: Squash the resulting images layers into a single layer.
139
- # \*(Experimen
103
+ # @param squash [Boolean] Query param
140
104
  #
141
- # @param t [String] Query param: A name and optional tag to apply to the image in the `name:tag` for
105
+ # @param t [String] Query param
142
106
  #
143
- # @param target [String] Query param: Target build stage
107
+ # @param target [String] Query param
144
108
  #
145
- # @param version [Symbol, DockerEngineRuby::Models::ImageBuildParams::Version] Query param: Version of the builder backend to use.
109
+ # @param version [Symbol, DockerEngineRuby::Models::ImageBuildParams::Version] Query param
146
110
  #
147
- # @param x_registry_config [String] Header param: This is a base64-encoded JSON object with auth configurations for
111
+ # @param x_registry_config [String] Header param
148
112
  #
149
113
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
150
114
  #
@@ -186,7 +150,7 @@ module DockerEngineRuby
186
150
  path: "build",
187
151
  query: parsed.slice(*query_params),
188
152
  headers: {
189
- "content-type" => "application/octet-stream",
153
+ "content-type" => "application/x-tar",
190
154
  **parsed.except(:body, *query_params)
191
155
  }.transform_keys(
192
156
  x_registry_config: "x-registry-config"
@@ -197,23 +161,15 @@ module DockerEngineRuby
197
161
  )
198
162
  end
199
163
 
200
- # Some parameter documentations has been truncated, see
201
- # {DockerEngineRuby::Models::ImageBuildPruneParams} for more details.
202
- #
203
164
  # Delete builder cache
204
165
  #
205
166
  # @overload build_prune(all: nil, filters: nil, max_used_space: nil, min_free_space: nil, reserved_space: nil, request_options: {})
206
167
  #
207
- # @param all [Boolean] Remove all types of build cache
208
- #
209
- # @param filters [String] A JSON encoded value of the filters (a `map[string][]string`) to
210
- #
211
- # @param max_used_space [Integer] Maximum amount of disk space allowed to keep for cache
212
- #
213
- # @param min_free_space [Integer] Target amount of free disk space after pruning
214
- #
215
- # @param reserved_space [Integer] Amount of disk space in bytes to keep for cache
216
- #
168
+ # @param all [Boolean]
169
+ # @param filters [String]
170
+ # @param max_used_space [Integer]
171
+ # @param min_free_space [Integer]
172
+ # @param reserved_space [Integer]
217
173
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
218
174
  #
219
175
  # @return [DockerEngineRuby::Models::ImageBuildPruneResponse]
@@ -241,19 +197,19 @@ module DockerEngineRuby
241
197
  #
242
198
  # @overload commit(author: nil, changes: nil, comment: nil, container: nil, pause: nil, repo: nil, tag: nil, args_escaped: nil, attach_stderr: nil, attach_stdin: nil, attach_stdout: nil, cmd: nil, domainname: nil, entrypoint: nil, env: nil, exposed_ports: nil, healthcheck: nil, hostname: nil, image: nil, labels: nil, network_disabled: nil, on_build: nil, open_stdin: nil, shell: nil, stdin_once: nil, stop_signal: nil, stop_timeout: nil, tty: nil, user: nil, volumes: nil, working_dir: nil, request_options: {})
243
199
  #
244
- # @param author [String] Query param: Author of the image (e.g., `John Hannibal Smith <hannibal@a-team.co
200
+ # @param author [String] Query param
245
201
  #
246
- # @param changes [String] Query param: `Dockerfile` instructions to apply while committing
202
+ # @param changes [String] Query param
247
203
  #
248
- # @param comment [String] Query param: Commit message
204
+ # @param comment [String] Query param
249
205
  #
250
- # @param container [String] Query param: The ID or name of the container to commit
206
+ # @param container [String] Query param
251
207
  #
252
- # @param pause [Boolean] Query param: Whether to pause the container before committing
208
+ # @param pause [Boolean] Query param
253
209
  #
254
- # @param repo [String] Query param: Repository name for the created image
210
+ # @param repo [String] Query param
255
211
  #
256
- # @param tag [String] Query param: Tag name for the create image
212
+ # @param tag [String] Query param
257
213
  #
258
214
  # @param args_escaped [Boolean, nil] Body param: Command is already escaped (Windows only)
259
215
  #
@@ -271,7 +227,7 @@ module DockerEngineRuby
271
227
  #
272
228
  # @param env [Array<String>] Body param: A list of environment variables to set inside the container in the
273
229
  #
274
- # @param exposed_ports [Hash{Symbol=>Object}, nil] Body param: An object mapping ports to an empty object in the form:
230
+ # @param exposed_ports [Hash{Symbol=>Hash{Symbol=>Object}}, nil] Body param: An object mapping ports to an empty object in the form:
275
231
  #
276
232
  # @param healthcheck [DockerEngineRuby::Models::Config::Healthcheck] Body param: A test to perform to check that the container is healthy.
277
233
  #
@@ -299,7 +255,7 @@ module DockerEngineRuby
299
255
  #
300
256
  # @param user [String] Body param: Commands run as this user inside the container. If omitted, commands
301
257
  #
302
- # @param volumes [Hash{Symbol=>Object}] Body param: An object mapping mount point paths inside the container to empty
258
+ # @param volumes [Hash{Symbol=>Hash{Symbol=>Object}}] Body param: An object mapping mount point paths inside the container to empty
303
259
  #
304
260
  # @param working_dir [String] Body param: The working directory for commands to run in.
305
261
  #
@@ -321,42 +277,12 @@ module DockerEngineRuby
321
277
  )
322
278
  end
323
279
 
324
- # Some parameter documentations has been truncated, see
325
- # {DockerEngineRuby::Models::ImageGetParams} for more details.
326
- #
327
- # Get a tarball containing all images and metadata for a repository.
328
- #
329
- # If `name` is a specific name and tag (e.g. `ubuntu:latest`), then only that
330
- # image (and its parents) are returned. If `name` is an image ID, similarly only
331
- # that image (and its parents) are returned, but with the exclusion of the
332
- # `repositories` file in the tarball, as there were no image names referenced.
333
- #
334
- # ### Image tarball format
335
- #
336
- # An image tarball contains
337
- # [Content as defined in the OCI Image Layout Specification](https://github.com/opencontainers/image-spec/blob/v1.1.1/image-layout.md#content).
338
- #
339
- # Additionally, includes the manifest.json file associated with a backwards
340
- # compatible docker save format.
341
- #
342
- # If the tarball defines a repository, the tarball should also include a
343
- # `repositories` file at the root that contains a list of repository and tag names
344
- # mapped to layer IDs.
345
- #
346
- # ```json
347
- # {
348
- # "hello-world": {
349
- # "latest": "565a9d68a73f6706862bfe8409a7f659776d4d60a8d096eb4a3cbce6999cc2a1"
350
- # }
351
- # }
352
- # ```
280
+ # Export an image
353
281
  #
354
282
  # @overload get(name, platform: nil, request_options: {})
355
283
  #
356
- # @param name [String] Image name or ID
357
- #
358
- # @param platform [Array<String>] JSON encoded OCI platform describing a platform which will be used
359
- #
284
+ # @param name [String]
285
+ # @param platform [Array<String>]
360
286
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
361
287
  #
362
288
  # @return [StringIO]
@@ -368,30 +294,18 @@ module DockerEngineRuby
368
294
  method: :get,
369
295
  path: ["images/%1$s/get", name],
370
296
  query: parsed,
371
- headers: {"accept" => "application/x-tar"},
297
+ headers: {"accept" => "application/octet-stream"},
372
298
  model: StringIO,
373
299
  options: options
374
300
  )
375
301
  end
376
302
 
377
- # Some parameter documentations has been truncated, see
378
- # {DockerEngineRuby::Models::ImageGetAllParams} for more details.
379
- #
380
- # Get a tarball containing all images and metadata for several image repositories.
381
- #
382
- # For each value of the `names` parameter: if it is a specific name and tag (e.g.
383
- # `ubuntu:latest`), then only that image (and its parents) are returned; if it is
384
- # an image ID, similarly only that image (and its parents) are returned and there
385
- # would be no names referenced in the 'repositories' file for this image ID.
386
- #
387
- # For details on the format, see the [export image endpoint](#operation/ImageGet).
303
+ # Export several images
388
304
  #
389
305
  # @overload get_all(names: nil, platform: nil, request_options: {})
390
306
  #
391
- # @param names [Array<String>] Image names to filter by
392
- #
393
- # @param platform [Array<String>] JSON encoded OCI platform(s) which will be used to select the
394
- #
307
+ # @param names [Array<String>]
308
+ # @param platform [Array<String>]
395
309
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
396
310
  #
397
311
  # @return [StringIO]
@@ -403,23 +317,18 @@ module DockerEngineRuby
403
317
  method: :get,
404
318
  path: "images/get",
405
319
  query: parsed,
406
- headers: {"accept" => "application/x-tar"},
320
+ headers: {"accept" => "application/octet-stream"},
407
321
  model: StringIO,
408
322
  options: options
409
323
  )
410
324
  end
411
325
 
412
- # Some parameter documentations has been truncated, see
413
- # {DockerEngineRuby::Models::ImageHistoryParams} for more details.
414
- #
415
- # Return parent layers of an image.
326
+ # Get the history of an image
416
327
  #
417
328
  # @overload history(name, platform: nil, request_options: {})
418
329
  #
419
- # @param name [String] Image name or ID
420
- #
421
- # @param platform [String] JSON-encoded OCI platform to select the platform-variant.
422
- #
330
+ # @param name [String]
331
+ # @param platform [String]
423
332
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
424
333
  #
425
334
  # @return [Array<DockerEngineRuby::Models::HistoryItem>]
@@ -436,14 +345,12 @@ module DockerEngineRuby
436
345
  )
437
346
  end
438
347
 
439
- # Return low-level information about an image.
348
+ # Inspect an image
440
349
  #
441
350
  # @overload inspect_(name, manifests: nil, request_options: {})
442
351
  #
443
- # @param name [String] Image name or id
444
- #
445
- # @param manifests [Boolean] Include Manifests in the image summary.
446
- #
352
+ # @param name [String]
353
+ # @param manifests [Boolean]
447
354
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
448
355
  #
449
356
  # @return [DockerEngineRuby::Models::Image]
@@ -460,20 +367,15 @@ module DockerEngineRuby
460
367
  )
461
368
  end
462
369
 
463
- # Some parameter documentations has been truncated, see
464
- # {DockerEngineRuby::Models::ImageLoadParams} for more details.
465
- #
466
- # Load a set of images and tags into a repository.
467
- #
468
- # For details on the format, see the [export image endpoint](#operation/ImageGet).
370
+ # Import images
469
371
  #
470
372
  # @overload load_(body:, platform: nil, quiet: nil, request_options: {})
471
373
  #
472
374
  # @param body [Pathname, StringIO, IO, String, DockerEngineRuby::FilePart] Body param
473
375
  #
474
- # @param platform [Array<String>] Query param: JSON encoded OCI platform(s) which will be used to select the
376
+ # @param platform [Array<String>] Query param
475
377
  #
476
- # @param quiet [Boolean] Query param: Suppress progress details during load.
378
+ # @param quiet [Boolean] Query param
477
379
  #
478
380
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
479
381
  #
@@ -486,22 +388,18 @@ module DockerEngineRuby
486
388
  method: :post,
487
389
  path: "images/load",
488
390
  query: parsed.except(:body),
489
- headers: {"content-type" => "application/x-tar"},
391
+ headers: {"content-type" => "application/octet-stream"},
490
392
  body: parsed[:body],
491
393
  model: NilClass,
492
394
  options: options
493
395
  )
494
396
  end
495
397
 
496
- # Some parameter documentations has been truncated, see
497
- # {DockerEngineRuby::Models::ImagePruneParams} for more details.
498
- #
499
398
  # Delete unused images
500
399
  #
501
400
  # @overload prune(filters: nil, request_options: {})
502
401
  #
503
- # @param filters [String] Filters to process on the prune list, encoded as JSON (a `map[string][]string`).
504
- #
402
+ # @param filters [String]
505
403
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
506
404
  #
507
405
  # @return [DockerEngineRuby::Models::ImagePruneResponse]
@@ -518,47 +416,41 @@ module DockerEngineRuby
518
416
  )
519
417
  end
520
418
 
521
- # Some parameter documentations has been truncated, see
522
- # {DockerEngineRuby::Models::ImagePullParams} for more details.
523
- #
524
- # Pull or import an image.
419
+ # Create an image
525
420
  #
526
- # @overload pull(changes: nil, from_image: nil, from_src: nil, message: nil, platform: nil, repo: nil, tag: nil, body: nil, x_registry_auth: nil, request_options: {})
421
+ # @overload pull(body:, changes: nil, from_image: nil, from_src: nil, message: nil, platform: nil, repo: nil, tag: nil, x_registry_auth: nil, request_options: {})
527
422
  #
528
- # @param changes [Array<String>] Query param: Apply `Dockerfile` instructions to the image that is created,
423
+ # @param body [String] Body param
529
424
  #
530
- # @param from_image [String] Query param: Name of the image to pull. If the name includes a tag or digest, sp
425
+ # @param changes [Array<String>] Query param
531
426
  #
532
- # @param from_src [String] Query param: Source to import. The value may be a URL from which the image can b
427
+ # @param from_image [String] Query param
533
428
  #
534
- # @param message [String] Query param: Set commit message for imported image.
429
+ # @param from_src [String] Query param
535
430
  #
536
- # @param platform [String] Query param: Platform in the format os[/arch[/variant]].
431
+ # @param message [String] Query param
537
432
  #
538
- # @param repo [String] Query param: Repository name given to an image when it is imported. The repo may
433
+ # @param platform [String] Query param
539
434
  #
540
- # @param tag [String] Query param: Tag or digest. If empty when pulling an image, this causes all tags
435
+ # @param repo [String] Query param
541
436
  #
542
- # @param body [String] Body param
437
+ # @param tag [String] Query param
543
438
  #
544
- # @param x_registry_auth [String] Header param: A base64url-encoded auth configuration.
439
+ # @param x_registry_auth [String] Header param
545
440
  #
546
441
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
547
442
  #
548
443
  # @return [nil]
549
444
  #
550
445
  # @see DockerEngineRuby::Models::ImagePullParams
551
- def pull(params = {})
446
+ def pull(params)
552
447
  parsed, options = DockerEngineRuby::ImagePullParams.dump_request(params)
553
448
  query_params = [:changes, :from_image, :from_src, :message, :platform, :repo, :tag]
554
449
  @client.request(
555
450
  method: :post,
556
451
  path: "images/create",
557
452
  query: parsed.slice(*query_params).transform_keys(from_image: "fromImage", from_src: "fromSrc"),
558
- headers: {
559
- "content-type" => "application/octet-stream",
560
- **parsed.except(:body, *query_params)
561
- }.transform_keys(
453
+ headers: {"content-type" => "text/plain", **parsed.except(:body, *query_params)}.transform_keys(
562
454
  x_registry_auth: "x-registry-auth"
563
455
  ),
564
456
  body: parsed[:body],
@@ -567,26 +459,17 @@ module DockerEngineRuby
567
459
  )
568
460
  end
569
461
 
570
- # Some parameter documentations has been truncated, see
571
- # {DockerEngineRuby::Models::ImagePushParams} for more details.
572
- #
573
- # Push an image to a registry.
574
- #
575
- # If you wish to push an image on to a private registry, that image must already
576
- # have a tag which references the registry. For example,
577
- # `registry.example.com/myimage:latest`.
578
- #
579
- # The push is cancelled if the HTTP connection is closed.
462
+ # Push an image
580
463
  #
581
464
  # @overload push(name, x_registry_auth:, platform: nil, tag: nil, request_options: {})
582
465
  #
583
- # @param name [String] Path param: Name of the image to push. For example, `registry.example.com/myimag
466
+ # @param name [String] Path param
584
467
  #
585
- # @param x_registry_auth [String] Header param: A base64url-encoded auth configuration.
468
+ # @param x_registry_auth [String] Header param
586
469
  #
587
- # @param platform [String] Query param: JSON-encoded OCI platform to select the platform-variant to push.
470
+ # @param platform [String] Query param
588
471
  #
589
- # @param tag [String] Query param: Tag of the image to push. For example, `latest`. If no tag is provi
472
+ # @param tag [String] Query param
590
473
  #
591
474
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
592
475
  #
@@ -606,19 +489,13 @@ module DockerEngineRuby
606
489
  )
607
490
  end
608
491
 
609
- # Some parameter documentations has been truncated, see
610
- # {DockerEngineRuby::Models::ImageSearchParams} for more details.
611
- #
612
- # Search for an image on Docker Hub.
492
+ # Search images
613
493
  #
614
494
  # @overload search(term:, filters: nil, limit: nil, request_options: {})
615
495
  #
616
- # @param term [String] Term to search
617
- #
618
- # @param filters [String] A JSON encoded value of the filters (a `map[string][]string`) to process on the
619
- #
620
- # @param limit [Integer] Maximum number of results to return
621
- #
496
+ # @param term [String]
497
+ # @param filters [String]
498
+ # @param limit [Integer]
622
499
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
623
500
  #
624
501
  # @return [Array<DockerEngineRuby::Models::ImageSearchResponseItem>]
@@ -635,20 +512,13 @@ module DockerEngineRuby
635
512
  )
636
513
  end
637
514
 
638
- # Create a tag that refers to a source image.
639
- #
640
- # This creates an additional reference (tag) to the source image. The tag can
641
- # include a different repository name and/or tag. If the repository or tag already
642
- # exists, it will be overwritten.
515
+ # Tag an image
643
516
  #
644
517
  # @overload tag(name, repo: nil, tag: nil, request_options: {})
645
518
  #
646
- # @param name [String] Image name or ID to tag.
647
- #
648
- # @param repo [String] The repository to tag in. For example, `someuser/someimage`.
649
- #
650
- # @param tag [String] The name of the new tag.
651
- #
519
+ # @param name [String]
520
+ # @param repo [String]
521
+ # @param tag [String]
652
522
  # @param request_options [DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}, nil]
653
523
  #
654
524
  # @return [nil]