docker-api 1.15.0 → 1.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +26 -1
  3. data/Rakefile +37 -0
  4. data/TESTING.md +61 -0
  5. data/lib/docker.rb +8 -1
  6. data/lib/docker/container.rb +44 -80
  7. data/lib/docker/exec.rb +98 -0
  8. data/lib/docker/image.rb +4 -3
  9. data/lib/docker/util.rb +79 -0
  10. data/lib/docker/version.rb +2 -2
  11. data/spec/docker/container_spec.rb +192 -56
  12. data/spec/docker/event_spec.rb +4 -4
  13. data/spec/docker/exec_spec.rb +197 -0
  14. data/spec/docker/image_spec.rb +131 -102
  15. data/spec/docker_spec.rb +37 -27
  16. data/spec/fixtures/build_from_dir/Dockerfile +2 -2
  17. data/spec/fixtures/export.tar +0 -0
  18. data/spec/fixtures/top/Dockerfile +2 -2
  19. data/spec/spec_helper.rb +10 -0
  20. data/spec/support/vcr.rb +5 -0
  21. data/spec/vcr/Docker/_authenticate_/with_valid_credentials/logs_in_and_sets_the_creds.yml +6 -8
  22. data/spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml +7 -9
  23. data/spec/vcr/Docker/_validate_version/when_nothing_is_raised/validate_version_/.yml +7 -9
  24. data/spec/vcr/Docker/_version/returns_the_version_as_a_Hash.yml +7 -9
  25. data/spec/vcr/Docker_Container/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml +46 -139
  26. data/spec/vcr/Docker_Container/_attach/with_normal_sized_chunks/yields_each_chunk.yml +62 -20
  27. data/spec/vcr/Docker_Container/_attach/with_very_small_chunks/yields_each_chunk.yml +62 -20
  28. data/spec/vcr/Docker_Container/_changes/returns_the_changes_as_an_array.yml +71 -28
  29. data/spec/vcr/Docker_Container/_commit/creates_a_new_Image_from_the_Container_s_changes.yml +69 -23
  30. data/spec/vcr/Docker_Container/_copy/when_the_file_does_not_exist/raises_an_error.yml +134 -0
  31. data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_directory/yields_each_chunk_of_the_tarred_directory.yml +73 -290
  32. data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_file/yields_each_chunk_of_the_tarred_file.yml +51 -211
  33. data/spec/vcr/Docker_Container/_create/when_creating_a_container_named_bob/should_have_name_set_to_bob.yml +36 -17
  34. data/spec/vcr/Docker_Container/_create/when_the_Container_does_not_yet_exist/when_the_HTTP_request_returns_a_200/sets_the_id.yml +30 -9
  35. data/spec/vcr/Docker_Container/_delete/deletes_the_container.yml +17 -23
  36. data/spec/vcr/Docker_Container/_exec/when_detach_is_true/returns_the_Docker_Exec_object.yml +151 -0
  37. data/spec/vcr/Docker_Container/_exec/when_passed_a_block/streams_the_stdout/stderr_messages.yml +153 -0
  38. data/spec/vcr/Docker_Container/_exec/when_passed_only_a_command/returns_the_stdout/stderr_messages.yml +153 -0
  39. data/spec/vcr/Docker_Container/_exec/when_stdin_object_is_passed/returns_the_stdout/stderr_messages.yml +100 -0
  40. data/spec/vcr/Docker_Container/_exec/when_tty_is_true/returns_the_raw_stdout/stderr_output.yml +152 -0
  41. data/spec/vcr/Docker_Container/_export/yields_each_chunk.yml +263 -28
  42. data/spec/vcr/Docker_Container/_get/when_the_HTTP_response_is_a_200/materializes_the_Container_into_a_Docker_Container.yml +36 -17
  43. data/spec/vcr/Docker_Container/_json/returns_the_description_as_a_Hash.yml +36 -17
  44. data/spec/vcr/Docker_Container/_kill/kills_the_container.yml +55 -53
  45. data/spec/vcr/Docker_Container/_kill/with_a_kill_signal/kills_the_container.yml +74 -96
  46. data/spec/vcr/Docker_Container/_logs/when_not_selecting_any_stream/raises_a_client_error.yml +84 -81
  47. data/spec/vcr/Docker_Container/_logs/when_selecting_stdout/returns_blank_logs.yml +34 -15
  48. data/spec/vcr/Docker_Container/_pause/pauses_the_container.yml +98 -45
  49. data/spec/vcr/Docker_Container/_restart/restarts_the_container.yml +88 -56
  50. data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_does_not_return_status_code_of_0/raises_an_error.yml +39 -22
  51. data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_returns_a_status_code_of_0/creates_a_new_container_to_run_the_specified_command.yml +212 -60
  52. data/spec/vcr/Docker_Container/_start/starts_the_container.yml +45 -30
  53. data/spec/vcr/Docker_Container/_stop/stops_the_container.yml +54 -83
  54. data/spec/vcr/Docker_Container/_streaming_logs/when_not_selecting_any_stream/raises_a_client_error.yml +84 -81
  55. data/spec/vcr/Docker_Container/_streaming_logs/when_selecting_stdout/returns_blank_logs.yml +46 -30
  56. data/spec/vcr/Docker_Container/_top/returns_the_top_commands_as_an_Array.yml +103 -40
  57. data/spec/vcr/Docker_Container/_unpause/unpauses_the_container.yml +81 -57
  58. data/spec/vcr/Docker_Container/_wait/waits_for_the_command_to_finish.yml +39 -22
  59. data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/sets_the_read_timeout_to_that_amount_of_time.yml +39 -22
  60. data/spec/vcr/Docker_Exec/_create/when_the_HTTP_request_returns_a_201/sets_the_id.yml +128 -0
  61. data/spec/vcr/Docker_Exec/_resize/when_exec_instance_has_TTY_enabled/returns_a_200.yml +155 -0
  62. data/spec/vcr/Docker_Exec/_start_/when_detach_is_set_to_false/block_is_passed/attaches_to_the_stream.yml +152 -0
  63. data/spec/vcr/Docker_Exec/_start_/when_detach_is_set_to_false/returns_the_stdout_and_stderr_messages.yml +152 -0
  64. data/spec/vcr/Docker_Exec/_start_/when_detach_is_set_to_true/returns_empty_stdout_and_stderr_messages.yml +151 -0
  65. data/spec/vcr/Docker_Exec/_start_/when_the_HTTP_request_returns_a_201/starts_the_exec_instance.yml +151 -0
  66. data/spec/vcr/Docker_Exec/_start_/when_the_command_has_already_run/raises_an_error.yml +151 -0
  67. data/spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml +86 -200
  68. data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/with_a_block_capturing_build_output/calls_the_block_and_passes_build_output.yml +10 -14
  69. data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/with_specifying_a_repo_in_the_query_parameters/builds_an_image_and_tags_it.yml +147 -39
  70. data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/without_query_parameters/builds_an_image.yml +10 -14
  71. data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml +12 -14
  72. data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_a_block_capturing_build_output/calls_the_block_and_passes_build_output.yml +118 -16
  73. data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_credentials_passed/sends_X-Registry-Config_header.yml +118 -14
  74. data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_no_query_parameters/builds_the_image.yml +109 -37
  75. data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_specifying_a_repo_in_the_query_parameters/builds_the_image_and_tags_it.yml +214 -60
  76. data/spec/vcr/Docker_Image/_create/when_the_Image_does_not_yet_exist_and_the_body_is_a_Hash/sets_the_id_and_sends_Docker_creds.yml +41 -2631
  77. data/spec/vcr/Docker_Image/_exist_/when_the_image_does_exist/returns_true.yml +12 -19
  78. data/spec/vcr/Docker_Image/_get/when_the_image_does_exist/returns_the_new_image.yml +7 -9
  79. data/spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml +17 -198
  80. data/spec/vcr/Docker_Image/_import/when_the_argument_is_a_URI/when_the_URI_is_invalid/raises_an_error.yml +26 -30
  81. data/spec/vcr/Docker_Image/_import/when_the_argument_is_a_URI/when_the_URI_is_valid/returns_an_Image.yml +246 -22
  82. data/spec/vcr/Docker_Image/_import/when_the_file_does_exist/creates_the_Image.yml +35 -10
  83. data/spec/vcr/Docker_Image/_insert_local/when_a_direcory_is_passed/inserts_the_directory.yml +1249 -74
  84. data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/creates_a_new_image.yml +84 -94
  85. data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/leave_no_intermediate_containers.yml +70 -92
  86. data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_exist/creates_a_new_Image_that_has_that_file.yml +125 -98
  87. data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_not_exist/raises_an_error.yml +13 -60
  88. data/spec/vcr/Docker_Image/_insert_local/when_there_are_multiple_files_passed/creates_a_new_Image_that_has_each_file.yml +190 -135
  89. data/spec/vcr/Docker_Image/_json/returns_additional_information_about_image_image.yml +15 -198
  90. data/spec/vcr/Docker_Image/_push/pushes_the_Image.yml +169 -264
  91. data/spec/vcr/Docker_Image/_push/when_there_are_no_credentials/still_pushes.yml +175 -4543
  92. data/spec/vcr/Docker_Image/_refresh_/updates_the_info_hash.yml +90 -206
  93. data/spec/vcr/Docker_Image/_remove/when_no_name_is_given/removes_the_Image.yml +300 -0
  94. data/spec/vcr/Docker_Image/_run/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml +77 -207
  95. data/spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml +77 -207
  96. data/spec/vcr/Docker_Image/_run/when_the_argument_is_nil/command_configured_in_image/should_normally_show_result_if_image_has_Cmd_configured.yml +160 -0
  97. data/spec/vcr/Docker_Image/_run/when_the_argument_is_nil/no_command_configured_in_image/should_raise_an_error_if_no_command_is_specified.yml +16 -197
  98. data/spec/vcr/Docker_Image/_search/materializes_each_Image_into_a_Docker_Image.yml +151 -73
  99. data/spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml +42 -196
  100. metadata +67 -41
  101. data/spec/vcr/Docker_Container/_commit/if_run_is_passed_it_saves_the_command_in_the_image/saves_the_command.yml +0 -58
  102. data/spec/vcr/Docker_Container/_streaming_logs/when_not_selecting_any_stream/returns_the_error_message.yml +0 -163
  103. data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/and_a_command_runs_for_too_long/raises_a_ServerError.yml +0 -58
  104. data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_credentials_passed/sends_Docker_creds.yml +0 -41
  105. data/spec/vcr/Docker_Image/_remove/removes_the_Image.yml +0 -276
