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