docker-api 1.6.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/.cane +0 -1
  3. data/README.md +6 -7
  4. data/docker-api.gemspec +3 -4
  5. data/lib/docker.rb +10 -5
  6. data/lib/docker/connection.rb +2 -0
  7. data/lib/docker/container.rb +39 -4
  8. data/lib/docker/error.rb +6 -0
  9. data/lib/docker/event.rb +40 -0
  10. data/lib/docker/image.rb +37 -13
  11. data/lib/docker/util.rb +25 -1
  12. data/lib/docker/version.rb +2 -2
  13. data/spec/docker/container_spec.rb +37 -19
  14. data/spec/docker/event_spec.rb +79 -0
  15. data/spec/docker/image_spec.rb +89 -30
  16. data/spec/docker/util_spec.rb +83 -0
  17. data/spec/docker_spec.rb +47 -2
  18. data/spec/fixtures/{Dockerfile → build_from_dir/Dockerfile} +0 -0
  19. data/spec/fixtures/top/Dockerfile +2 -0
  20. data/spec/support/vcr.rb +1 -4
  21. data/spec/vcr/Docker/_authenticate_/with_valid_credentials/logs_in_and_sets_the_creds.yml +33 -0
  22. data/spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml +7 -7
  23. data/spec/vcr/Docker/_validate_version/when_nothing_is_raised/validate_version_/.yml +6 -6
  24. data/spec/vcr/Docker/_version/returns_the_version_as_a_Hash.yml +6 -6
  25. data/spec/vcr/Docker_Container/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml +27 -97
  26. data/spec/vcr/Docker_Container/_attach/yields_each_chunk.yml +18 -19
  27. data/spec/vcr/Docker_Container/_changes/returns_the_changes_as_an_array.yml +22 -22
  28. data/spec/vcr/Docker_Container/_commit/creates_a_new_Image_from_the_Container_s_changes.yml +18 -18
  29. data/spec/vcr/Docker_Container/_commit/if_run_is_passed_it_saves_the_command_in_the_image/saves_the_command.yml +178 -0
  30. data/spec/vcr/Docker_Container/_copy/when_the_file_does_not_exist/raises_an_error.yml +54 -24
  31. data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_directory/yields_each_chunk_of_the_tarred_directory.yml +27 -60
  32. data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_file/yields_each_chunk_of_the_tarred_file.yml +27 -60
  33. data/spec/vcr/Docker_Container/_create/when_the_Container_does_not_yet_exist/when_the_HTTP_request_returns_a_200/sets_the_id.yml +7 -7
  34. data/spec/vcr/Docker_Container/_delete/deletes_the_container.yml +16 -46
  35. data/spec/vcr/Docker_Container/_export/yields_each_chunk.yml +24 -17
  36. data/spec/vcr/Docker_Container/_json/returns_the_description_as_a_Hash.yml +14 -14
  37. data/spec/vcr/Docker_Container/_kill/kills_the_container.yml +36 -49
  38. data/spec/vcr/Docker_Container/_restart/restarts_the_container.yml +43 -43
  39. data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_does_not_return_status_code_of_0/raises_an_error.yml +17 -17
  40. 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 +47 -47
  41. data/spec/vcr/Docker_Container/_start/starts_the_container.yml +25 -25
  42. data/spec/vcr/Docker_Container/_stop/stops_the_container.yml +40 -53
  43. data/spec/vcr/Docker_Container/_top/returns_the_top_commands_as_an_Array.yml +89 -25
  44. data/spec/vcr/Docker_Container/_wait/waits_for_the_command_to_finish.yml +17 -17
  45. data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/and_a_command_runs_for_too_long/raises_a_ServerError.yml +12 -12
  46. data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/sets_the_read_timeout_to_that_amount_of_time.yml +17 -17
  47. data/spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml +12 -12
  48. 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 +110 -0
  49. data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/{builds_an_image.yml → without_query_parameters/builds_an_image.yml} +5 -5
  50. data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml +7 -9
  51. data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_no_query_parameters/builds_the_image.yml +121 -0
  52. 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 +151 -0
  53. data/spec/vcr/Docker_Image/_create/when_the_Image_does_not_yet_exist_and_the_body_is_a_Hash/sets_the_id.yml +5 -5
  54. data/spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml +10 -10
  55. data/spec/vcr/Docker_Image/_insert/inserts_the_url_s_file_into_a_new_Image.yml +53 -109
  56. data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_exist/creates_a_new_Image_that_has_that_file.yml +32 -68
  57. data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_not_exist/raises_an_error.yml +5 -5
  58. data/spec/vcr/Docker_Image/_insert_local/when_there_are_multiple_files_passed/creates_a_new_Image_that_has_each_file.yml +40 -68
  59. data/spec/vcr/Docker_Image/_json/returns_additional_information_about_image_image.yml +10 -10
  60. data/spec/vcr/Docker_Image/_push/pushes_the_Image.yml +161 -0
  61. data/spec/vcr/Docker_Image/_remove/removes_the_Image.yml +17 -17
  62. data/spec/vcr/Docker_Image/_run/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml +23 -24
  63. data/spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml +23 -24
  64. 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 +148 -0
  65. 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 +68 -0
  66. data/spec/vcr/Docker_Image/_search/materializes_each_Image_into_a_Docker_Image.yml +13 -11
  67. data/spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml +10 -10
  68. metadata +32 -24
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://unix/v1.4/build
5
+ uri: unix:///var/run/docker.sock/v1.6/build
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: !binary |-
@@ -54,140 +54,123 @@ http_interactions:
54
54
  AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