@@ -0,0 +1,152 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: "<DOCKER_HOST>/v1.15/containers/create"
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"Cmd":["sleep","10"],"Image":"debian:wheezy"}'
9
+ headers:
10
+ User-Agent:
11
+ - Swipely/Docker-API 1.15.0
12
+ Content-Type:
13
+ - application/json
14
+ response:
15
+ status:
16
+ code: 201
17
+ message:
18
+ headers:
19
+ Content-Type:
20
+ - application/json
21
+ Date:
22
+ - Mon, 01 Dec 2014 18:08:25 GMT
23
+ Content-Length:
24
+ - '90'
25
+ body:
26
+ encoding: UTF-8
27
+ string: |
28
+ {"Id":"c785ced48725afe9458410fea9a177f2c7e07ce4e0ec6623f8dbd1e89e69f68f","Warnings":null}
29
+ http_version:
30
+ recorded_at: Mon, 01 Dec 2014 18:08:25 GMT
31
+ - request:
32
+ method: post
33
+ uri: "<DOCKER_HOST>/v1.15/containers/c785ced48725afe9458410fea9a177f2c7e07ce4e0ec6623f8dbd1e89e69f68f/start"
34
+ body:
35
+ encoding: UTF-8
36
+ string: "{}"
37
+ headers:
38
+ User-Agent:
39
+ - Swipely/Docker-API 1.15.0
40
+ Content-Type:
41
+ - application/json
42
+ response:
43
+ status:
44
+ code: 204
45
+ message:
46
+ headers:
47
+ Date:
48
+ - Mon, 01 Dec 2014 18:08:25 GMT
49
+ body:
50
+ encoding: UTF-8
51
+ string: ''
52
+ http_version:
53
+ recorded_at: Mon, 01 Dec 2014 18:08:25 GMT
54
+ - request:
55
+ method: post
56
+ uri: "<DOCKER_HOST>/v1.15/containers/c785ced48725afe9458410fea9a177f2c7e07ce4e0ec6623f8dbd1e89e69f68f/exec"
57
+ body:
58
+ encoding: UTF-8
59
+ string: '{"AttachStdout":true,"Cmd":["bash","-c","sleep 2; echo hello"]}'
60
+ headers:
61
+ User-Agent:
62
+ - Swipely/Docker-API 1.15.0
63
+ Content-Type:
64
+ - application/json
65
+ response:
66
+ status:
67
+ code: 201
68
+ message:
69
+ headers:
70
+ Content-Type:
71
+ - application/json
72
+ Date:
73
+ - Mon, 01 Dec 2014 18:08:26 GMT
74
+ Content-Length:
75
+ - '74'
76
+ body:
77
+ encoding: UTF-8
78
+ string: |
79
+ {"Id":"be333f32abaec0bd3b71175f5ee9d590fe5646d9647cf11ca82eda3ee8760fe2"}
80
+ http_version:
81
+ recorded_at: Mon, 01 Dec 2014 18:08:26 GMT
82
+ - request:
83
+ method: post
84
+ uri: "<DOCKER_HOST>/v1.15/exec/be333f32abaec0bd3b71175f5ee9d590fe5646d9647cf11ca82eda3ee8760fe2/start"
85
+ body:
86
+ encoding: UTF-8
87
+ string: '{"Tty":false,"Detach":false}'
88
+ headers:
89
+ User-Agent:
90
+ - Swipely/Docker-API 1.15.0
91
+ Content-Type:
92
+ - application/json
93
+ response:
94
+ status:
95
+ code: 200
96
+ message:
97
+ headers:
98
+ Content-Type:
99
+ - application/vnd.docker.raw-stream
100
+ body:
101
+ encoding: UTF-8
102
+ string: !binary |-
103
+ AQAAAAAAAAZoZWxsbwo=
104
+ http_version:
105
+ recorded_at: Mon, 01 Dec 2014 18:08:28 GMT
106
+ - request:
107
+ method: post
108
+ uri: "<DOCKER_HOST>/v1.15/containers/c785ced48725afe9458410fea9a177f2c7e07ce4e0ec6623f8dbd1e89e69f68f/kill"
109
+ body:
110
+ encoding: US-ASCII
111
+ string: ''
112
+ headers:
113
+ User-Agent:
114
+ - Swipely/Docker-API 1.15.0
115
+ Content-Type:
116
+ - text/plain
117
+ response:
118
+ status:
119
+ code: 204
120
+ message:
121
+ headers:
122
+ Date:
123
+ - Mon, 01 Dec 2014 18:08:28 GMT
124
+ body:
125
+ encoding: UTF-8
126
+ string: ''
127
+ http_version:
128
+ recorded_at: Mon, 01 Dec 2014 18:08:28 GMT
129
+ - request:
130
+ method: delete
131
+ uri: "<DOCKER_HOST>/v1.15/containers/c785ced48725afe9458410fea9a177f2c7e07ce4e0ec6623f8dbd1e89e69f68f"
132
+ body:
133
+ encoding: US-ASCII
134
+ string: ''
135
+ headers:
136
+ User-Agent:
137
+ - Swipely/Docker-API 1.15.0
138
+ Content-Type:
139
+ - text/plain
140
+ response:
141
+ status:
142
+ code: 204
143
+ message:
144
+ headers:
145
+ Date:
146
+ - Mon, 01 Dec 2014 18:08:28 GMT
147
+ body:
148
+ encoding: UTF-8
149
+ string: ''
150
+ http_version:
151
+ recorded_at: Mon, 01 Dec 2014 18:08:28 GMT
152
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,152 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: "<DOCKER_HOST>/v1.15/containers/create"
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"Cmd":["sleep","10"],"Image":"debian:wheezy"}'
9
+ headers:
10
+ User-Agent:
11
+ - Swipely/Docker-API 1.15.0
12
+ Content-Type:
13
+ - application/json
14
+ response:
15
+ status:
16
+ code: 201
17
+ message:
18
+ headers:
19
+ Content-Type:
20
+ - application/json
21
+ Date:
22
+ - Mon, 01 Dec 2014 18:08:22 GMT
23
+ Content-Length:
24
+ - '90'
25
+ body:
26
+ encoding: UTF-8
27
+ string: |
28
+ {"Id":"0eab26d344c4942ce00e2ddccbe820c990882b89ffa418046af8c4af82b406b3","Warnings":null}
29
+ http_version:
30
+ recorded_at: Mon, 01 Dec 2014 18:08:22 GMT
31
+ - request:
32
+ method: post
33
+ uri: "<DOCKER_HOST>/v1.15/containers/0eab26d344c4942ce00e2ddccbe820c990882b89ffa418046af8c4af82b406b3/start"
34
+ body:
35
+ encoding: UTF-8
36
+ string: "{}"
37
+ headers:
38
+ User-Agent:
39
+ - Swipely/Docker-API 1.15.0
40
+ Content-Type:
41
+ - application/json
42
+ response:
43
+ status:
44
+ code: 204
45
+ message:
46
+ headers:
47
+ Date:
48
+ - Mon, 01 Dec 2014 18:08:22 GMT
49
+ body:
50
+ encoding: UTF-8
51
+ string: ''
52
+ http_version:
53
+ recorded_at: Mon, 01 Dec 2014 18:08:22 GMT
54
+ - request:
55
+ method: post
56
+ uri: "<DOCKER_HOST>/v1.15/containers/0eab26d344c4942ce00e2ddccbe820c990882b89ffa418046af8c4af82b406b3/exec"
57
+ body:
58
+ encoding: UTF-8
59
+ string: '{"AttachStdout":true,"Cmd":["bash","-c","sleep 2; echo hello"]}'
60
+ headers:
61
+ User-Agent:
62
+ - Swipely/Docker-API 1.15.0
63
+ Content-Type:
64
+ - application/json
65
+ response:
66
+ status:
67
+ code: 201
68
+ message:
69
+ headers:
70
+ Content-Type:
71
+ - application/json
72
+ Date:
73
+ - Mon, 01 Dec 2014 18:08:22 GMT
74
+ Content-Length:
75
+ - '74'
76
+ body:
77
+ encoding: UTF-8
78
+ string: |
79
+ {"Id":"6ea365fb9c16518876c47637b227eb076ba7de515d0190b8e8bfee807c516e71"}
80
+ http_version:
81
+ recorded_at: Mon, 01 Dec 2014 18:08:22 GMT
82
+ - request:
83
+ method: post
84
+ uri: "<DOCKER_HOST>/v1.15/exec/6ea365fb9c16518876c47637b227eb076ba7de515d0190b8e8bfee807c516e71/start"
85
+ body:
86
+ encoding: UTF-8
87
+ string: '{"Tty":false,"Detach":false}'
88
+ headers:
89
+ User-Agent:
90
+ - Swipely/Docker-API 1.15.0
91
+ Content-Type:
92
+ - application/json
93
+ response:
94
+ status:
95
+ code: 200
96
+ message:
97
+ headers:
98
+ Content-Type:
99
+ - application/vnd.docker.raw-stream
100
+ body:
101
+ encoding: UTF-8
102
+ string: !binary |-
103
+ AQAAAAAAAAZoZWxsbwo=
104
+ http_version:
105
+ recorded_at: Mon, 01 Dec 2014 18:08:25 GMT
106
+ - request:
107
+ method: post
108
+ uri: "<DOCKER_HOST>/v1.15/containers/0eab26d344c4942ce00e2ddccbe820c990882b89ffa418046af8c4af82b406b3/kill"
109
+ body:
110
+ encoding: US-ASCII
111
+ string: ''
112
+ headers:
113
+ User-Agent:
114
+ - Swipely/Docker-API 1.15.0
115
+ Content-Type:
116
+ - text/plain
117
+ response:
118
+ status:
119
+ code: 204
120
+ message:
121
+ headers:
122
+ Date:
123
+ - Mon, 01 Dec 2014 18:08:25 GMT
124
+ body:
125
+ encoding: UTF-8
126
+ string: ''
127
+ http_version:
128
+ recorded_at: Mon, 01 Dec 2014 18:08:25 GMT
129
+ - request:
130
+ method: delete
131
+ uri: "<DOCKER_HOST>/v1.15/containers/0eab26d344c4942ce00e2ddccbe820c990882b89ffa418046af8c4af82b406b3"
132
+ body:
133
+ encoding: US-ASCII
134
+ string: ''
135
+ headers:
136
+ User-Agent:
137
+ - Swipely/Docker-API 1.15.0
138
+ Content-Type:
139
+ - text/plain
140
+ response:
141
+ status:
142
+ code: 204
143
+ message:
144
+ headers:
145
+ Date:
146
+ - Mon, 01 Dec 2014 18:08:25 GMT
147
+ body:
148
+ encoding: UTF-8
149
+ string: ''
150
+ http_version:
151
+ recorded_at: Mon, 01 Dec 2014 18:08:25 GMT
152
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,151 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: "<DOCKER_HOST>/v1.15/containers/create"
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"Cmd":["sleep","10"],"Image":"debian:wheezy"}'
9
+ headers:
10
+ User-Agent:
11
+ - Swipely/Docker-API 1.15.0
12
+ Content-Type:
13
+ - application/json
14
+ response:
15
+ status:
16
+ code: 201
17
+ message:
18
+ headers:
19
+ Content-Type:
20
+ - application/json
21
+ Date:
22
+ - Mon, 01 Dec 2014 18:08:28 GMT
23
+ Content-Length:
24
+ - '90'
25
+ body:
26
+ encoding: UTF-8
27
+ string: |
28
+ {"Id":"e7be5ab7ae39670daddf9fc339ab8f9ff79bc5a237c6e1a87fa4f7012f0b0b9b","Warnings":null}
29
+ http_version:
30
+ recorded_at: Mon, 01 Dec 2014 18:08:28 GMT
31
+ - request:
32
+ method: post
33
+ uri: "<DOCKER_HOST>/v1.15/containers/e7be5ab7ae39670daddf9fc339ab8f9ff79bc5a237c6e1a87fa4f7012f0b0b9b/start"
34
+ body:
35
+ encoding: UTF-8
36
+ string: "{}"
37
+ headers:
38
+ User-Agent:
39
+ - Swipely/Docker-API 1.15.0
40
+ Content-Type:
41
+ - application/json
42
+ response:
43
+ status:
44
+ code: 204
45
+ message:
46
+ headers:
47
+ Date:
48
+ - Mon, 01 Dec 2014 18:08:29 GMT
49
+ body:
50
+ encoding: UTF-8
51
+ string: ''
52
+ http_version:
53
+ recorded_at: Mon, 01 Dec 2014 18:08:29 GMT
54
+ - request:
55
+ method: post
56
+ uri: "<DOCKER_HOST>/v1.15/containers/e7be5ab7ae39670daddf9fc339ab8f9ff79bc5a237c6e1a87fa4f7012f0b0b9b/exec"
57
+ body:
58
+ encoding: UTF-8
59
+ string: '{"Cmd":["date"]}'
60
+ headers:
61
+ User-Agent:
62
+ - Swipely/Docker-API 1.15.0
63
+ Content-Type:
64
+ - application/json
65
+ response:
66
+ status:
67
+ code: 201
68
+ message:
69
+ headers:
70
+ Content-Type:
71
+ - application/json
72
+ Date:
73
+ - Mon, 01 Dec 2014 18:08:29 GMT
74
+ Content-Length:
75
+ - '74'
76
+ body:
77
+ encoding: UTF-8
78
+ string: |
79
+ {"Id":"6a6c1e735071df8900715420f557031634f72da0d66eac6780b52792f39db7fd"}
80
+ http_version:
81
+ recorded_at: Mon, 01 Dec 2014 18:08:29 GMT
82
+ - request:
83
+ method: post
84
+ uri: "<DOCKER_HOST>/v1.15/exec/6a6c1e735071df8900715420f557031634f72da0d66eac6780b52792f39db7fd/start"
85
+ body:
86
+ encoding: UTF-8
87
+ string: '{"Tty":false,"Detach":true}'
88
+ headers:
89
+ User-Agent:
90
+ - Swipely/Docker-API 1.15.0
91
+ Content-Type:
92
+ - application/json
93
+ response:
94
+ status:
95
+ code: 204
96
+ message:
97
+ headers:
98
+ Date:
99
+ - Mon, 01 Dec 2014 18:08:29 GMT
100
+ body:
101
+ encoding: UTF-8
102
+ string: ''
103
+ http_version:
104
+ recorded_at: Mon, 01 Dec 2014 18:08:29 GMT
105
+ - request:
106
+ method: post
107
+ uri: "<DOCKER_HOST>/v1.15/containers/e7be5ab7ae39670daddf9fc339ab8f9ff79bc5a237c6e1a87fa4f7012f0b0b9b/kill"
108
+ body:
109
+ encoding: US-ASCII
110
+ string: ''
111
+ headers:
112
+ User-Agent:
113
+ - Swipely/Docker-API 1.15.0
114
+ Content-Type:
115
+ - text/plain
116
+ response:
117
+ status:
118
+ code: 204
119
+ message:
120
+ headers:
121
+ Date:
122
+ - Mon, 01 Dec 2014 18:08:29 GMT
123
+ body:
124
+ encoding: UTF-8
125
+ string: ''
126
+ http_version:
127
+ recorded_at: Mon, 01 Dec 2014 18:08:29 GMT
128
+ - request:
129
+ method: delete
130
+ uri: "<DOCKER_HOST>/v1.15/containers/e7be5ab7ae39670daddf9fc339ab8f9ff79bc5a237c6e1a87fa4f7012f0b0b9b"
131
+ body:
132
+ encoding: US-ASCII
133
+ string: ''
134
+ headers:
135
+ User-Agent:
136
+ - Swipely/Docker-API 1.15.0
137
+ Content-Type:
138
+ - text/plain
139
+ response:
140
+ status:
141
+ code: 204
142
+ message:
143
+ headers:
144
+ Date:
145
+ - Mon, 01 Dec 2014 18:08:29 GMT
146
+ body:
147
+ encoding: UTF-8
148
+ string: ''
149
+ http_version:
150
+ recorded_at: Mon, 01 Dec 2014 18:08:29 GMT
151
+ recorded_with: VCR 2.9.3