docker-api 1.7.6 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +7 -0
  2. data/lib/docker.rb +9 -9
  3. data/lib/docker/connection.rb +1 -1
  4. data/lib/docker/container.rb +1 -2
  5. data/lib/docker/image.rb +7 -6
  6. data/lib/docker/version.rb +2 -2
  7. data/spec/docker/connection_spec.rb +2 -2
  8. data/spec/docker/container_spec.rb +12 -10
  9. data/spec/docker/image_spec.rb +13 -13
  10. data/spec/docker_spec.rb +5 -4
  11. data/spec/vcr/Docker/_authenticate_/with_valid_credentials/logs_in_and_sets_the_creds.yml +1 -1
  12. data/spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml +17 -15
  13. data/spec/vcr/Docker/_validate_version/when_nothing_is_raised/validate_version_/.yml +17 -15
  14. data/spec/vcr/Docker/_version/returns_the_version_as_a_Hash.yml +17 -15
  15. data/spec/vcr/Docker_Container/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml +96 -46
  16. data/spec/vcr/Docker_Container/_attach/with_normal_sized_chunks/yields_each_chunk.yml +35 -37
  17. data/spec/vcr/Docker_Container/_attach/with_very_small_chunks/yields_each_chunk.yml +35 -37
  18. data/spec/vcr/Docker_Container/_changes/returns_the_changes_as_an_array.yml +60 -58
  19. data/spec/vcr/Docker_Container/_commit/creates_a_new_Image_from_the_Container_s_changes.yml +46 -47
  20. data/spec/vcr/Docker_Container/_commit/if_run_is_passed_it_saves_the_command_in_the_image/saves_the_command.yml +78 -81
  21. data/spec/vcr/Docker_Container/_copy/when_the_file_does_not_exist/raises_an_error.yml +77 -80
  22. data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_directory/yields_each_chunk_of_the_tarred_directory.yml +91 -182
  23. data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_file/yields_each_chunk_of_the_tarred_file.yml +80 -273
  24. data/spec/vcr/Docker_Container/_create/when_creating_a_container_named_bob/should_have_name_set_to_bob.yml +20 -15
  25. data/spec/vcr/Docker_Container/_create/when_the_Container_does_not_yet_exist/when_the_HTTP_request_returns_a_200/sets_the_id.yml +16 -16
  26. data/spec/vcr/Docker_Container/_delete/deletes_the_container.yml +41 -43
  27. data/spec/vcr/Docker_Container/_export/yields_each_chunk.yml +82759 -46
  28. data/spec/vcr/Docker_Container/_get/when_the_HTTP_response_is_a_200/materializes_the_Container_into_a_Docker_Container.yml +29 -30
  29. data/spec/vcr/Docker_Container/_json/returns_the_description_as_a_Hash.yml +29 -30
  30. data/spec/vcr/Docker_Container/_kill/kills_the_container.yml +69 -71
  31. data/spec/vcr/Docker_Container/_restart/restarts_the_container.yml +98 -102
  32. data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_does_not_return_status_code_of_0/raises_an_error.yml +43 -44
  33. 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 +117 -122
  34. data/spec/vcr/Docker_Container/_start/starts_the_container.yml +58 -59
  35. data/spec/vcr/Docker_Container/_stop/stops_the_container.yml +81 -84
  36. data/spec/vcr/Docker_Container/_top/returns_the_top_commands_as_an_Array.yml +116 -87
  37. data/spec/vcr/Docker_Container/_wait/waits_for_the_command_to_finish.yml +43 -44
  38. data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/and_a_command_runs_for_too_long/raises_a_ServerError.yml +29 -30
  39. data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/sets_the_read_timeout_to_that_amount_of_time.yml +43 -44
  40. data/spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml +46 -32
  41. 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 -9
  42. 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 +42 -31
  43. data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/without_query_parameters/builds_an_image.yml +16 -16
  44. data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml +17 -19
  45. 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 +9 -8
  46. data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_no_query_parameters/builds_the_image.yml +50 -52
  47. 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 +76 -66
  48. data/spec/vcr/Docker_Image/_create/when_the_Image_does_not_yet_exist_and_the_body_is_a_Hash/sets_the_id.yml +20 -18
  49. data/spec/vcr/Docker_Image/_get/when_the_image_does_exist/returns_the_new_image.yml +14 -15
  50. data/spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml +36 -32
  51. data/spec/vcr/Docker_Image/_insert/inserts_the_url_s_file_into_a_new_Image.yml +70 -86
  52. data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/creates_a_new_image.yml +69 -47
  53. data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/leave_no_intermediate_containers.yml +118 -47
  54. data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_exist/creates_a_new_Image_that_has_that_file.yml +68 -70
  55. data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_not_exist/raises_an_error.yml +16 -16
  56. data/spec/vcr/Docker_Image/_insert_local/when_there_are_multiple_files_passed/creates_a_new_Image_that_has_each_file.yml +70 -72
  57. data/spec/vcr/Docker_Image/_json/returns_additional_information_about_image_image.yml +33 -32
  58. data/spec/vcr/Docker_Image/_push/pushes_the_Image.yml +162 -105
  59. data/spec/vcr/Docker_Image/_remove/removes_the_Image.yml +53 -46
  60. data/spec/vcr/Docker_Image/_run/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml +54 -54
  61. data/spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml +54 -54
  62. 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 +46 -101
  63. 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 +35 -35
  64. data/spec/vcr/Docker_Image/_search/materializes_each_Image_into_a_Docker_Image.yml +94 -35
  65. data/spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml +32 -31
  66. metadata +29 -49
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: unix:///var/run/docker.sock/v1.6/containers/create
5
+ uri: unix:///var/run/docker.sock/v1.8/containers/create
6
6
  body:
7
7
  encoding: UTF-8
8
- string: ! '{"Cmd":["true"],"Image":"base"}'
8
+ string: "{\"Cmd\":[\"true\"],\"Image\":\"base\"}"
9
9
  headers:
10
10
  User-Agent:
11
- - Swipely/Docker-API 1.6.0
11
+ - Swipely/Docker-API 1.7.6
12
12
  Content-Type:
13
13
  - application/json
14
14
  response:
@@ -16,29 +16,29 @@ http_interactions:
16
16
  code: 201
17
17
  message:
18
18
  headers:
19
- !binary "Q29udGVudC1UeXBl":
20
- - !binary |-
21
- YXBwbGljYXRpb24vanNvbg==
22
- !binary "Q29udGVudC1MZW5ndGg=":
23
- - !binary |-
24
- MjE=
25
- !binary "RGF0ZQ==":
26
- - !binary |-
27
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyOToxOSBHTVQ=
19
+ Content-Type:
20
+ - application/json
21
+ Date:
22
+ - Wed, 12 Feb 2014 17:05:47 GMT
23
+ Content-Length:
24
+ - '90'
25
+ Connection:
26
+ - close
28
27
  body:
29
- encoding: US-ASCII
30
- string: ! '{"Id":"12f34259d0d9"}'
28
+ encoding: UTF-8
29
+ string: |
30
+ {"Id":"96d2323cd50e045118d05e31244ef0b7e889371331cf38da7569e2bc7381b68f","Warnings":null}
31
31
  http_version:
32
- recorded_at: Fri, 25 Oct 2013 16:29:19 GMT
32
+ recorded_at: Wed, 12 Feb 2014 17:05:47 GMT
33
33
  - request:
34
34
  method: post
35
- uri: unix:///var/run/docker.sock/v1.6/containers/12f34259d0d9/start
35
+ uri: unix:///var/run/docker.sock/v1.8/containers/96d2323cd50e045118d05e31244ef0b7e889371331cf38da7569e2bc7381b68f/start
36
36
  body:
37
37
  encoding: UTF-8
38
- string: ! '{}'
38
+ string: "{}"
39
39
  headers:
40
40
  User-Agent:
41
- - Swipely/Docker-API 1.6.0
41
+ - Swipely/Docker-API 1.7.6
42
42
  Content-Type:
43
43
  - application/json
44
44
  response:
@@ -46,48 +46,47 @@ http_interactions:
46
46
  code: 204
47
47
  message:
48
48
  headers:
49
- !binary "Q29udGVudC1UeXBl":
50
- - !binary |-
51
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
52
- !binary "Q29udGVudC1MZW5ndGg=":
53
- - !binary |-
54
- MA==
55
- !binary "RGF0ZQ==":
56
- - !binary |-
57
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyOToxOSBHTVQ=
49
+ Date:
50
+ - Wed, 12 Feb 2014 17:05:47 GMT
51
+ Content-Length:
52
+ - '0'
53
+ Content-Type:
54
+ - text/plain; charset=utf-8
55
+ Connection:
56
+ - close
58
57
  body:
59
- encoding: US-ASCII
58
+ encoding: UTF-8
60
59
  string: ''
61
60
  http_version:
62
- recorded_at: Fri, 25 Oct 2013 16:29:19 GMT
61
+ recorded_at: Wed, 12 Feb 2014 17:05:47 GMT
63
62
  - request:
64
63
  method: post
65
- uri: unix:///var/run/docker.sock/v1.6/commit?container=12f34259
64
+ uri: unix:///var/run/docker.sock/v1.8/commit?container=96d2323c
66
65
  body:
67
- encoding: US-ASCII
68
- string: ''
66
+ encoding: UTF-8
67
+ string: 'null'
69
68
  headers:
70
69
  User-Agent:
71
- - Swipely/Docker-API 1.6.0
70
+ - Swipely/Docker-API 1.7.6
72
71
  Content-Type:
73
- - text/plain
72
+ - application/json
74
73
  response:
75
74
  status:
76
75
  code: 201
77
76
  message:
78
77
  headers:
79
- !binary "Q29udGVudC1UeXBl":
80
- - !binary |-
81
- YXBwbGljYXRpb24vanNvbg==
82
- !binary "Q29udGVudC1MZW5ndGg=":
83
- - !binary |-
84
- MjE=
85
- !binary "RGF0ZQ==":
86
- - !binary |-
87
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyOToxOSBHTVQ=
78
+ Content-Type:
79
+ - application/json
80
+ Date:
81
+ - Wed, 12 Feb 2014 17:05:49 GMT
82
+ Content-Length:
83
+ - '74'
84
+ Connection:
85
+ - close
88
86
  body:
89
- encoding: US-ASCII
90
- string: ! '{"Id":"e861b7367861"}'
87
+ encoding: UTF-8
88
+ string: |
89
+ {"Id":"291b17ca54f04278c166b1313f9ec211fa27596a6f5a20855fcd8739b8f26116"}
91
90
  http_version:
92
- recorded_at: Fri, 25 Oct 2013 16:29:19 GMT
93
- recorded_with: VCR 2.6.0
91
+ recorded_at: Wed, 12 Feb 2014 17:05:49 GMT
92
+ recorded_with: VCR 2.8.0
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: unix:///var/run/docker.sock/v1.6/containers/create
5
+ uri: unix:///var/run/docker.sock/v1.8/containers/create
6
6
  body:
7
7
  encoding: UTF-8
8
- string: ! '{"Cmd":["true"],"Image":"base"}'
8
+ string: "{\"Cmd\":[\"true\"],\"Image\":\"base\"}"
9
9
  headers:
10
10
  User-Agent:
11
- - Swipely/Docker-API 1.6.0
11
+ - Swipely/Docker-API 1.7.6
12
12
  Content-Type:
13
13
  - application/json
14
14
  response:
@@ -16,29 +16,29 @@ http_interactions:
16
16
  code: 201
17
17
  message:
18
18
  headers:
19
- !binary "Q29udGVudC1UeXBl":
20
- - !binary |-
21
- YXBwbGljYXRpb24vanNvbg==
22
- !binary "Q29udGVudC1MZW5ndGg=":
23
- - !binary |-
24
- MjE=
25
- !binary "RGF0ZQ==":
26
- - !binary |-
27
- VGh1LCAzMSBPY3QgMjAxMyAxODoxNzo0NSBHTVQ=
19
+ Content-Type:
20
+ - application/json
21
+ Date:
22
+ - Wed, 12 Feb 2014 17:05:53 GMT
23
+ Content-Length:
24
+ - '90'
25
+ Connection:
26
+ - close
28
27
  body:
29
- encoding: US-ASCII
30
- string: ! '{"Id":"3a4594dc364d"}'
28
+ encoding: UTF-8
29
+ string: |
30
+ {"Id":"6f0873d9e37bc1d0878f2d397c0eba3e869969a3e4ff4ea92a7f64951cd84762","Warnings":null}
31
31
  http_version:
32
- recorded_at: Thu, 31 Oct 2013 18:17:45 GMT
32
+ recorded_at: Wed, 12 Feb 2014 17:05:53 GMT
33
33
  - request:
34
34
  method: post
35
- uri: unix:///var/run/docker.sock/v1.6/containers/3a4594dc364d/start
35
+ uri: unix:///var/run/docker.sock/v1.8/containers/6f0873d9e37bc1d0878f2d397c0eba3e869969a3e4ff4ea92a7f64951cd84762/start
36
36
  body:
37
37
  encoding: UTF-8
38
- string: ! '{}'
38
+ string: "{}"
39
39
  headers:
40
40
  User-Agent:
41
- - Swipely/Docker-API 1.6.0
41
+ - Swipely/Docker-API 1.7.6
42
42
  Content-Type:
43
43
  - application/json
44
44
  response:
@@ -46,29 +46,28 @@ http_interactions:
46
46
  code: 204
47
47
  message:
48
48
  headers:
49
- !binary "Q29udGVudC1UeXBl":
50
- - !binary |-
51
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
52
- !binary "Q29udGVudC1MZW5ndGg=":
53
- - !binary |-
54
- MA==
55
- !binary "RGF0ZQ==":
56
- - !binary |-
57
- VGh1LCAzMSBPY3QgMjAxMyAxODoxNzo0NSBHTVQ=
49
+ Date:
50
+ - Wed, 12 Feb 2014 17:05:53 GMT
51
+ Content-Length:
52
+ - '0'
53
+ Content-Type:
54
+ - text/plain; charset=utf-8
55
+ Connection:
56
+ - close
58
57
  body:
59
- encoding: US-ASCII
58
+ encoding: UTF-8
60
59
  string: ''
61
60
  http_version:
62
- recorded_at: Thu, 31 Oct 2013 18:17:45 GMT
61
+ recorded_at: Wed, 12 Feb 2014 17:05:53 GMT
63
62
  - request:
64
63
  method: post
65
- uri: unix:///var/run/docker.sock/v1.6/commit?container=3a4594dc
64
+ uri: unix:///var/run/docker.sock/v1.8/commit?container=6f0873d9
66
65
  body:
67
66
  encoding: UTF-8
68
- string: ! '{"Cmd":["pwd"]}'
67
+ string: 'null'
69
68
  headers:
70
69
  User-Agent:
71
- - Swipely/Docker-API 1.6.0
70
+ - Swipely/Docker-API 1.7.6
72
71
  Content-Type:
73
72
  - application/json
74
73
  response:
@@ -76,29 +75,29 @@ http_interactions:
76
75
  code: 201
77
76
  message:
78
77
  headers:
79
- !binary "Q29udGVudC1UeXBl":
80
- - !binary |-
81
- YXBwbGljYXRpb24vanNvbg==
82
- !binary "Q29udGVudC1MZW5ndGg=":
83
- - !binary |-
84
- MjE=
85
- !binary "RGF0ZQ==":
86
- - !binary |-
87
- VGh1LCAzMSBPY3QgMjAxMyAxODoxNzo0NSBHTVQ=
78
+ Content-Type:
79
+ - application/json
80
+ Date:
81
+ - Wed, 12 Feb 2014 17:05:54 GMT
82
+ Content-Length:
83
+ - '74'
84
+ Connection:
85
+ - close
88
86
  body:
89
- encoding: US-ASCII
90
- string: ! '{"Id":"a4e6a7df0371"}'
87
+ encoding: UTF-8
88
+ string: |
89
+ {"Id":"dae27da5a73f01eede1699649c42c727651b4311d2ff689810bf22c75c2d2a08"}
91
90
  http_version:
92
- recorded_at: Thu, 31 Oct 2013 18:17:45 GMT
91
+ recorded_at: Wed, 12 Feb 2014 17:05:54 GMT
93
92
  - request:
94
93
  method: post
95
- uri: unix:///var/run/docker.sock/v1.6/containers/create
94
+ uri: unix:///var/run/docker.sock/v1.8/containers/create
96
95
  body:
97
96
  encoding: UTF-8
98
- string: ! '{"Image":"a4e6a7df0371"}'
97
+ string: "{\"Image\":\"dae27da5a73f01eede1699649c42c727651b4311d2ff689810bf22c75c2d2a08\",\"Cmd\":[\"pwd\"]}"
99
98
  headers:
100
99
  User-Agent:
101
- - Swipely/Docker-API 1.6.0
100
+ - Swipely/Docker-API 1.7.6
102
101
  Content-Type:
103
102
  - application/json
104
103
  response:
@@ -106,29 +105,29 @@ http_interactions:
106
105
  code: 201
107
106
  message:
108
107
  headers:
109
- !binary "Q29udGVudC1UeXBl":
110
- - !binary |-
111
- YXBwbGljYXRpb24vanNvbg==
112
- !binary "Q29udGVudC1MZW5ndGg=":
113
- - !binary |-
114
- MjE=
115
- !binary "RGF0ZQ==":
116
- - !binary |-
117
- VGh1LCAzMSBPY3QgMjAxMyAxODoxNzo0NSBHTVQ=
108
+ Content-Type:
109
+ - application/json
110
+ Date:
111
+ - Wed, 12 Feb 2014 17:05:54 GMT
112
+ Content-Length:
113
+ - '90'
114
+ Connection:
115
+ - close
118
116
  body:
119
- encoding: US-ASCII
120
- string: ! '{"Id":"fd57f68e7370"}'
117
+ encoding: UTF-8
118
+ string: |
119
+ {"Id":"ccc53890fd4d75f71d0d762ea8f293263abb046cccecf7f2c2fb6c1736c112ab","Warnings":null}
121
120
  http_version:
122
- recorded_at: Thu, 31 Oct 2013 18:17:45 GMT
121
+ recorded_at: Wed, 12 Feb 2014 17:05:54 GMT
123
122
  - request:
124
123
  method: post
125
- uri: unix:///var/run/docker.sock/v1.6/containers/fd57f68e7370/start
124
+ uri: unix:///var/run/docker.sock/v1.8/containers/ccc53890fd4d75f71d0d762ea8f293263abb046cccecf7f2c2fb6c1736c112ab/start
126
125
  body:
127
126
  encoding: UTF-8
128
- string: ! '{}'
127
+ string: "{}"
129
128
  headers:
130
129
  User-Agent:
131
- - Swipely/Docker-API 1.6.0
130
+ - Swipely/Docker-API 1.7.6
132
131
  Content-Type:
133
132
  - application/json
134
133
  response:
@@ -136,29 +135,28 @@ http_interactions:
136
135
  code: 204
137
136
  message:
138
137
  headers:
139
- !binary "Q29udGVudC1UeXBl":
140
- - !binary |-
141
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
142
- !binary "Q29udGVudC1MZW5ndGg=":
143
- - !binary |-
144
- MA==
145
- !binary "RGF0ZQ==":
146
- - !binary |-
147
- VGh1LCAzMSBPY3QgMjAxMyAxODoxNzo0NSBHTVQ=
138
+ Date:
139
+ - Wed, 12 Feb 2014 17:05:54 GMT
140
+ Content-Length:
141
+ - '0'
142
+ Content-Type:
143
+ - text/plain; charset=utf-8
144
+ Connection:
145
+ - close
148
146
  body:
149
- encoding: US-ASCII
147
+ encoding: UTF-8
150
148
  string: ''
151
149
  http_version:
152
- recorded_at: Thu, 31 Oct 2013 18:17:45 GMT
150
+ recorded_at: Wed, 12 Feb 2014 17:05:54 GMT
153
151
  - request:
154
152
  method: post
155
- uri: unix:///var/run/docker.sock/v1.6/containers/fd57f68e7370/attach?stderr=true&stdout=true&stream=true
153
+ uri: unix:///var/run/docker.sock/v1.8/containers/ccc53890fd4d75f71d0d762ea8f293263abb046cccecf7f2c2fb6c1736c112ab/attach?stderr=true&stdout=true&stream=true
156
154
  body:
157
155
  encoding: US-ASCII
158
156
  string: ''
159
157
  headers:
160
158
  User-Agent:
161
- - Swipely/Docker-API 1.6.0
159
+ - Swipely/Docker-API 1.7.6
162
160
  Content-Type:
163
161
  - text/plain
164
162
  response:
@@ -166,13 +164,12 @@ http_interactions:
166
164
  code: 200
167
165
  message:
168
166
  headers:
169
- !binary "Q29udGVudC1UeXBl":
170
- - !binary |-
171
- YXBwbGljYXRpb24vdm5kLmRvY2tlci5yYXctc3RyZWFt
167
+ Content-Type:
168
+ - application/vnd.docker.raw-stream
172
169
  body:
173
- encoding: US-ASCII
170
+ encoding: UTF-8
174
171
  string: !binary |-
175
172
  AQAAAAAAAAIvCg==
176
173
  http_version:
177
- recorded_at: Thu, 31 Oct 2013 18:17:45 GMT
178
- recorded_with: VCR 2.7.0
174
+ recorded_at: Wed, 12 Feb 2014 17:05:54 GMT
175
+ recorded_with: VCR 2.8.0
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: unix:///var/run/docker.sock/v1.6/images/create?fromImage=base
5
+ uri: unix:///var/run/docker.sock/v1.8/images/create?fromImage=base
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - Swipely/Docker-API 1.6.0
11
+ - Swipely/Docker-API 1.7.6
12
12
  Content-Type:
13
13
  - text/plain
14
14
  response:
@@ -16,32 +16,34 @@ http_interactions:
16
16
  code: 200
17
17
  message:
18
18
  headers:
19
- !binary "Q29udGVudC1UeXBl":
20
- - !binary |-
21
- YXBwbGljYXRpb24vanNvbg==
22
- !binary "RGF0ZQ==":
23
- - !binary |-
24
- TW9uLCAyOCBPY3QgMjAxMyAxNTo1MTo0MSBHTVQ=
25
- !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
26
- - !binary |-
27
- Y2h1bmtlZA==
19
+ Content-Type:
20
+ - application/json
21
+ Date:
22
+ - Wed, 12 Feb 2014 17:30:20 GMT
23
+ Connection:
24
+ - close
25
+ Transfer-Encoding:
26
+ - ''
28
27
  body:
29
- encoding: US-ASCII
30
- string: ! '{"status":"Pulling repository base"}{"status":"Pulling","progress":"image
31
- (ubuntu-quantl) from base","id":"b750fe79269d"}{"status":"Pulling","progress":"image
32
- (ubuntu-quantl) from base, endpoint: https://cdn-registry-1.docker.io/v1/","id":"b750fe79269d"}{"status":"Pulling","progress":"dependend
33
- layers","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"27cf78414709"}{"status":"Download","progress":"complete","id":"b750fe79269d"}'
28
+ encoding: UTF-8
29
+ string: "{\"status\":\"Pulling repository base\"}{\"status\":\"Pulling image
30
+ (ubuntu-quantl) from base\",\"progressDetail\":{},\"id\":\"b750fe79269d\"}{\"status\":\"Pulling
31
+ image (ubuntu-quantl) from base, endpoint: https://cdn-registry-1.docker.io/v1/\",\"progressDetail\":{},\"id\":\"b750fe79269d\"}{\"status\":\"Pulling
32
+ dependent layers\",\"progressDetail\":{},\"id\":\"b750fe79269d\"}{\"status\":\"Download
33
+ complete\",\"progressDetail\":{},\"id\":\"27cf78414709\"}{\"status\":\"Download
34
+ complete\",\"progressDetail\":{},\"id\":\"b750fe79269d\"}{\"status\":\"Download
35
+ complete\",\"progressDetail\":{},\"id\":\"b750fe79269d\"}"
34
36
  http_version:
35
- recorded_at: Mon, 28 Oct 2013 15:51:42 GMT
37
+ recorded_at: Wed, 12 Feb 2014 17:30:22 GMT
36
38
  - request:
37
39
  method: post
38
- uri: unix:///var/run/docker.sock/v1.6/containers/create
40
+ uri: unix:///var/run/docker.sock/v1.8/containers/create
39
41
  body:
40
42
  encoding: UTF-8
41
- string: ! '{"Image":"base","Cmd":["touch","/test"]}'
43
+ string: "{\"Image\":\"base\",\"Cmd\":[\"touch\",\"/test\"]}"
42
44
  headers:
43
45
  User-Agent:
44
- - Swipely/Docker-API 1.6.0
46
+ - Swipely/Docker-API 1.7.6
45
47
  Content-Type:
46
48
  - application/json
47
49
  response:
@@ -49,29 +51,29 @@ http_interactions:
49
51
  code: 201
50
52
  message:
51
53
  headers:
52
- !binary "Q29udGVudC1UeXBl":
53
- - !binary |-
54
- YXBwbGljYXRpb24vanNvbg==
55
- !binary "Q29udGVudC1MZW5ndGg=":
56
- - !binary |-
57
- MjE=
58
- !binary "RGF0ZQ==":
59
- - !binary |-
60
- TW9uLCAyOCBPY3QgMjAxMyAxNTo1MTo0MiBHTVQ=
54
+ Content-Type:
55
+ - application/json
56
+ Date:
57
+ - Wed, 12 Feb 2014 17:30:22 GMT
58
+ Content-Length:
59
+ - '90'
60
+ Connection:
61
+ - close
61
62
  body:
62
- encoding: US-ASCII
63
- string: ! '{"Id":"5307f1658bbf"}'
63
+ encoding: UTF-8
64
+ string: |
65
+ {"Id":"8f5b1b957a642b05f570645b900a6375d62085e97a5e7216f3a2b53cb3033cb0","Warnings":null}
64
66
  http_version:
65
- recorded_at: Mon, 28 Oct 2013 15:51:42 GMT
67
+ recorded_at: Wed, 12 Feb 2014 17:30:22 GMT
66
68
  - request:
67
69
  method: post
68
- uri: unix:///var/run/docker.sock/v1.6/containers/5307f1658bbf/start
70
+ uri: unix:///var/run/docker.sock/v1.8/containers/8f5b1b957a642b05f570645b900a6375d62085e97a5e7216f3a2b53cb3033cb0/start
69
71
  body:
70
72
  encoding: UTF-8
71
- string: ! '{}'
73
+ string: "{}"
72
74
  headers:
73
75
  User-Agent:
74
- - Swipely/Docker-API 1.6.0
76
+ - Swipely/Docker-API 1.7.6
75
77
  Content-Type:
76
78
  - application/json
77
79
  response:
@@ -79,29 +81,28 @@ http_interactions:
79
81
  code: 204
80
82
  message:
81
83
  headers:
82
- !binary "Q29udGVudC1UeXBl":
83
- - !binary |-
84
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
85
- !binary "Q29udGVudC1MZW5ndGg=":
86
- - !binary |-
87
- MA==
88
- !binary "RGF0ZQ==":
89
- - !binary |-
90
- TW9uLCAyOCBPY3QgMjAxMyAxNTo1MTo0MiBHTVQ=
84
+ Date:
85
+ - Wed, 12 Feb 2014 17:30:22 GMT
86
+ Content-Length:
87
+ - '0'
88
+ Content-Type:
89
+ - text/plain; charset=utf-8
90
+ Connection:
91
+ - close
91
92
  body:
92
- encoding: US-ASCII
93
+ encoding: UTF-8
93
94
  string: ''
94
95
  http_version:
95
- recorded_at: Mon, 28 Oct 2013 15:51:42 GMT
96
+ recorded_at: Wed, 12 Feb 2014 17:30:22 GMT
96
97
  - request:
97
98
  method: post
98
- uri: unix:///var/run/docker.sock/v1.6/containers/5307f1658bbf/wait
99
+ uri: unix:///var/run/docker.sock/v1.8/containers/8f5b1b957a642b05f570645b900a6375d62085e97a5e7216f3a2b53cb3033cb0/wait
99
100
  body:
100
101
  encoding: US-ASCII
101
102
  string: ''
102
103
  headers:
103
104
  User-Agent:
104
- - Swipely/Docker-API 1.6.0
105
+ - Swipely/Docker-API 1.7.6
105
106
  Content-Type:
106
107
  - text/plain
107
108
  response:
@@ -109,51 +110,47 @@ http_interactions:
109
110
  code: 200
110
111
  message:
111
112
  headers:
112
- !binary "Q29udGVudC1UeXBl":
113
- - !binary |-
114
- YXBwbGljYXRpb24vanNvbg==
115
- !binary "Q29udGVudC1MZW5ndGg=":
116
- - !binary |-
117
- MTY=
118
- !binary "RGF0ZQ==":
119
- - !binary |-
120
- TW9uLCAyOCBPY3QgMjAxMyAxNTo1MTo0MiBHTVQ=
113
+ Content-Type:
114
+ - application/json
115
+ Date:
116
+ - Wed, 12 Feb 2014 17:30:22 GMT
117
+ Content-Length:
118
+ - '17'
119
+ Connection:
120
+ - close
121
121
  body:
122
- encoding: US-ASCII
123
- string: ! '{"StatusCode":0}'
122
+ encoding: UTF-8
123
+ string: |
124
+ {"StatusCode":0}
124
125
  http_version:
125
- recorded_at: Mon, 28 Oct 2013 15:51:42 GMT
126
+ recorded_at: Wed, 12 Feb 2014 17:30:22 GMT
126
127
  - request:
127
128
  method: post
128
- uri: unix:///var/run/docker.sock/v1.6/containers/5307f1658bbf/copy
129
+ uri: unix:///var/run/docker.sock/v1.8/containers/8f5b1b957a642b05f570645b900a6375d62085e97a5e7216f3a2b53cb3033cb0/copy
129
130
  body:
130
131
  encoding: UTF-8
131
- string: ! '{"Resource":"/lol/not/a/real/file"}'
132
+ string: "{\"Resource\":\"/lol/not/a/real/file\"}"
132
133
  headers:
133
134
  User-Agent:
134
- - Swipely/Docker-API 1.6.0
135
+ - Swipely/Docker-API 1.7.6
135
136
  Content-Type:
136
137
  - application/json
137
138
  response:
138
139
  status:
139
- code: 500
140
+ code: 200
140
141
  message:
141
142
  headers:
142
- !binary "Q29udGVudC1UeXBl":
143
- - !binary |-
144
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
145
- !binary "Q29udGVudC1MZW5ndGg=":
146
- - !binary |-
147
- MTUx
148
- !binary "RGF0ZQ==":
149
- - !binary |-
150
- TW9uLCAyOCBPY3QgMjAxMyAxNTo1MTo0MiBHTVQ=
143
+ Date:
144
+ - Wed, 12 Feb 2014 17:30:22 GMT
145
+ Content-Length:
146
+ - '0'
147
+ Content-Type:
148
+ - text/plain; charset=utf-8
149
+ Connection:
150
+ - close
151
151
  body:
152
- encoding: US-ASCII
153
- string: ! 'stat /var/lib/docker/containers/5307f1658bbf9bba5e1390d9ba13c342f0098099f0dfd886a4f9c53f00d6d038/rootfs/lol/not/a/real/file:
154
- no such file or directory
155
-
156
- '
152
+ encoding: UTF-8
153
+ string: ''
157
154
  http_version:
158
- recorded_at: Mon, 28 Oct 2013 15:51:42 GMT
159
- recorded_with: VCR 2.6.0
155
+ recorded_at: Wed, 12 Feb 2014 17:30:22 GMT
156
+ recorded_with: VCR 2.8.0