55
55
  headers:
56
56
  User-Agent:
57
- - Swipely/Docker-API 1.5.4
57
+ - Swipely/Docker-API 1.6.0
58
58
  Content-Type:
59
59
  - application/json
60
60
  response:
61
61
  status:
62
62
  code: 200
63
- message: ''
63
+ message:
64
64
  headers:
65
65
  !binary "Q29udGVudC1UeXBl":
66
66
  - !binary |-
67
67
  dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
68
68
  !binary "RGF0ZQ==":
69
69
  - !binary |-
70
- TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo0MiBHTVQ=
70
+ V2VkLCAzMCBPY3QgMjAxMyAxNjo1ODo1NCBHTVQ=
71
71
  !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
72
72
  - !binary |-
73
73
  Y2h1bmtlZA==
74
74
  body:
75
75
  encoding: US-ASCII
76
- string: ! "Step 1 : FROM base\nPulling repository base\r\nPulling image (ubuntu-quantl)
77
- from base\rPulling image (ubuntu-quantl) from base, endpoint: https://cdn-registry-1.docker.io/v1/\rPulling
78
- dependend layers\rPulling metadata\rPulling fs layer\rDownloading 4.096 kB/10.24
79
- kB (40%)\rDownloading 10.13 kB/10.24 kB (99%)\rDownloading 10.24 kB/10.24
80
- kB (100%)\rDownloading 10.24 kB/10.24 kB (100%)\rDownload complete\rDownload
81
- complete\rDownload complete\r ---> b750fe79269d\nSuccessfully built b750fe79269d\n"
76
+ string: ! "Step 1 : FROM base\n ---> b750fe79269d\nSuccessfully built b750fe79269d\n"
82
77
  http_version:
83
- recorded_at: Mon, 07 Oct 2013 00:47:45 GMT
78
+ recorded_at: Wed, 30 Oct 2013 16:58:54 GMT
84
79
  - request:
85
80
  method: post
86
- uri: http://unix/v1.4/images/b750fe79269d/insert?path=/stallman&url=http://stallman.org
81
+ uri: unix:///var/run/docker.sock/v1.6/images/b750fe79269d/insert?path=%2Fstallman&url=http%3A%2F%2Fstallman.org
87
82
  body:
88
83
  encoding: US-ASCII
89
84
  string: ''
90
85
  headers:
91
86
  User-Agent:
92
- - Swipely/Docker-API 1.5.4
87
+ - Swipely/Docker-API 1.6.0
93
88
  Content-Type:
94
89
  - text/plain
95
90
  response:
96
91
  status:
97
92
  code: 200
98
- message: ''
93
+ message:
99
94
  headers:
100
95
  !binary "Q29udGVudC1UeXBl":
101
96
  - !binary |-
102
97
  YXBwbGljYXRpb24vanNvbg==
103
98
  !binary "RGF0ZQ==":
104
99
  - !binary |-
105
- TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo0NiBHTVQ=
100
+ V2VkLCAzMCBPY3QgMjAxMyAxNjo1ODo1NCBHTVQ=
106
101
  !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
107
102
  - !binary |-
108
103
  Y2h1bmtlZA==
109
104
  body:
110
105
  encoding: US-ASCII
111
- string: ! '{"status":"Downloading","progress":"1.208 kB/93.22 kB (1%)"}{"status":"Downloading","progress":"4.104
112
- kB/93.22 kB (4%)"}{"status":"Downloading","progress":"5.552 kB/93.22 kB (6%)"}{"status":"Downloading","progress":" 7
113
- kB/93.22 kB (8%)"}{"status":"Downloading","progress":"8.448 kB/93.22 kB (9%)"}{"status":"Downloading","progress":"9.896
114
- kB/93.22 kB (11%)"}{"status":"Downloading","progress":"11.34 kB/93.22 kB (12%)"}{"status":"Downloading","progress":"12.79
115
- kB/93.22 kB (14%)"}{"status":"Downloading","progress":"14.24 kB/93.22 kB (15%)"}{"status":"Downloading","progress":"15.69
116
- kB/93.22 kB (17%)"}{"status":"Downloading","progress":"17.14 kB/93.22 kB (18%)"}{"status":"Downloading","progress":"18.58
117
- kB/93.22 kB (20%)"}{"status":"Downloading","progress":"20.03 kB/93.22 kB (21%)"}{"status":"Downloading","progress":"21.48
118
- kB/93.22 kB (23%)"}{"status":"Downloading","progress":"22.93 kB/93.22 kB (25%)"}{"status":"Downloading","progress":"24.38
119
- kB/93.22 kB (26%)"}{"status":"Downloading","progress":"25.82 kB/93.22 kB (28%)"}{"status":"Downloading","progress":"27.27
120
- kB/93.22 kB (29%)"}{"status":"Downloading","progress":"28.72 kB/93.22 kB (31%)"}{"status":"Downloading","progress":"30.17
121
- kB/93.22 kB (32%)"}{"status":"Downloading","progress":"31.62 kB/93.22 kB (34%)"}{"status":"Downloading","progress":"33.06
122
- kB/93.22 kB (35%)"}{"status":"Downloading","progress":"34.51 kB/93.22 kB (37%)"}{"status":"Downloading","progress":"35.96
123
- kB/93.22 kB (39%)"}{"status":"Downloading","progress":"37.41 kB/93.22 kB (40%)"}{"status":"Downloading","progress":"38.86
124
- kB/93.22 kB (42%)"}{"status":"Downloading","progress":" 40.3 kB/93.22 kB (43%)"}{"status":"Downloading","progress":"41.75
125
- kB/93.22 kB (45%)"}{"status":"Downloading","progress":" 43.2 kB/93.22 kB (46%)"}{"status":"Downloading","progress":"44.65
126
- kB/93.22 kB (48%)"}{"status":"Downloading","progress":" 46.1 kB/93.22 kB (49%)"}{"status":"Downloading","progress":"47.54
127
- kB/93.22 kB (51%)"}{"status":"Downloading","progress":"48.99 kB/93.22 kB (53%)"}{"status":"Downloading","progress":"50.44
128
- kB/93.22 kB (54%)"}{"status":"Downloading","progress":"51.89 kB/93.22 kB (56%)"}{"status":"Downloading","progress":"53.34
129
- kB/93.22 kB (57%)"}{"status":"Downloading","progress":"54.78 kB/93.22 kB (59%)"}{"status":"Downloading","progress":"56.23
130
- kB/93.22 kB (60%)"}{"status":"Downloading","progress":"57.68 kB/93.22 kB (62%)"}{"status":"Downloading","progress":"59.13
131
- kB/93.22 kB (63%)"}{"status":"Downloading","progress":"60.58 kB/93.22 kB (65%)"}{"status":"Downloading","progress":"62.02
132
- kB/93.22 kB (67%)"}{"status":"Downloading","progress":"63.47 kB/93.22 kB (68%)"}{"status":"Downloading","progress":"64.92
133
- kB/93.22 kB (70%)"}{"status":"Downloading","progress":"66.37 kB/93.22 kB (71%)"}{"status":"Downloading","progress":"67.82
134
- kB/93.22 kB (73%)"}{"status":"Downloading","progress":"69.26 kB/93.22 kB (74%)"}{"status":"Downloading","progress":"70.71
135
- kB/93.22 kB (76%)"}{"status":"Downloading","progress":"72.16 kB/93.22 kB (77%)"}{"status":"Downloading","progress":"73.61
136
- kB/93.22 kB (79%)"}{"status":"Downloading","progress":"75.06 kB/93.22 kB (81%)"}{"status":"Downloading","progress":"
137
- 76.5 kB/93.22 kB (82%)"}{"status":"Downloading","progress":"77.95 kB/93.22
138
- kB (84%)"}{"status":"Downloading","progress":" 79.4 kB/93.22 kB (85%)"}{"status":"Downloading","progress":"80.85
139
- kB/93.22 kB (87%)"}{"status":"Downloading","progress":" 82.3 kB/93.22 kB (88%)"}{"status":"Downloading","progress":"83.74
140
- kB/93.22 kB (90%)"}{"status":"Downloading","progress":"85.19 kB/93.22 kB (91%)"}{"status":"Downloading","progress":"86.64
141
- kB/93.22 kB (93%)"}{"status":"Downloading","progress":"88.09 kB/93.22 kB (94%)"}{"status":"Downloading","progress":"89.54
142
- kB/93.22 kB (96%)"}{"status":"Downloading","progress":"90.98 kB/93.22 kB (98%)"}{"status":"Downloading","progress":"92.43
143
- kB/93.22 kB (99%)"}{"status":"Downloading","progress":"93.22 kB/93.22 kB (100%)"}{}{"status":"f6d3f4d8ef4ea2e27f81444c38bc242414e32ab1c5dc62640db0a824108ac2eb"}{"Id":"f6d3f4d8ef4e"}'
106
+ string: ! '{"status":"Downloading","progress":"1.208 kB/93.78 kB (1%)"}{"status":"Downloading","progress":"4.104
107
+ kB/93.78 kB (4%)"}{"status":"Downloading","progress":"5.552 kB/93.78 kB (6%)"}{"status":"Downloading","progress":" 7
108
+ kB/93.78 kB (7%)"}{"status":"Downloading","progress":"8.448 kB/93.78 kB (9%)"}{"status":"Downloading","progress":"9.896
109
+ kB/93.78 kB (11%)"}{"status":"Downloading","progress":"12.79 kB/93.78 kB (14%)"}{"status":"Downloading","progress":"15.69
110
+ kB/93.78 kB (17%)"}{"status":"Downloading","progress":"20.03 kB/93.78 kB (21%)"}{"status":"Downloading","progress":"22.93
111
+ kB/93.78 kB (24%)"}{"status":"Downloading","progress":"27.27 kB/93.78 kB (29%)"}{"status":"Downloading","progress":"31.62
112
+ kB/93.78 kB (34%)"}{"status":"Downloading","progress":"33.06 kB/93.78 kB (35%)"}{"status":"Downloading","progress":"37.41
113
+ kB/93.78 kB (40%)"}{"status":"Downloading","progress":"38.86 kB/93.78 kB (41%)"}{"status":"Downloading","progress":"
114
+ 40.3 kB/93.78 kB (43%)"}{"status":"Downloading","progress":" 46.1 kB/93.78
115
+ kB (49%)"}{"status":"Downloading","progress":"50.44 kB/93.78 kB (54%)"}{"status":"Downloading","progress":"53.34
116
+ kB/93.78 kB (57%)"}{"status":"Downloading","progress":"57.68 kB/93.78 kB (62%)"}{"status":"Downloading","progress":"60.58
117
+ kB/93.78 kB (65%)"}{"status":"Downloading","progress":"62.02 kB/93.78 kB (66%)"}{"status":"Downloading","progress":"66.37
118
+ kB/93.78 kB (71%)"}{"status":"Downloading","progress":"67.82 kB/93.78 kB (72%)"}{"status":"Downloading","progress":"70.71
119
+ kB/93.78 kB (75%)"}{"status":"Downloading","progress":"72.16 kB/93.78 kB (77%)"}{"status":"Downloading","progress":"73.61
120
+ kB/93.78 kB (78%)"}{"status":"Downloading","progress":" 76.5 kB/93.78 kB (82%)"}{"status":"Downloading","progress":"77.95
121
+ kB/93.78 kB (83%)"}{"status":"Downloading","progress":" 79.4 kB/93.78 kB (85%)"}{"status":"Downloading","progress":"80.85
122
+ kB/93.78 kB (86%)"}{"status":"Downloading","progress":"83.74 kB/93.78 kB (89%)"}{"status":"Downloading","progress":"86.64
123
+ kB/93.78 kB (92%)"}{"status":"Downloading","progress":"89.54 kB/93.78 kB (95%)"}{"status":"Downloading","progress":"90.98
124
+ kB/93.78 kB (97%)"}{"status":"Downloading","progress":"92.43 kB/93.78 kB (99%)"}{"status":"Downloading","progress":"93.78
125
+ kB/93.78 kB (100%)"}{"status":"Downloading","progress":"93.78 kB/93.78 kB
126
+ (100%)"}{}{"status":"7c791b1c21969250800123515fe347db0b7c5abe1fa593897389e624e8f8dadd"}{"Id":"7c791b1c2196"}'
144
127
  http_version:
145
- recorded_at: Mon, 07 Oct 2013 00:47:46 GMT
128
+ recorded_at: Wed, 30 Oct 2013 16:58:55 GMT
146
129
  - request:
147
130
  method: post
148
- uri: http://unix/v1.4/containers/create
131
+ uri: unix:///var/run/docker.sock/v1.6/containers/create
149
132
  body:
150
133
  encoding: UTF-8
151
- string: ! '{"Image":"f6d3f4d8ef4e","Cmd":["ls","/"]}'
134
+ string: ! '{"Image":"7c791b1c2196","Cmd":["ls","/"]}'
152
135
  headers:
153
136
  User-Agent:
154
- - Swipely/Docker-API 1.5.4
137
+ - Swipely/Docker-API 1.6.0
155
138
  Content-Type:
156
139
  - application/json
157
140
  response:
158
141
  status:
159
142
  code: 201
160
- message: ''
143
+ message:
161
144
  headers:
162
145
  !binary "Q29udGVudC1UeXBl":
163
146
  - !binary |-
164
147
  YXBwbGljYXRpb24vanNvbg==
165
148
  !binary "Q29udGVudC1MZW5ndGg=":
166
149
  - !binary |-
167
- NjU=
150
+ MjE=
168
151
  !binary "RGF0ZQ==":
