docker-api 0.1.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. data/README.md +21 -48
  2. data/lib/docker/connection.rb +8 -1
  3. data/lib/docker/container.rb +11 -12
  4. data/lib/docker/error.rb +0 -4
  5. data/lib/docker/image.rb +44 -30
  6. data/lib/docker/model.rb +30 -40
  7. data/lib/docker/version.rb +1 -1
  8. data/spec/docker/connection_spec.rb +3 -2
  9. data/spec/docker/container_spec.rb +206 -377
  10. data/spec/docker/image_spec.rb +123 -237
  11. data/spec/vcr/Docker_Container/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml +2503 -263
  12. data/spec/vcr/Docker_Container/_attach/{when_the_Container_has_been_created/when_the_HTTP_response_status_is_200 → when_the_HTTP_response_status_is_200}/yields_each_chunk.yml +30 -22
  13. data/spec/vcr/Docker_Container/_changes/{when_the_Container_has_been_created/when_the_HTTP_response_status_is_200 → when_the_HTTP_response_status_is_200}/returns_the_changes_as_an_array.yml +41 -33
  14. data/spec/vcr/Docker_Container/_commit/{when_the_Container_has_been_created/when_the_HTTP_response_status_is_200 → when_the_HTTP_response_status_is_200}/creates_a_new_Image_from_the_Container_s_changes.yml +34 -28
  15. data/spec/vcr/Docker_Container/{_create_ → _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 +11 -9
  16. data/spec/vcr/Docker_Container/_export/{when_the_Container_has_been_created/when_the_HTTP_response_status_is_200 → when_the_HTTP_response_status_is_200}/yields_each_chunk.yml +43 -29
  17. data/spec/vcr/Docker_Container/_json/when_the_HTTP_response_status_is_200/returns_the_description_as_a_Hash.yml +63 -0
  18. data/spec/vcr/Docker_Container/_kill/when_the_HTTP_response_status_is_204/kills_the_container.yml +1358 -0
  19. data/spec/vcr/Docker_Container/_restart/{when_the_Container_has_been_created/when_the_HTTP_response_status_is_204 → when_the_HTTP_response_status_is_204}/restarts_the_container.yml +73 -59
  20. data/spec/vcr/Docker_Container/_start/{when_the_Container_has_been_created/when_the_HTTP_response_status_is_200 → when_the_HTTP_response_status_is_200}/starts_the_container.yml +33 -28
  21. data/spec/vcr/Docker_Container/_stop/when_the_HTTP_response_status_is_204/stops_the_container.yml +1387 -0
  22. data/spec/vcr/Docker_Container/_wait/{when_the_Container_has_been_created/when_the_HTTP_response_status_is_200 → when_the_HTTP_response_status_is_200}/waits_for_the_command_to_finish.yml +31 -25
  23. data/spec/vcr/Docker_Image/_all/when_the_HTTP_response_is_a_200/materializes_each_Image_into_a_Docker_Image.yml +6 -6
  24. data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/builds_an_image.yml +4 -4
  25. data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml +4 -4
  26. data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/builds_the_image.yml +14 -14
  27. data/spec/vcr/Docker_Image/_create/when_the_Image_does_not_yet_exist_and_the_body_is_a_Hash/when_the_HTTP_request_returns_a_200/sets_the_id.yml +33 -0
  28. data/spec/vcr/Docker_Image/_history/when_the_HTTP_response_status_is_200/returns_the_history_of_the_Image.yml +63 -0
  29. data/spec/vcr/Docker_Image/_import/when_the_file_does_exist/creates_the_Image.yml +11 -9
  30. data/spec/vcr/Docker_Image/_insert/when_the_HTTP_response_status_is_200/inserts_the_url_s_file_into_a_new_Image.yml +220 -0
  31. data/spec/vcr/Docker_Image/_json/when_the_HTTP_response_status_is_200/returns_additional_information_about_image_image.yml +63 -0
  32. data/spec/vcr/Docker_Image/_remove/when_the_HTTP_response_status_is_204/removes_the_Image.yml +93 -0
  33. data/spec/vcr/Docker_Image/_remove/when_the_Image_has_been_created/when_the_HTTP_response_status_is_204/removes_the_Image.yml +63 -0
  34. data/spec/vcr/Docker_Image/_run/when_the_Image_has_been_created/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml +119 -0
  35. data/spec/vcr/Docker_Image/_run/when_the_Image_has_been_created/when_the_argument_is_an_Array/creates_a_new_Container.yml +119 -0
  36. data/spec/vcr/Docker_Image/_run/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml +119 -0
  37. data/spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml +119 -0
  38. data/spec/vcr/Docker_Image/_tag/when_the_HTTP_response_status_is_200/tags_the_image_with_the_repo_name.yml +63 -0
  39. metadata +46 -29
  40. data/spec/vcr/Docker_Container/_json/when_the_Container_has_been_created/when_the_HTTP_response_status_is_200/returns_the_description_as_a_Hash.yml +0 -61
  41. data/spec/vcr/Docker_Container/_kill/when_the_Container_has_been_created/when_the_HTTP_response_status_is_204/kills_the_container.yml +0 -232
  42. data/spec/vcr/Docker_Container/_stop/when_the_Container_has_been_created/when_the_HTTP_response_status_is_204/stops_the_container.yml +0 -259
@@ -0,0 +1,119 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:4243/images/create?fromImage=base
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Docker-Client/0.4.6
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: ''
16
+ headers:
17
+ !binary "Q29udGVudC1UeXBl":
18
+ - !binary |-
19
+ YXBwbGljYXRpb24vanNvbg==
20
+ !binary "RGF0ZQ==":
21
+ - !binary |-
22
+ TW9uLCAyNCBKdW4gMjAxMyAxOTo1MjoxMiBHTVQ=
23
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
24
+ - !binary |-
25
+ Y2h1bmtlZA==
26
+ body:
27
+ encoding: US-ASCII
28
+ string: ! '{"status":"Pulling repository base from https://index.docker.io/v1"}{"status":"Pulling
29
+ image 27cf784147099545 () from base"}{"status":"Pulling image b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc
30
+ (ubuntu-quantl) from base"}'
31
+ http_version:
32
+ recorded_at: Mon, 24 Jun 2013 19:52:14 GMT
33
+ - request:
34
+ method: post
35
+ uri: http://localhost:4243/containers/create
36
+ body:
37
+ encoding: UTF-8
38
+ string: ! '{"Image":"base","Cmd":["ls","/lib64/"]}'
39
+ headers:
40
+ Content-Type:
41
+ - text/plain
42
+ User-Agent:
43
+ - Docker-Client/0.4.6
44
+ response:
45
+ status:
46
+ code: 201
47
+ message: ''
48
+ headers:
49
+ !binary "Q29udGVudC1UeXBl":
50
+ - !binary |-
51
+ dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
52
+ !binary "Q29udGVudC1MZW5ndGg=":
53
+ - !binary |-
54
+ MjE=
55
+ !binary "RGF0ZQ==":
56
+ - !binary |-
57
+ TW9uLCAyNCBKdW4gMjAxMyAxOTo1MjoxNSBHTVQ=
58
+ body:
59
+ encoding: US-ASCII
60
+ string: ! '{"Id":"7ed69689931a"}'
61
+ http_version:
62
+ recorded_at: Mon, 24 Jun 2013 19:52:15 GMT
63
+ - request:
64
+ method: post
65
+ uri: http://localhost:4243/containers/7ed69689931a/start
66
+ body:
67
+ encoding: US-ASCII
68
+ string: ''
69
+ headers:
70
+ Content-Type:
71
+ - text/plain
72
+ User-Agent:
73
+ - Docker-Client/0.4.6
74
+ response:
75
+ status:
76
+ code: 204
77
+ message: ''
78
+ headers:
79
+ !binary "Q29udGVudC1UeXBl":
80
+ - !binary |-
81
+ dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
82
+ !binary "Q29udGVudC1MZW5ndGg=":
83
+ - !binary |-
84
+ MA==
85
+ !binary "RGF0ZQ==":
86
+ - !binary |-
87
+ TW9uLCAyNCBKdW4gMjAxMyAxOTo1MjoxNSBHTVQ=
88
+ body:
89
+ encoding: US-ASCII
90
+ string: ''
91
+ http_version:
92
+ recorded_at: Mon, 24 Jun 2013 19:52:15 GMT
93
+ - request:
94
+ method: post
95
+ uri: http://localhost:4243/containers/7ed69689931a/attach?stdout=true&stream=true
96
+ body:
97
+ encoding: US-ASCII
98
+ string: ''
99
+ headers:
100
+ Content-Type:
101
+ - text/plain
102
+ User-Agent:
103
+ - Docker-Client/0.4.6
104
+ response:
105
+ status:
106
+ code: 200
107
+ message: ''
108
+ headers:
109
+ !binary "Q29udGVudC1UeXBl":
110
+ - !binary |-
111
+ YXBwbGljYXRpb24vdm5kLmRvY2tlci5yYXctc3RyZWFt
112
+ body:
113
+ encoding: US-ASCII
114
+ string: ! 'ld-linux-x86-64.so.2
115
+
116
+ '
117
+ http_version:
118
+ recorded_at: Mon, 24 Jun 2013 19:52:15 GMT
119
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,119 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:4243/images/create?fromImage=base
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Docker-Client/0.4.6
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: ''
16
+ headers:
17
+ !binary "Q29udGVudC1UeXBl":
18
+ - !binary |-
19
+ YXBwbGljYXRpb24vanNvbg==
20
+ !binary "RGF0ZQ==":
21
+ - !binary |-
22
+ TW9uLCAyNCBKdW4gMjAxMyAxOTo1MjoxNSBHTVQ=
23
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
24
+ - !binary |-
25
+ Y2h1bmtlZA==
26
+ body:
27
+ encoding: US-ASCII
28
+ string: ! '{"status":"Pulling repository base from https://index.docker.io/v1"}{"status":"Pulling
29
+ image 27cf784147099545 () from base"}{"status":"Pulling image b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc
30
+ (ubuntu-quantl) from base"}'
31
+ http_version:
32
+ recorded_at: Mon, 24 Jun 2013 19:52:17 GMT
33
+ - request:
34
+ method: post
35
+ uri: http://localhost:4243/containers/create
36
+ body:
37
+ encoding: UTF-8
38
+ string: ! '{"Image":"base","Cmd":["which","pwd"]}'
39
+ headers:
40
+ Content-Type:
41
+ - text/plain
42
+ User-Agent:
43
+ - Docker-Client/0.4.6
44
+ response:
45
+ status:
46
+ code: 201
47
+ message: ''
48
+ headers:
49
+ !binary "Q29udGVudC1UeXBl":
50
+ - !binary |-
51
+ dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
52
+ !binary "Q29udGVudC1MZW5ndGg=":
53
+ - !binary |-
54
+ MjE=
55
+ !binary "RGF0ZQ==":
56
+ - !binary |-
57
+ TW9uLCAyNCBKdW4gMjAxMyAxOTo1MjoxNyBHTVQ=
58
+ body:
59
+ encoding: US-ASCII
60
+ string: ! '{"Id":"261efbfe6c33"}'
61
+ http_version:
62
+ recorded_at: Mon, 24 Jun 2013 19:52:17 GMT
63
+ - request:
64
+ method: post
65
+ uri: http://localhost:4243/containers/261efbfe6c33/start
66
+ body:
67
+ encoding: US-ASCII
68
+ string: ''
69
+ headers:
70
+ Content-Type:
71
+ - text/plain
72
+ User-Agent:
73
+ - Docker-Client/0.4.6
74
+ response:
75
+ status:
76
+ code: 204
77
+ message: ''
78
+ headers:
79
+ !binary "Q29udGVudC1UeXBl":
80
+ - !binary |-
81
+ dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
82
+ !binary "Q29udGVudC1MZW5ndGg=":
83
+ - !binary |-
84
+ MA==
85
+ !binary "RGF0ZQ==":
86
+ - !binary |-
87
+ TW9uLCAyNCBKdW4gMjAxMyAxOTo1MjoxNyBHTVQ=
88
+ body:
89
+ encoding: US-ASCII
90
+ string: ''
91
+ http_version:
92
+ recorded_at: Mon, 24 Jun 2013 19:52:17 GMT
93
+ - request:
94
+ method: post
95
+ uri: http://localhost:4243/containers/261efbfe6c33/attach?stdout=true&stream=true
96
+ body:
97
+ encoding: US-ASCII
98
+ string: ''
99
+ headers:
100
+ Content-Type:
101
+ - text/plain
102
+ User-Agent:
103
+ - Docker-Client/0.4.6
104
+ response:
105
+ status:
106
+ code: 200
107
+ message: ''
108
+ headers:
109
+ !binary "Q29udGVudC1UeXBl":
110
+ - !binary |-
111
+ YXBwbGljYXRpb24vdm5kLmRvY2tlci5yYXctc3RyZWFt
112
+ body:
113
+ encoding: US-ASCII
114
+ string: ! '/bin/pwd
115
+
116
+ '
117
+ http_version:
118
+ recorded_at: Mon, 24 Jun 2013 19:52:17 GMT
119
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:4243/images/create?fromImage=base
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Docker-Client/0.4.6
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: ''
16
+ headers:
17
+ !binary "Q29udGVudC1UeXBl":
18
+ - !binary |-
19
+ YXBwbGljYXRpb24vanNvbg==
20
+ !binary "RGF0ZQ==":
21
+ - !binary |-
22
+ TW9uLCAyNCBKdW4gMjAxMyAxOTo0ODo0MSBHTVQ=
23
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
24
+ - !binary |-
25
+ Y2h1bmtlZA==
26
+ body:
27
+ encoding: US-ASCII
28
+ string: ! '{"status":"Pulling repository base from https://index.docker.io/v1"}{"status":"Pulling
29
+ image 27cf784147099545 () from base"}{"status":"Pulling image b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc
30
+ (ubuntu-quantl) from base"}'
31
+ http_version:
32
+ recorded_at: Mon, 24 Jun 2013 19:48:43 GMT
33
+ - request:
34
+ method: post
35
+ uri: http://localhost:4243/images/base/tag?force=true&repo=base2
36
+ body:
37
+ encoding: US-ASCII
38
+ string: ''
39
+ headers:
40
+ Content-Type:
41
+ - text/plain
42
+ User-Agent:
43
+ - Docker-Client/0.4.6
44
+ response:
45
+ status:
46
+ code: 201
47
+ message: ''
48
+ headers:
49
+ !binary "Q29udGVudC1UeXBl":
50
+ - !binary |-
51
+ dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
52
+ !binary "Q29udGVudC1MZW5ndGg=":
53
+ - !binary |-
54
+ MA==
55
+ !binary "RGF0ZQ==":
56
+ - !binary |-
57
+ TW9uLCAyNCBKdW4gMjAxMyAxOTo0ODo0MyBHTVQ=
58
+ body:
59
+ encoding: US-ASCII
60
+ string: ''
61
+ http_version:
62
+ recorded_at: Mon, 24 Jun 2013 19:48:43 GMT
63
+ recorded_with: VCR 2.5.0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -187,28 +187,39 @@ files:
187
187
  - spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml
188
188
  - spec/vcr/Docker/_version/returns_the_version_as_a_Hash.yml
189
189
  - spec/vcr/Docker_Container/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml
190
- - spec/vcr/Docker_Container/_attach/when_the_Container_has_been_created/when_the_HTTP_response_status_is_200/yields_each_chunk.yml
191
- - spec/vcr/Docker_Container/_changes/when_the_Container_has_been_created/when_the_HTTP_response_status_is_200/returns_the_changes_as_an_array.yml
192
- - spec/vcr/Docker_Container/_commit/when_the_Container_has_been_created/when_the_HTTP_response_status_is_200/creates_a_new_Image_from_the_Container_s_changes.yml
193
- - 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
194
- - spec/vcr/Docker_Container/_export/when_the_Container_has_been_created/when_the_HTTP_response_status_is_200/yields_each_chunk.yml
195
- - spec/vcr/Docker_Container/_json/when_the_Container_has_been_created/when_the_HTTP_response_status_is_200/returns_the_description_as_a_Hash.yml
196
- - spec/vcr/Docker_Container/_kill/when_the_Container_has_been_created/when_the_HTTP_response_status_is_204/kills_the_container.yml
197
- - spec/vcr/Docker_Container/_restart/when_the_Container_has_been_created/when_the_HTTP_response_status_is_204/restarts_the_container.yml
198
- - spec/vcr/Docker_Container/_start/when_the_Container_has_been_created/when_the_HTTP_response_status_is_200/starts_the_container.yml
199
- - spec/vcr/Docker_Container/_stop/when_the_Container_has_been_created/when_the_HTTP_response_status_is_204/stops_the_container.yml
200
- - spec/vcr/Docker_Container/_wait/when_the_Container_has_been_created/when_the_HTTP_response_status_is_200/waits_for_the_command_to_finish.yml
190
+ - spec/vcr/Docker_Container/_attach/when_the_HTTP_response_status_is_200/yields_each_chunk.yml
191
+ - spec/vcr/Docker_Container/_changes/when_the_HTTP_response_status_is_200/returns_the_changes_as_an_array.yml
192
+ - spec/vcr/Docker_Container/_commit/when_the_HTTP_response_status_is_200/creates_a_new_Image_from_the_Container_s_changes.yml
193
+ - 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
194
+ - spec/vcr/Docker_Container/_export/when_the_HTTP_response_status_is_200/yields_each_chunk.yml
195
+ - spec/vcr/Docker_Container/_json/when_the_HTTP_response_status_is_200/returns_the_description_as_a_Hash.yml
196
+ - spec/vcr/Docker_Container/_kill/when_the_HTTP_response_status_is_204/kills_the_container.yml
197
+ - spec/vcr/Docker_Container/_restart/when_the_HTTP_response_status_is_204/restarts_the_container.yml
198
+ - spec/vcr/Docker_Container/_start/when_the_HTTP_response_status_is_200/starts_the_container.yml
199
+ - spec/vcr/Docker_Container/_stop/when_the_HTTP_response_status_is_204/stops_the_container.yml
200
+ - spec/vcr/Docker_Container/_wait/when_the_HTTP_response_status_is_200/waits_for_the_command_to_finish.yml
201
201
  - spec/vcr/Docker_Image/_all/when_the_HTTP_response_is_a_200/materializes_each_Image_into_a_Docker_Image.yml
202
202
  - spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/builds_an_image.yml
203
203
  - spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml
204
204
  - spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/builds_the_image.yml
205
+ - spec/vcr/Docker_Image/_create/when_the_Image_does_not_yet_exist_and_the_body_is_a_Hash/when_the_HTTP_request_returns_a_200/sets_the_id.yml
205
206
  - spec/vcr/Docker_Image/_create_/when_the_Image_does_not_yet_exist_and_the_body_is_a_Hash/when_the_HTTP_request_returns_a_200/sets_the_id.yml
207
+ - spec/vcr/Docker_Image/_history/when_the_HTTP_response_status_is_200/returns_the_history_of_the_Image.yml
206
208
  - spec/vcr/Docker_Image/_history/when_the_Image_has_been_created/when_the_HTTP_response_status_is_200/returns_the_history_of_the_Image.yml
207
209
  - spec/vcr/Docker_Image/_import/when_the_file_does_exist/creates_the_Image.yml
210
+ - spec/vcr/Docker_Image/_insert/when_the_HTTP_response_status_is_200/inserts_the_url_s_file_into_a_new_Image.yml
208
211
  - spec/vcr/Docker_Image/_insert/when_the_Image_has_been_created/when_the_HTTP_response_status_is_200/inserts_the_url_s_file_into_a_new_Image.yml
212
+ - spec/vcr/Docker_Image/_json/when_the_HTTP_response_status_is_200/returns_additional_information_about_image_image.yml
209
213
  - spec/vcr/Docker_Image/_json/when_the_Image_has_been_created/when_the_HTTP_response_status_is_200/returns_additional_information_about_image_image.yml
214
+ - spec/vcr/Docker_Image/_remove/when_the_HTTP_response_status_is_204/removes_the_Image.yml
210
215
  - spec/vcr/Docker_Image/_remove/when_the_Image_has_been_created/when_the_HTTP_response_status_is_204/nils_out_the_id.yml
216
+ - spec/vcr/Docker_Image/_remove/when_the_Image_has_been_created/when_the_HTTP_response_status_is_204/removes_the_Image.yml
217
+ - spec/vcr/Docker_Image/_run/when_the_Image_has_been_created/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml
218
+ - spec/vcr/Docker_Image/_run/when_the_Image_has_been_created/when_the_argument_is_an_Array/creates_a_new_Container.yml
219
+ - spec/vcr/Docker_Image/_run/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml
220
+ - spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml
211
221
  - spec/vcr/Docker_Image/_search/when_the_HTTP_response_is_a_200/materializes_each_Image_into_a_Docker_Image.yml
222
+ - spec/vcr/Docker_Image/_tag/when_the_HTTP_response_status_is_200/tags_the_image_with_the_repo_name.yml
212
223
  - spec/vcr/Docker_Image/_tag/when_the_Image_has_been_created/when_the_HTTP_response_status_is_200/tags_the_image_with_the_repo_name.yml
213
224
  homepage: https://github.com/swipely/docker-api
214
225
  licenses: []
@@ -222,18 +233,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
222
233
  - - ! '>='
223
234
  - !ruby/object:Gem::Version
224
235
  version: '0'
225
- segments:
226
- - 0
227
- hash: -1912802071759945809
228
236
  required_rubygems_version: !ruby/object:Gem::Requirement
229
237
  none: false
230
238
  requirements:
231
239
  - - ! '>='
232
240
  - !ruby/object:Gem::Version
233
241
  version: '0'
234
- segments:
235
- - 0
236
- hash: -1912802071759945809
237
242
  requirements: []
238
243
  rubyforge_project:
239
244
  rubygems_version: 1.8.23
@@ -251,26 +256,38 @@ test_files:
251
256
  - spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml
252
257
  - spec/vcr/Docker/_version/returns_the_version_as_a_Hash.yml
253
258
  - spec/vcr/Docker_Container/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml
254
- - spec/vcr/Docker_Container/_attach/when_the_Container_has_been_created/when_the_HTTP_response_status_is_200/yields_each_chunk.yml
255
- - spec/vcr/Docker_Container/_changes/when_the_Container_has_been_created/when_the_HTTP_response_status_is_200/returns_the_changes_as_an_array.yml
256
- - spec/vcr/Docker_Container/_commit/when_the_Container_has_been_created/when_the_HTTP_response_status_is_200/creates_a_new_Image_from_the_Container_s_changes.yml
257
- - 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
258
- - spec/vcr/Docker_Container/_export/when_the_Container_has_been_created/when_the_HTTP_response_status_is_200/yields_each_chunk.yml
259
- - spec/vcr/Docker_Container/_json/when_the_Container_has_been_created/when_the_HTTP_response_status_is_200/returns_the_description_as_a_Hash.yml
260
- - spec/vcr/Docker_Container/_kill/when_the_Container_has_been_created/when_the_HTTP_response_status_is_204/kills_the_container.yml
261
- - spec/vcr/Docker_Container/_restart/when_the_Container_has_been_created/when_the_HTTP_response_status_is_204/restarts_the_container.yml
262
- - spec/vcr/Docker_Container/_start/when_the_Container_has_been_created/when_the_HTTP_response_status_is_200/starts_the_container.yml
263
- - spec/vcr/Docker_Container/_stop/when_the_Container_has_been_created/when_the_HTTP_response_status_is_204/stops_the_container.yml
264
- - spec/vcr/Docker_Container/_wait/when_the_Container_has_been_created/when_the_HTTP_response_status_is_200/waits_for_the_command_to_finish.yml
259
+ - spec/vcr/Docker_Container/_attach/when_the_HTTP_response_status_is_200/yields_each_chunk.yml
260
+ - spec/vcr/Docker_Container/_changes/when_the_HTTP_response_status_is_200/returns_the_changes_as_an_array.yml
261
+ - spec/vcr/Docker_Container/_commit/when_the_HTTP_response_status_is_200/creates_a_new_Image_from_the_Container_s_changes.yml
262
+ - 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
263
+ - spec/vcr/Docker_Container/_export/when_the_HTTP_response_status_is_200/yields_each_chunk.yml
264
+ - spec/vcr/Docker_Container/_json/when_the_HTTP_response_status_is_200/returns_the_description_as_a_Hash.yml
265
+ - spec/vcr/Docker_Container/_kill/when_the_HTTP_response_status_is_204/kills_the_container.yml
266
+ - spec/vcr/Docker_Container/_restart/when_the_HTTP_response_status_is_204/restarts_the_container.yml
267
+ - spec/vcr/Docker_Container/_start/when_the_HTTP_response_status_is_200/starts_the_container.yml
268
+ - spec/vcr/Docker_Container/_stop/when_the_HTTP_response_status_is_204/stops_the_container.yml
269
+ - spec/vcr/Docker_Container/_wait/when_the_HTTP_response_status_is_200/waits_for_the_command_to_finish.yml
265
270
  - spec/vcr/Docker_Image/_all/when_the_HTTP_response_is_a_200/materializes_each_Image_into_a_Docker_Image.yml
266
271
  - spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/builds_an_image.yml
267
272
  - spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml
268
273
  - spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/builds_the_image.yml
274
+ - spec/vcr/Docker_Image/_create/when_the_Image_does_not_yet_exist_and_the_body_is_a_Hash/when_the_HTTP_request_returns_a_200/sets_the_id.yml
269
275
  - spec/vcr/Docker_Image/_create_/when_the_Image_does_not_yet_exist_and_the_body_is_a_Hash/when_the_HTTP_request_returns_a_200/sets_the_id.yml
276
+ - spec/vcr/Docker_Image/_history/when_the_HTTP_response_status_is_200/returns_the_history_of_the_Image.yml
270
277
  - spec/vcr/Docker_Image/_history/when_the_Image_has_been_created/when_the_HTTP_response_status_is_200/returns_the_history_of_the_Image.yml
271
278
  - spec/vcr/Docker_Image/_import/when_the_file_does_exist/creates_the_Image.yml
279
+ - spec/vcr/Docker_Image/_insert/when_the_HTTP_response_status_is_200/inserts_the_url_s_file_into_a_new_Image.yml
272
280
  - spec/vcr/Docker_Image/_insert/when_the_Image_has_been_created/when_the_HTTP_response_status_is_200/inserts_the_url_s_file_into_a_new_Image.yml
281
+ - spec/vcr/Docker_Image/_json/when_the_HTTP_response_status_is_200/returns_additional_information_about_image_image.yml
273
282
  - spec/vcr/Docker_Image/_json/when_the_Image_has_been_created/when_the_HTTP_response_status_is_200/returns_additional_information_about_image_image.yml
283
+ - spec/vcr/Docker_Image/_remove/when_the_HTTP_response_status_is_204/removes_the_Image.yml
274
284
  - spec/vcr/Docker_Image/_remove/when_the_Image_has_been_created/when_the_HTTP_response_status_is_204/nils_out_the_id.yml
285
+ - spec/vcr/Docker_Image/_remove/when_the_Image_has_been_created/when_the_HTTP_response_status_is_204/removes_the_Image.yml
286
+ - spec/vcr/Docker_Image/_run/when_the_Image_has_been_created/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml
287
+ - spec/vcr/Docker_Image/_run/when_the_Image_has_been_created/when_the_argument_is_an_Array/creates_a_new_Container.yml
288
+ - spec/vcr/Docker_Image/_run/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml
289
+ - spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml
275
290
  - spec/vcr/Docker_Image/_search/when_the_HTTP_response_is_a_200/materializes_each_Image_into_a_Docker_Image.yml
291
+ - spec/vcr/Docker_Image/_tag/when_the_HTTP_response_status_is_200/tags_the_image_with_the_repo_name.yml
276
292
  - spec/vcr/Docker_Image/_tag/when_the_Image_has_been_created/when_the_HTTP_response_status_is_200/tags_the_image_with_the_repo_name.yml
293
+ has_rdoc:
@@ -1,61 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: http://localhost:4243/containers/create
6
- body:
7
- encoding: UTF-8
8
- string: ! '{"Cmd":["ls"],"Image":"base"}'
9
- headers:
10
- Content-Type:
11
- - text/plain
12
- User-Agent:
13
- - Docker-Client/1.2
14
- response:
15
- status:
16
- code: 201
17
- message: ''
18
- headers:
19
- !binary "Q29udGVudC1UeXBl":
20
- - !binary |-
21
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
22
- !binary "Q29udGVudC1MZW5ndGg=":
23
- - !binary |-
24
- MjE=
25
- !binary "RGF0ZQ==":
26
- - !binary |-
27
- VGh1LCAyMCBKdW4gMjAxMyAyMzoyMTo1NCBHTVQ=
28
- body:
29
- encoding: US-ASCII
30
- string: ! '{"Id":"7f9914f1fa16"}'
31
- http_version:
32
- recorded_at: Thu, 20 Jun 2013 23:21:54 GMT
33
- - request:
34
- method: get
35
- uri: http://localhost:4243/containers/7f9914f1fa16/json
36
- body:
37
- encoding: US-ASCII
38
- string: ''
39
- headers:
40
- Content-Type:
41
- - application/json
42
- response:
43
- status:
44
- code: 200
45
- message: ''
46
- headers:
47
- !binary "Q29udGVudC1UeXBl":
48
- - !binary |-
49
- YXBwbGljYXRpb24vanNvbg==
50
- !binary "Q29udGVudC1MZW5ndGg=":
51
- - !binary |-
52
- ODc1
53
- !binary "RGF0ZQ==":
54
- - !binary |-
55
- VGh1LCAyMCBKdW4gMjAxMyAyMzoyMTo1NCBHTVQ=
56
- body:
57
- encoding: US-ASCII
58
- string: ! '{"ID":"7f9914f1fa1606d34b575449d55aac1f1cbd1f1d5ef3c3251ced52f78173fe5f","Created":"2013-06-20T19:21:54.919322118-04:00","Path":"ls","Args":[],"Config":{"Hostname":"7f9914f1fa16","User":"","Memory":0,"MemorySwap":0,"CpuShares":0,"AttachStdin":false,"AttachStdout":false,"AttachStderr":false,"PortSpecs":null,"Tty":false,"OpenStdin":false,"StdinOnce":false,"Env":null,"Cmd":["ls"],"Dns":null,"Image":"base","Volumes":null,"VolumesFrom":""},"State":{"Running":false,"Pid":0,"ExitCode":0,"StartedAt":"0001-01-01T00:00:00Z","Ghost":false},"Image":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","NetworkSettings":{"IPAddress":"","IPPrefixLen":0,"Gateway":"","Bridge":"","PortMapping":null},"SysInitPath":"/usr/bin/docker","ResolvConfPath":"/var/lib/docker/containers/7f9914f1fa1606d34b575449d55aac1f1cbd1f1d5ef3c3251ced52f78173fe5f/resolv.conf","Volumes":null}'
59
- http_version:
60
- recorded_at: Thu, 20 Jun 2013 23:21:54 GMT
61
- recorded_with: VCR 2.5.0