docker-api 1.3.1 → 1.4.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 (42) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -1
  3. data/lib/docker/container.rb +7 -0
  4. data/lib/docker/version.rb +2 -2
  5. data/spec/docker/container_spec.rb +21 -6
  6. data/spec/docker/image_spec.rb +1 -3
  7. data/spec/docker_spec.rb +2 -1
  8. data/spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml +12 -15
  9. data/spec/vcr/Docker/_validate_version/when_nothing_is_raised/validate_version_/.yml +12 -15
  10. data/spec/vcr/Docker/_version/returns_the_version_as_a_Hash.yml +12 -15
  11. data/spec/vcr/Docker_Container/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml +207 -3364
  12. data/spec/vcr/Docker_Container/_attach/yields_each_chunk.yml +31 -39
  13. data/spec/vcr/Docker_Container/_changes/returns_the_changes_as_an_array.yml +45 -57
  14. data/spec/vcr/Docker_Container/_commit/creates_a_new_Image_from_the_Container_s_changes.yml +34 -43
  15. data/spec/vcr/Docker_Container/_create/when_the_Container_does_not_yet_exist_and_the_body_is_a_Hash/when_the_HTTP_request_returns_a_200/sets_the_id.yml +13 -16
  16. data/spec/vcr/Docker_Container/_export/yields_each_chunk.yml +52 -47
  17. data/spec/vcr/Docker_Container/_json/returns_the_description_as_a_Hash.yml +24 -30
  18. data/spec/vcr/Docker_Container/_kill/kills_the_container.yml +121 -1712
  19. data/spec/vcr/Docker_Container/_restart/restarts_the_container.yml +78 -99
  20. data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_does_not_return_status_code_of_0/raises_an_error.yml +34 -43
  21. 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 +90 -116
  22. data/spec/vcr/Docker_Container/_start/starts_the_container.yml +35 -44
  23. data/spec/vcr/Docker_Container/_stop/stops_the_container.yml +131 -1724
  24. data/spec/vcr/Docker_Container/_top/returns_the_top_commands_as_an_Array.yml +84 -0
  25. data/spec/vcr/Docker_Container/_wait/waits_for_the_command_to_finish.yml +34 -43
  26. data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/and_a_command_runs_for_too_long/raises_a_ServerError.yml +23 -29
  27. data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/sets_the_read_timeout_to_that_amount_of_time.yml +34 -43
  28. data/spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml +25 -32
  29. data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/builds_an_image.yml +43 -20
  30. data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml +41 -23
  31. data/spec/vcr/Docker_Image/_create/when_the_Image_does_not_yet_exist_and_the_body_is_a_Hash/sets_the_id.yml +12 -16
  32. data/spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml +23 -30
  33. data/spec/vcr/Docker_Image/_insert/inserts_the_url_s_file_into_a_new_Image.yml +113 -99
  34. data/spec/vcr/Docker_Image/_json/returns_additional_information_about_image_image.yml +23 -30
  35. data/spec/vcr/Docker_Image/_remove/removes_the_Image.yml +34 -44
  36. data/spec/vcr/Docker_Image/_run/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml +42 -54
  37. data/spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml +42 -54
  38. data/spec/vcr/Docker_Image/_search/materializes_each_Image_into_a_Docker_Image.yml +15 -17
  39. data/spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml +22 -29
  40. metadata +4 -6
  41. data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/builds_the_image.yml +0 -124
  42. data/spec/vcr/Docker_Image/_import/when_the_file_does_exist/creates_the_Image.yml +0 -35
@@ -2,37 +2,34 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://localhost:4243/v1.3/containers/create
5
+ uri: http://localhost:4243/v1.4/containers/create
6
6
  body:
7
7
  encoding: UTF-8
8
- string: ! '{"Cmd":["sleep","50"],"Image":"base"}'
8
+ string: '{"Cmd":["sleep","50"],"Image":"base"}'
9
9
  headers:
10
10
  Content-Type:
11
11
  - text/plain
12
12
  User-Agent:
13
- - Docker-Client/0.4.6
13
+ - Swipely/Docker-API 1.3.1
14
14
  response:
15
15
  status:
16
16
  code: 201
17
17
  message: ''
18
18
  headers:
19
- !binary "Q29udGVudC1UeXBl":
20
- - !binary |-
21
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
22
- !binary "Q29udGVudC1MZW5ndGg=":
23
- - !binary |-
24
- MjE=
25
- !binary "RGF0ZQ==":
26
- - !binary |-
27
- V2VkLCAyNiBKdW4gMjAxMyAxODowOTo1NCBHTVQ=
19
+ Content-Type:
20
+ - text/plain; charset=utf-8
21
+ Content-Length:
22
+ - '21'
23
+ Date:
24
+ - Wed, 07 Aug 2013 16:51:14 GMT
28
25
  body:
29
- encoding: US-ASCII
30
- string: ! '{"Id":"7ef2f4da261d"}'
26
+ encoding: UTF-8
27
+ string: '{"Id":"36a0e35a4922"}'
31
28
  http_version:
32
- recorded_at: Wed, 26 Jun 2013 18:09:54 GMT
29
+ recorded_at: Wed, 07 Aug 2013 16:51:15 GMT
33
30
  - request:
34
31
  method: post
35
- uri: http://localhost:4243/v1.3/containers/7ef2f4da261d/start
32
+ uri: http://localhost:4243/v1.4/containers/36a0e35a4922/start
36
33
  body:
37
34
  encoding: US-ASCII
38
35
  string: ''
@@ -40,29 +37,26 @@ http_interactions:
40
37
  Content-Type:
41
38
  - text/plain
42
39
  User-Agent:
43
- - Docker-Client/0.4.6
40
+ - Swipely/Docker-API 1.3.1
44
41
  response:
45
42
  status:
46
43
  code: 204
47
44
  message: ''
48
45
  headers:
49
- !binary "Q29udGVudC1UeXBl":
50
- - !binary |-
51
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
52
- !binary "Q29udGVudC1MZW5ndGg=":
53
- - !binary |-
54
- MA==
55
- !binary "RGF0ZQ==":
56
- - !binary |-
57
- V2VkLCAyNiBKdW4gMjAxMyAxODowOTo1NCBHTVQ=
46
+ Content-Type:
47
+ - text/plain; charset=utf-8
48
+ Content-Length:
49
+ - '0'
50
+ Date:
51
+ - Wed, 07 Aug 2013 16:51:15 GMT
58
52
  body:
59
- encoding: US-ASCII
53
+ encoding: UTF-8
60
54
  string: ''
61
55
  http_version:
62
- recorded_at: Wed, 26 Jun 2013 18:09:54 GMT
56
+ recorded_at: Wed, 07 Aug 2013 16:51:15 GMT
63
57
  - request:
64
58
  method: get
65
- uri: http://localhost:4243/v1.3/containers/json
59
+ uri: http://localhost:4243/v1.4/containers/json
66
60
  body:
67
61
  encoding: US-ASCII
68
62
  string: ''
@@ -70,30 +64,27 @@ http_interactions:
70
64
  Content-Type:
71
65
  - text/plain
72
66
  User-Agent:
73
- - Docker-Client/0.4.6
67
+ - Swipely/Docker-API 1.3.1
74
68
  response:
75
69
  status:
76
70
  code: 200
77
71
  message: ''
78
72
  headers:
79
- !binary "Q29udGVudC1UeXBl":
80
- - !binary |-
81
- YXBwbGljYXRpb24vanNvbg==
82
- !binary "Q29udGVudC1MZW5ndGg=":
83
- - !binary |-
84
- MjEw
85
- !binary "RGF0ZQ==":
86
- - !binary |-
87
- V2VkLCAyNiBKdW4gMjAxMyAxODowOTo1NSBHTVQ=
73
+ Content-Type:
74
+ - application/json
75
+ Content-Length:
76
+ - '210'
77
+ Date:
78
+ - Wed, 07 Aug 2013 16:51:15 GMT
88
79
  body:
89
- encoding: US-ASCII
90
- string: ! '[{"Id":"7ef2f4da261d5e10e3244ee16e03da09be4586a48845374933c0f3d08aa34531","Image":"base2:latest","Command":"sleep
91
- 50","Created":1372270194,"Status":"Up Less than a second","Ports":"","SizeRw":0,"SizeRootFs":0}]'
80
+ encoding: UTF-8
81
+ string: '[{"Id":"36a0e35a4922e2263b885dcbef77f549f1c9b6d997dd34033450feaf3fafb8cb","Image":"base2:latest","Command":"sleep
82
+ 50","Created":1375894274,"Status":"Up Less than a second","Ports":"","SizeRw":0,"SizeRootFs":0}]'
92
83
  http_version:
93
- recorded_at: Wed, 26 Jun 2013 18:09:55 GMT
84
+ recorded_at: Wed, 07 Aug 2013 16:51:15 GMT
94
85
  - request:
95
86
  method: post
96
- uri: http://localhost:4243/v1.3/containers/7ef2f4da261d/stop
87
+ uri: http://localhost:4243/v1.4/containers/36a0e35a4922/stop
97
88
  body:
98
89
  encoding: US-ASCII
99
90
  string: ''
@@ -101,29 +92,26 @@ http_interactions:
101
92
  Content-Type:
102
93
  - text/plain
103
94
  User-Agent:
104
- - Docker-Client/0.4.6
95
+ - Swipely/Docker-API 1.3.1
105
96
  response:
106
97
  status:
107
98
  code: 204
108
99
  message: ''
109
100
  headers:
110
- !binary "Q29udGVudC1UeXBl":
111
- - !binary |-
112
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
113
- !binary "Q29udGVudC1MZW5ndGg=":
114
- - !binary |-
115
- MA==
116
- !binary "RGF0ZQ==":
117
- - !binary |-
118
- V2VkLCAyNiBKdW4gMjAxMyAxODoxMDowNSBHTVQ=
101
+ Content-Type:
102
+ - text/plain; charset=utf-8
103
+ Content-Length:
104
+ - '0'
105
+ Date:
106
+ - Wed, 07 Aug 2013 16:51:25 GMT
119
107
  body:
120
- encoding: US-ASCII
108
+ encoding: UTF-8
121
109
  string: ''
122
110
  http_version:
123
- recorded_at: Wed, 26 Jun 2013 18:10:05 GMT
111
+ recorded_at: Wed, 07 Aug 2013 16:51:25 GMT
124
112
  - request:
125
113
  method: get
126
- uri: http://localhost:4243/v1.3/containers/json
114
+ uri: http://localhost:4243/v1.4/containers/json
127
115
  body:
128
116
  encoding: US-ASCII
129
117
  string: ''
@@ -131,29 +119,26 @@ http_interactions:
131
119
  Content-Type:
132
120
  - text/plain
133
121
  User-Agent:
134
- - Docker-Client/0.4.6
122
+ - Swipely/Docker-API 1.3.1
135
123
  response:
136
124
  status:
137
125
  code: 200
138
126
  message: ''
139
127
  headers:
140
- !binary "Q29udGVudC1UeXBl":
141
- - !binary |-
142
- YXBwbGljYXRpb24vanNvbg==
143
- !binary "Q29udGVudC1MZW5ndGg=":
144
- - !binary |-
145
- Mg==
146
- !binary "RGF0ZQ==":
147
- - !binary |-
148
- V2VkLCAyNiBKdW4gMjAxMyAxODoxMDowNSBHTVQ=
128
+ Content-Type:
129
+ - application/json
130
+ Content-Length:
131
+ - '2'
132
+ Date:
133
+ - Wed, 07 Aug 2013 16:51:25 GMT
149
134
  body:
150
- encoding: US-ASCII
151
- string: ! '[]'
135
+ encoding: UTF-8
136
+ string: '[]'
152
137
  http_version:
153
- recorded_at: Wed, 26 Jun 2013 18:10:05 GMT
138
+ recorded_at: Wed, 07 Aug 2013 16:51:25 GMT
154
139
  - request:
155
140
  method: post
156
- uri: http://localhost:4243/v1.3/containers/7ef2f4da261d/restart
141
+ uri: http://localhost:4243/v1.4/containers/36a0e35a4922/restart
157
142
  body:
158
143
  encoding: US-ASCII
159
144
  string: ''
@@ -161,29 +146,26 @@ http_interactions:
161
146
  Content-Type:
162
147
  - text/plain
163
148
  User-Agent:
164
- - Docker-Client/0.4.6
149
+ - Swipely/Docker-API 1.3.1
165
150
  response:
166
151
  status:
167
152
  code: 204
168
153
  message: ''
169
154
  headers:
170
- !binary "Q29udGVudC1UeXBl":
171
- - !binary |-
172
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
173
- !binary "Q29udGVudC1MZW5ndGg=":
174
- - !binary |-
175
- MA==
176
- !binary "RGF0ZQ==":
177
- - !binary |-
178
- V2VkLCAyNiBKdW4gMjAxMyAxODoxMDowNSBHTVQ=
155
+ Content-Type:
156
+ - text/plain; charset=utf-8
157
+ Content-Length:
158
+ - '0'
159
+ Date:
160
+ - Wed, 07 Aug 2013 16:51:25 GMT
179
161
  body:
180
- encoding: US-ASCII
162
+ encoding: UTF-8
181
163
  string: ''
182
164
  http_version:
183
- recorded_at: Wed, 26 Jun 2013 18:10:05 GMT
165
+ recorded_at: Wed, 07 Aug 2013 16:51:25 GMT
184
166
  - request:
185
167
  method: get
186
- uri: http://localhost:4243/v1.3/containers/json
168
+ uri: http://localhost:4243/v1.4/containers/json
187
169
  body:
188
170
  encoding: US-ASCII
189
171
  string: ''
@@ -191,25 +173,22 @@ http_interactions:
191
173
  Content-Type:
192
174
  - text/plain
193
175
  User-Agent:
194
- - Docker-Client/0.4.6
176
+ - Swipely/Docker-API 1.3.1
195
177
  response:
196
178
  status:
197
179
  code: 200
198
180
  message: ''
199
181
  headers:
200
- !binary "Q29udGVudC1UeXBl":
201
- - !binary |-
202
- YXBwbGljYXRpb24vanNvbg==
203
- !binary "Q29udGVudC1MZW5ndGg=":
204
- - !binary |-
205
- MjEw
206
- !binary "RGF0ZQ==":
207
- - !binary |-
208
- V2VkLCAyNiBKdW4gMjAxMyAxODoxMDowNiBHTVQ=
182
+ Content-Type:
183
+ - application/json
184
+ Content-Length:
185
+ - '210'
186
+ Date:
187
+ - Wed, 07 Aug 2013 16:51:25 GMT
209
188
  body:
210
- encoding: US-ASCII
211
- string: ! '[{"Id":"7ef2f4da261d5e10e3244ee16e03da09be4586a48845374933c0f3d08aa34531","Image":"base2:latest","Command":"sleep
212
- 50","Created":1372270194,"Status":"Up Less than a second","Ports":"","SizeRw":0,"SizeRootFs":0}]'
189
+ encoding: UTF-8
190
+ string: '[{"Id":"36a0e35a4922e2263b885dcbef77f549f1c9b6d997dd34033450feaf3fafb8cb","Image":"base2:latest","Command":"sleep
191
+ 50","Created":1375894274,"Status":"Up Less than a second","Ports":"","SizeRw":0,"SizeRootFs":0}]'
213
192
  http_version:
214
- recorded_at: Wed, 26 Jun 2013 18:10:06 GMT
215
- recorded_with: VCR 2.5.0
193
+ recorded_at: Wed, 07 Aug 2013 16:51:25 GMT
194
+ recorded_with: VCR 2.4.0
@@ -2,37 +2,34 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://localhost:4243/v1.3/containers/create
5
+ uri: http://localhost:4243/v1.4/containers/create
6
6
  body:
7
7
  encoding: UTF-8
8
- string: ! '{"Cmd":["lol","not","a","real","command"],"Image":"base"}'
8
+ string: '{"Cmd":["lol","not","a","real","command"],"Image":"base"}'
9
9
  headers:
10
10
  Content-Type:
11
11
  - text/plain
12
12
  User-Agent:
13
- - Docker-Client/0.4.6
13
+ - Swipely/Docker-API 1.3.1
14
14
  response:
15
15
  status:
16
16
  code: 201
17
17
  message: ''
18
18
  headers:
19
- !binary "Q29udGVudC1UeXBl":
20
- - !binary |-
21
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
22
- !binary "Q29udGVudC1MZW5ndGg=":
23
- - !binary |-
24
- MjE=
25
- !binary "RGF0ZQ==":
26
- - !binary |-
27
- RnJpLCAyOCBKdW4gMjAxMyAxNjo1NToxNyBHTVQ=
19
+ Content-Type:
20
+ - text/plain; charset=utf-8
21
+ Content-Length:
22
+ - '21'
23
+ Date:
24
+ - Wed, 07 Aug 2013 16:51:30 GMT
28
25
  body:
29
- encoding: US-ASCII
30
- string: ! '{"Id":"054d9a6611f8"}'
26
+ encoding: UTF-8
27
+ string: '{"Id":"5dbc28c27062"}'
31
28
  http_version:
32
- recorded_at: Fri, 28 Jun 2013 16:55:17 GMT
29
+ recorded_at: Wed, 07 Aug 2013 16:51:30 GMT
33
30
  - request:
34
31
  method: post
35
- uri: http://localhost:4243/v1.3/containers/054d9a6611f8/start
32
+ uri: http://localhost:4243/v1.4/containers/5dbc28c27062/start
36
33
  body:
37
34
  encoding: US-ASCII
38
35
  string: ''
@@ -40,29 +37,26 @@ http_interactions:
40
37
  Content-Type:
41
38
  - text/plain
42
39
  User-Agent:
43
- - Docker-Client/0.4.6
40
+ - Swipely/Docker-API 1.3.1
44
41
  response:
45
42
  status:
46
43
  code: 204
47
44
  message: ''
48
45
  headers:
49
- !binary "Q29udGVudC1UeXBl":
50
- - !binary |-
51
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
52
- !binary "Q29udGVudC1MZW5ndGg=":
53
- - !binary |-
54
- MA==
55
- !binary "RGF0ZQ==":
56
- - !binary |-
57
- RnJpLCAyOCBKdW4gMjAxMyAxNjo1NToxNyBHTVQ=
46
+ Content-Type:
47
+ - text/plain; charset=utf-8
48
+ Content-Length:
49
+ - '0'
50
+ Date:
51
+ - Wed, 07 Aug 2013 16:51:30 GMT
58
52
  body:
59
- encoding: US-ASCII
53
+ encoding: UTF-8
60
54
  string: ''
61
55
  http_version:
62
- recorded_at: Fri, 28 Jun 2013 16:55:17 GMT
56
+ recorded_at: Wed, 07 Aug 2013 16:51:30 GMT
63
57
  - request:
64
58
  method: post
65
- uri: http://localhost:4243/v1.3/containers/054d9a6611f8/wait
59
+ uri: http://localhost:4243/v1.4/containers/5dbc28c27062/wait
66
60
  body:
67
61
  encoding: US-ASCII
68
62
  string: ''
@@ -70,24 +64,21 @@ http_interactions:
70
64
  Content-Type:
71
65
  - text/plain
72
66
  User-Agent:
73
- - Docker-Client/0.4.6
67
+ - Swipely/Docker-API 1.3.1
74
68
  response:
75
69
  status:
76
70
  code: 200
77
71
  message: ''
78
72
  headers:
79
- !binary "Q29udGVudC1UeXBl":
80
- - !binary |-
81
- YXBwbGljYXRpb24vanNvbg==
82
- !binary "Q29udGVudC1MZW5ndGg=":
83
- - !binary |-
84
- MTg=
85
- !binary "RGF0ZQ==":
86
- - !binary |-
87
- RnJpLCAyOCBKdW4gMjAxMyAxNjo1NToxNyBHTVQ=
73
+ Content-Type:
74
+ - application/json
75
+ Content-Length:
76
+ - '18'
77
+ Date:
78
+ - Wed, 07 Aug 2013 16:51:31 GMT
88
79
  body:
89
- encoding: US-ASCII
90
- string: ! '{"StatusCode":127}'
80
+ encoding: UTF-8
81
+ string: '{"StatusCode":127}'
91
82
  http_version:
92
- recorded_at: Fri, 28 Jun 2013 16:55:17 GMT
93
- recorded_with: VCR 2.5.0
83
+ recorded_at: Wed, 07 Aug 2013 16:51:31 GMT
84
+ recorded_with: VCR 2.4.0
@@ -2,37 +2,34 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://localhost:4243/v1.3/containers/create
5
+ uri: http://localhost:4243/v1.4/containers/create
6
6
  body:
7
7
  encoding: UTF-8
8
- string: ! '{"Cmd":["pwd"],"Image":"base"}'
8
+ string: '{"Cmd":["pwd"],"Image":"base"}'
9
9
  headers:
10
10
  Content-Type:
11
11
  - text/plain
12
12
  User-Agent:
13
- - Docker-Client/0.4.6
13
+ - Swipely/Docker-API 1.3.1
14
14
  response:
15
15
  status:
16
16
  code: 201
17
17
  message: ''
18
18
  headers:
19
- !binary "Q29udGVudC1UeXBl":
20
- - !binary |-
21
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
22
- !binary "Q29udGVudC1MZW5ndGg=":
23
- - !binary |-
24
- MjE=
25
- !binary "RGF0ZQ==":
26
- - !binary |-
27
- RnJpLCAyOCBKdW4gMjAxMyAxNjo1NToxNyBHTVQ=
19
+ Content-Type:
20
+ - text/plain; charset=utf-8
21
+ Content-Length:
22
+ - '21'
23
+ Date:
24
+ - Wed, 07 Aug 2013 16:51:31 GMT
28
25
  body:
29
- encoding: US-ASCII
30
- string: ! '{"Id":"92e4950e0b05"}'
26
+ encoding: UTF-8
27
+ string: '{"Id":"865949f36b3f"}'
31
28
  http_version:
32
- recorded_at: Fri, 28 Jun 2013 16:55:17 GMT
29
+ recorded_at: Wed, 07 Aug 2013 16:51:31 GMT
33
30
  - request:
34
31
  method: post
35
- uri: http://localhost:4243/v1.3/containers/92e4950e0b05/start
32
+ uri: http://localhost:4243/v1.4/containers/865949f36b3f/start
36
33
  body:
37
34
  encoding: US-ASCII
38
35
  string: ''
@@ -40,29 +37,26 @@ http_interactions:
40
37
  Content-Type:
41
38
  - text/plain
42
39
  User-Agent:
43
- - Docker-Client/0.4.6
40
+ - Swipely/Docker-API 1.3.1
44
41
  response:
45
42
  status:
46
43
  code: 204
47
44
  message: ''
48
45
  headers:
49
- !binary "Q29udGVudC1UeXBl":
50
- - !binary |-
51
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
52
- !binary "Q29udGVudC1MZW5ndGg=":
53
- - !binary |-
54
- MA==
55
- !binary "RGF0ZQ==":
56
- - !binary |-
57
- RnJpLCAyOCBKdW4gMjAxMyAxNjo1NToxNyBHTVQ=
46
+ Content-Type:
47
+ - text/plain; charset=utf-8
48
+ Content-Length:
49
+ - '0'
50
+ Date:
51
+ - Wed, 07 Aug 2013 16:51:31 GMT
58
52
  body:
59
- encoding: US-ASCII
53
+ encoding: UTF-8
60
54
  string: ''
61
55
  http_version:
62
- recorded_at: Fri, 28 Jun 2013 16:55:17 GMT
56
+ recorded_at: Wed, 07 Aug 2013 16:51:31 GMT
63
57
  - request:
64
58
  method: post
65
- uri: http://localhost:4243/v1.3/containers/92e4950e0b05/wait
59
+ uri: http://localhost:4243/v1.4/containers/865949f36b3f/wait
66
60
  body:
67
61
  encoding: US-ASCII
68
62
  string: ''
@@ -70,29 +64,26 @@ http_interactions:
70
64
  Content-Type:
71
65
  - text/plain
72
66
  User-Agent:
73
- - Docker-Client/0.4.6
67
+ - Swipely/Docker-API 1.3.1
74
68
  response:
75
69
  status:
76
70
  code: 200
77
71
  message: ''
78
72
  headers:
79
- !binary "Q29udGVudC1UeXBl":
80
- - !binary |-
81
- YXBwbGljYXRpb24vanNvbg==
82
- !binary "Q29udGVudC1MZW5ndGg=":
83
- - !binary |-
84
- MTY=
85
- !binary "RGF0ZQ==":
86
- - !binary |-
87
- RnJpLCAyOCBKdW4gMjAxMyAxNjo1NToxNyBHTVQ=
73
+ Content-Type:
74
+ - application/json
75
+ Content-Length:
76
+ - '16'
77
+ Date:
78
+ - Wed, 07 Aug 2013 16:51:31 GMT
88
79
  body:
89
- encoding: US-ASCII
90
- string: ! '{"StatusCode":0}'
80
+ encoding: UTF-8
81
+ string: '{"StatusCode":0}'
91
82
  http_version:
92
- recorded_at: Fri, 28 Jun 2013 16:55:17 GMT
83
+ recorded_at: Wed, 07 Aug 2013 16:51:31 GMT
93
84
  - request:
94
85
  method: post
95
- uri: http://localhost:4243/v1.3/commit?container=92e4950e
86
+ uri: http://localhost:4243/v1.4/commit?container=865949f3
96
87
  body:
97
88
  encoding: US-ASCII
98
89
  string: ''
@@ -100,59 +91,53 @@ http_interactions:
100
91
  Content-Type:
101
92
  - text/plain
102
93
  User-Agent:
103
- - Docker-Client/0.4.6
94
+ - Swipely/Docker-API 1.3.1
104
95
  response:
105
96
  status:
106
97
  code: 201
107
98
  message: ''
108
99
  headers:
109
- !binary "Q29udGVudC1UeXBl":
110
- - !binary |-
111
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
112
- !binary "Q29udGVudC1MZW5ndGg=":
113
- - !binary |-
114
- MjE=
115
- !binary "RGF0ZQ==":
116
- - !binary |-
117
- RnJpLCAyOCBKdW4gMjAxMyAxNjo1NToxNyBHTVQ=
100
+ Content-Type:
101
+ - text/plain; charset=utf-8
102
+ Content-Length:
103
+ - '21'
104
+ Date:
105
+ - Wed, 07 Aug 2013 16:51:31 GMT
118
106
  body:
119
- encoding: US-ASCII
120
- string: ! '{"Id":"6ae8d5f26636"}'
107
+ encoding: UTF-8
108
+ string: '{"Id":"fce068f57d19"}'
121
109
  http_version:
122
- recorded_at: Fri, 28 Jun 2013 16:55:17 GMT
110
+ recorded_at: Wed, 07 Aug 2013 16:51:31 GMT
123
111
  - request:
124
112
  method: post
125
- uri: http://localhost:4243/v1.3/containers/create
113
+ uri: http://localhost:4243/v1.4/containers/create
126
114
  body:
127
115
  encoding: UTF-8
128
- string: ! '{"Image":"6ae8d5f26636","Cmd":["ls"]}'
116
+ string: '{"Image":"fce068f57d19","Cmd":["ls"]}'
129
117
  headers:
130
118
  Content-Type:
131
119
  - text/plain
132
120
  User-Agent:
133
- - Docker-Client/0.4.6
121
+ - Swipely/Docker-API 1.3.1
134
122
  response:
135
123
  status:
136
124
  code: 201
137
125
  message: ''
138
126
  headers:
139
- !binary "Q29udGVudC1UeXBl":
140
- - !binary |-
141
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
142
- !binary "Q29udGVudC1MZW5ndGg=":
143
- - !binary |-
144
- MjE=
145
- !binary "RGF0ZQ==":
146
- - !binary |-
147
- RnJpLCAyOCBKdW4gMjAxMyAxNjo1NToxNyBHTVQ=
127
+ Content-Type:
128
+ - text/plain; charset=utf-8
129
+ Content-Length:
130
+ - '21'
131
+ Date:
132
+ - Wed, 07 Aug 2013 16:51:31 GMT
148
133
  body:
149
- encoding: US-ASCII
150
- string: ! '{"Id":"fd4be0998e51"}'
134
+ encoding: UTF-8
135
+ string: '{"Id":"4bd161705f24"}'
151
136
  http_version:
152
- recorded_at: Fri, 28 Jun 2013 16:55:17 GMT
137
+ recorded_at: Wed, 07 Aug 2013 16:51:31 GMT
153
138
  - request:
154
139
  method: post
155
- uri: http://localhost:4243/v1.3/containers/fd4be0998e51/start
140
+ uri: http://localhost:4243/v1.4/containers/4bd161705f24/start
156
141
  body:
157
142
  encoding: US-ASCII
158
143
  string: ''
@@ -160,29 +145,26 @@ http_interactions:
160
145
  Content-Type:
161
146
  - text/plain
162
147
  User-Agent:
163
- - Docker-Client/0.4.6
148
+ - Swipely/Docker-API 1.3.1
164
149
  response:
165
150
  status:
166
151
  code: 204
167
152
  message: ''
168
153
  headers:
169
- !binary "Q29udGVudC1UeXBl":
170
- - !binary |-
171
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
172
- !binary "Q29udGVudC1MZW5ndGg=":
173
- - !binary |-
174
- MA==
175
- !binary "RGF0ZQ==":
176
- - !binary |-
177
- RnJpLCAyOCBKdW4gMjAxMyAxNjo1NToxNyBHTVQ=
154
+ Content-Type:
155
+ - text/plain; charset=utf-8
156
+ Content-Length:
157
+ - '0'
158
+ Date:
159
+ - Wed, 07 Aug 2013 16:51:31 GMT
178
160
  body:
179
- encoding: US-ASCII
161
+ encoding: UTF-8
180
162
  string: ''
181
163
  http_version:
182
- recorded_at: Fri, 28 Jun 2013 16:55:17 GMT
164
+ recorded_at: Wed, 07 Aug 2013 16:51:31 GMT
183
165
  - request:
184
166
  method: post
185
- uri: http://localhost:4243/v1.3/containers/fd4be0998e51/start
167
+ uri: http://localhost:4243/v1.4/containers/4bd161705f24/start
186
168
  body:
187
169
  encoding: US-ASCII
188
170
  string: ''
@@ -190,32 +172,27 @@ http_interactions:
190
172
  Content-Type:
191
173
  - text/plain
192
174
  User-Agent:
193
- - Docker-Client/0.4.6
175
+ - Swipely/Docker-API 1.3.1
194
176
  response:
195
177
  status:
196
178
  code: 500
197
179
  message: ''
198
180
  headers:
199
- !binary "Q29udGVudC1UeXBl":
200
- - !binary |-
201
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
202
- !binary "Q29udGVudC1MZW5ndGg=":
203
- - !binary |-
204
- MTM4
205
- !binary "RGF0ZQ==":
206
- - !binary |-
207
- RnJpLCAyOCBKdW4gMjAxMyAxNjo1NToxNyBHTVQ=
181
+ Content-Type:
182
+ - text/plain; charset=utf-8
183
+ Content-Length:
184
+ - '138'
185
+ Date:
186
+ - Wed, 07 Aug 2013 16:51:31 GMT
208
187
  body:
209
- encoding: US-ASCII
210
- string: ! 'Error starting container fd4be0998e51: The container fd4be0998e511070f4c5d3ce6906210f758d900c56d88169dbe37f21a9fafed7
211
- is already running.
212
-
213
- '
188
+ encoding: UTF-8
189
+ string: |
190
+ Error starting container 4bd161705f24: The container 4bd161705f24a2dff9d416d8b7b1514f0001160876a0b0f1ef0e684511ac89de is already running.
214
191
  http_version:
215
- recorded_at: Fri, 28 Jun 2013 16:55:17 GMT
192
+ recorded_at: Wed, 07 Aug 2013 16:51:31 GMT
216
193
  - request:
217
194
  method: post
218
- uri: http://localhost:4243/v1.3/containers/fd4be0998e51/wait
195
+ uri: http://localhost:4243/v1.4/containers/4bd161705f24/wait
219
196
  body:
220
197
  encoding: US-ASCII
221
198
  string: ''
@@ -223,24 +200,21 @@ http_interactions:
223
200
  Content-Type:
224
201
  - text/plain
225
202
  User-Agent:
226
- - Docker-Client/0.4.6
203
+ - Swipely/Docker-API 1.3.1
227
204
  response:
228
205
  status:
229
206
  code: 200
230
207
  message: ''
231
208
  headers:
232
- !binary "Q29udGVudC1UeXBl":
233
- - !binary |-
234
- YXBwbGljYXRpb24vanNvbg==
235
- !binary "Q29udGVudC1MZW5ndGg=":
236
- - !binary |-
237
- MTY=
238
- !binary "RGF0ZQ==":
239
- - !binary |-
240
- RnJpLCAyOCBKdW4gMjAxMyAxNjo1NToxOCBHTVQ=
209
+ Content-Type:
210
+ - application/json
211
+ Content-Length:
212
+ - '16'
213
+ Date:
214
+ - Wed, 07 Aug 2013 16:51:31 GMT
241
215
  body:
242
- encoding: US-ASCII
243
- string: ! '{"StatusCode":0}'
216
+ encoding: UTF-8
217
+ string: '{"StatusCode":0}'
244
218
  http_version:
245
- recorded_at: Fri, 28 Jun 2013 16:55:18 GMT
246
- recorded_with: VCR 2.5.0
219
+ recorded_at: Wed, 07 Aug 2013 16:51:31 GMT
220
+ recorded_with: VCR 2.4.0