169
152
  - !binary |-
170
- TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo0NiBHTVQ=
153
+ V2VkLCAzMCBPY3QgMjAxMyAxNjo1ODo1NSBHTVQ=
171
154
  body:
172
155
  encoding: US-ASCII
173
- string: ! '{"Id":"88492144a1ec","Warnings":["IPv4 forwarding is disabled."]}'
156
+ string: ! '{"Id":"c6b1179991e7"}'
174
157
  http_version:
175
- recorded_at: Mon, 07 Oct 2013 00:47:46 GMT
158
+ recorded_at: Wed, 30 Oct 2013 16:58:55 GMT
176
159
  - request:
177
160
  method: post
178
- uri: http://unix/v1.4/containers/88492144a1ec/start
161
+ uri: unix:///var/run/docker.sock/v1.6/containers/c6b1179991e7/start
179
162
  body:
180
163
  encoding: UTF-8
181
164
  string: ! '{}'
182
165
  headers:
183
166
  User-Agent:
184
- - Swipely/Docker-API 1.5.4
167
+ - Swipely/Docker-API 1.6.0
185
168
  Content-Type:
186
169
  - application/json
187
170
  response:
188
171
  status:
189
172
  code: 204
190
- message: ''
173
+ message:
191
174
  headers:
192
175
  !binary "Q29udGVudC1UeXBl":
193
176
  - !binary |-
@@ -197,76 +180,37 @@ http_interactions:
197
180
  MA==
198
181
  !binary "RGF0ZQ==":
199
182
  - !binary |-
200
- TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo0NiBHTVQ=
183
+ V2VkLCAzMCBPY3QgMjAxMyAxNjo1ODo1NSBHTVQ=
201
184
  body:
202
185
  encoding: US-ASCII
203
186
  string: ''
204
187
  http_version:
205
- recorded_at: Mon, 07 Oct 2013 00:47:46 GMT
188
+ recorded_at: Wed, 30 Oct 2013 16:58:55 GMT
206
189
  - request:
207
190
  method: post
208
- uri: http://unix/v1.4/containers/88492144a1ec/attach?stdout=true&stream=true
191
+ uri: unix:///var/run/docker.sock/v1.6/containers/c6b1179991e7/attach?stderr=true&stdout=true&stream=true
209
192
  body:
210
193
  encoding: US-ASCII
211
194
  string: ''
212
195
  headers:
213
196
  User-Agent:
214
- - Swipely/Docker-API 1.5.4
197
+ - Swipely/Docker-API 1.6.0
215
198
  Content-Type:
216
199
  - text/plain
217
200
  response:
218
201
  status:
219
202
  code: 200
220
- message: ''
203
+ message:
221
204
  headers:
222
205
  !binary "Q29udGVudC1UeXBl":
223
206
  - !binary |-
224
207
  YXBwbGljYXRpb24vdm5kLmRvY2tlci5yYXctc3RyZWFt
225
208
  body:
226
209
  encoding: US-ASCII
227
- string: ! 'bin
228
-
229
- boot
230
-
231
- dev
232
-
233
- etc
234
-
235
- home
236
-
237
- lib
238
-
239
- lib64
240
-
241
- media
242
-
243
- mnt
244
-
245
- opt
246
-
247
- proc
248
-
249
- root
250
-
251
- run
252
-
253
- sbin
254
-
255
- selinux
256
-
257
- srv
258
-
259
- stallman
260
-
261
- sys
262
-
263
- tmp
264
-
265
- usr
266
-
267
- var
268
-
269
- '
210
+ string: !binary |-
211
+ AQAAAAAAAGZiaW4KYm9vdApkZXYKZXRjCmhvbWUKbGliCmxpYjY0Cm1lZGlh
212
+ Cm1udApvcHQKcHJvYwpyb290CnJ1bgpzYmluCnNlbGludXgKc3J2CnN0YWxs
213
+ bWFuCnN5cwp0bXAKdXNyCnZhcgo=
270
214
  http_version:
271
- recorded_at: Mon, 07 Oct 2013 00:47:47 GMT
215
+ recorded_at: Wed, 30 Oct 2013 16:58:55 GMT
272
216
  recorded_with: VCR 2.6.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://unix/v1.4/build
5
+ uri: unix:///var/run/docker.sock/v1.6/build
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: !binary |-
@@ -54,20 +54,20 @@ http_interactions:
54
54
  AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
55
55
  headers:
56
56
  User-Agent:
57
- - Swipely/Docker-API 1.5.4
57
+ - Swipely/Docker-API 1.6.0
58
58
  Content-Type:
59
59
  - application/json
60
60
  response:
61
61
  status:
62
62
  code: 200
63
- message: ''
63
+ message:
64
64
  headers:
65
65
  !binary "Q29udGVudC1UeXBl":
66
66
  - !binary |-
67
67
  dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
68
68
  !binary "RGF0ZQ==":
69
69
  - !binary |-
70
- TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo0NyBHTVQ=
70
+ VGh1LCAzMSBPY3QgMjAxMyAxNjo0MzozMSBHTVQ=
71
71
  !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
72
72
  - !binary |-
73
73
  Y2h1bmtlZA==
@@ -75,10 +75,10 @@ http_interactions:
75
75
  encoding: US-ASCII
76
76
  string: ! "Step 1 : FROM base\n ---> b750fe79269d\nSuccessfully built b750fe79269d\n"
77
77
  http_version:
78
- recorded_at: Mon, 07 Oct 2013 00:47:47 GMT
78
+ recorded_at: Thu, 31 Oct 2013 16:43:31 GMT
79
79
  - request:
80
80
  method: post
81
- uri: http://unix/v1.4/build
81
+ uri: unix:///var/run/docker.sock/v1.6/build
82
82
  body:
83
83
  encoding: UTF-8
84
84
  string: !binary |-
@@ -153,74 +153,74 @@ http_interactions:
153
153
  AAAAAAAAAAAAAAAA
154
154
  headers:
155
155
  User-Agent:
156
- - Swipely/Docker-API 1.5.4
156
+ - Swipely/Docker-API 1.6.0
157
157
  Content-Type:
158
158
  - application/json
159
159
  response:
160
160
  status:
161
161
  code: 200
162
- message: ''
162
+ message:
163
163
  headers:
164
164
  !binary "Q29udGVudC1UeXBl":
165
165
  - !binary |-
166
166
  dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
167
167
  !binary "RGF0ZQ==":
168
168
  - !binary |-
169
- TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo0NyBHTVQ=
169
+ VGh1LCAzMSBPY3QgMjAxMyAxNjo0MzozMSBHTVQ=
170
170
  !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
171
171
  - !binary |-
172
172
  Y2h1bmtlZA==
173
173
  body:
174
174
  encoding: US-ASCII
175
175
  string: ! "Step 1 : FROM b750fe79269d\n ---> b750fe79269d\nStep 2 : ADD Gemfile
176
- /\n ---> 4c38b908954d\nSuccessfully built 4c38b908954d\n"
176
+ /\n ---> fa11d4ddd3db\nSuccessfully built fa11d4ddd3db\n"
177
177
  http_version:
178
- recorded_at: Mon, 07 Oct 2013 00:47:47 GMT
178
+ recorded_at: Thu, 31 Oct 2013 16:43:31 GMT
179
179
  - request:
180
180
  method: post
181
- uri: http://unix/v1.4/containers/create
181
+ uri: unix:///var/run/docker.sock/v1.6/containers/create
182
182
  body:
183
183
  encoding: UTF-8
184
- string: ! '{"Image":"4c38b908954d","Cmd":["cat","/Gemfile"]}'
184
+ string: ! '{"Image":"fa11d4ddd3db","Cmd":["cat","/Gemfile"]}'
185
185
  headers:
186
186
  User-Agent:
187
- - Swipely/Docker-API 1.5.4
187
+ - Swipely/Docker-API 1.6.0
188
188
  Content-Type:
189
189
  - application/json
190
190
  response:
191
191
  status:
192
192
  code: 201
193
- message: ''
193
+ message:
194
194
  headers:
195
195
  !binary "Q29udGVudC1UeXBl":
196
196
  - !binary |-
197
197
  YXBwbGljYXRpb24vanNvbg==
198
198
  !binary "Q29udGVudC1MZW5ndGg=":
199
199
  - !binary |-
200
- NjU=
200
+ MjE=
201
201
  !binary "RGF0ZQ==":
202
202
  - !binary |-
203
- TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo0NyBHTVQ=
203
+ VGh1LCAzMSBPY3QgMjAxMyAxNjo0MzozMSBHTVQ=
204
204
  body:
205
205
  encoding: US-ASCII
206
- string: ! '{"Id":"64a321e9691b","Warnings":["IPv4 forwarding is disabled."]}'
206
+ string: ! '{"Id":"abe127023611"}'
207
207
  http_version:
208
- recorded_at: Mon, 07 Oct 2013 00:47:47 GMT
208
+ recorded_at: Thu, 31 Oct 2013 16:43:31 GMT
209
209
  - request:
210
210
  method: post
211
- uri: http://unix/v1.4/containers/64a321e9691b/start
211
+ uri: unix:///var/run/docker.sock/v1.6/containers/abe127023611/start
212
212
  body:
213
213
  encoding: UTF-8
214
214
  string: ! '{}'
215
215
  headers:
216
216
  User-Agent:
217
- - Swipely/Docker-API 1.5.4
217
+ - Swipely/Docker-API 1.6.0
218
218
  Content-Type:
219
219
  - application/json
220
220
  response:
221
221
  status:
222
222
  code: 204
223
- message: ''
223
+ message:
224
224
  headers:
225
225
  !binary "Q29udGVudC1UeXBl":
226
226
  - !binary |-
@@ -230,72 +230,36 @@ http_interactions:
230
230
  MA==
231
231
  !binary "RGF0ZQ==":
232
232
  - !binary |-
233
- TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo0NyBHTVQ=
233
+ VGh1LCAzMSBPY3QgMjAxMyAxNjo0MzozMSBHTVQ=
234
234
  body:
235
235
  encoding: US-ASCII
236
236
  string: ''
237
237
  http_version:
238
- recorded_at: Mon, 07 Oct 2013 00:47:47 GMT
238
+ recorded_at: Thu, 31 Oct 2013 16:43:31 GMT
239
239
  - request:
240
240
  method: post
241
- uri: http://unix/v1.4/containers/64a321e9691b/start
242
- body:
243
- encoding: UTF-8
244
- string: ! '{}'
245
- headers:
246
- User-Agent:
247
- - Swipely/Docker-API 1.5.4
248
- Content-Type:
249
- - application/json
250
- response:
251
- status:
252
- code: 500
253
- message: ''
254
- headers:
255
- !binary "Q29udGVudC1UeXBl":
256
- - !binary |-
257
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
258
- !binary "Q29udGVudC1MZW5ndGg=":
259
- - !binary |-
260
- MTM4
261
- !binary "RGF0ZQ==":
262
- - !binary |-
263
- TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo0NyBHTVQ=
264
- body:
265
- encoding: US-ASCII
266
- string: ! 'Error starting container 64a321e9691b: The container 64a321e9691b678a13e6bc0ba733d7af1121a6e35f5ba1656c7dafe00691bf9c
267
- is already running.
268
-
269
- '
270
- http_version:
271
- recorded_at: Mon, 07 Oct 2013 00:47:47 GMT
272
- - request:
273
- method: post
274
- uri: http://unix/v1.4/containers/64a321e9691b/attach?stdout=true&stream=true
241
+ uri: unix:///var/run/docker.sock/v1.6/containers/abe127023611/attach?stderr=true&stdout=true&stream=true
275
242
  body:
276
243
  encoding: US-ASCII
277
244
  string: ''
278
245
  headers:
279
246
  User-Agent:
280
- - Swipely/Docker-API 1.5.4
247
+ - Swipely/Docker-API 1.6.0
281
248
  Content-Type:
282
249
  - text/plain
283
250
  response:
284
251
  status:
285
252
  code: 200
286
- message: ''
253
+ message:
287
254
  headers:
288
255
  !binary "Q29udGVudC1UeXBl":
289
256
  - !binary |-
290
257
  YXBwbGljYXRpb24vdm5kLmRvY2tlci5yYXctc3RyZWFt
291
258
  body:
292
259
  encoding: US-ASCII
293
- string: ! 'source ''http://rubygems.org''
294
-
295
-
296
- gemspec
297
-
298
- '
260
+ string: !binary |-
261
+ AQAAAAAAACZzb3VyY2UgJ2h0dHA6Ly9ydWJ5Z2Vtcy5vcmcnCgpnZW1zcGVj
262
+ Cg==
299
263
  http_version:
300
- recorded_at: Mon, 07 Oct 2013 00:47:47 GMT
301
- recorded_with: VCR 2.6.0
264
+ recorded_at: Thu, 31 Oct 2013 16:43:31 GMT
265
+ recorded_with: VCR 2.7.0