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":["sleep","50"],"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
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMiBHTVQ=
|
28
28
|
body:
|
29
29
|
encoding: US-ASCII
|
30
|
-
string: ! '{"Id":"
|
30
|
+
string: ! '{"Id":"201eef28830f"}'
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
32
|
+
recorded_at: Fri, 25 Oct 2013 16:29:02 GMT
|
33
33
|
- request:
|
34
34
|
method: post
|
35
|
-
uri:
|
35
|
+
uri: unix:///var/run/docker.sock/v1.6/containers/201eef28830f/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,58 +54,58 @@ http_interactions:
|
|
54
54
|
MA==
|
55
55
|
!binary "RGF0ZQ==":
|
56
56
|
- !binary |-
|
57
|
-
|
57
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMiBHTVQ=
|
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:02 GMT
|
63
63
|
- request:
|
64
64
|
method: get
|
65
|
-
uri:
|
65
|
+
uri: unix:///var/run/docker.sock/v1.6/containers/json
|
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: 200
|
77
|
-
message:
|
77
|
+
message:
|
78
78
|
headers:
|
79
79
|
!binary "Q29udGVudC1UeXBl":
|
80
80
|
- !binary |-
|
81
81
|
YXBwbGljYXRpb24vanNvbg==
|
82
82
|
!binary "Q29udGVudC1MZW5ndGg=":
|
83
83
|
- !binary |-
|
84
|
-
|
84
|
+
MjEx
|
85
85
|
!binary "RGF0ZQ==":
|
86
86
|
- !binary |-
|
87
|
-
|
87
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMiBHTVQ=
|
88
88
|
body:
|
89
89
|
encoding: US-ASCII
|
90
|
-
string: ! '[{"Id":"
|
91
|
-
50","Created":
|
90
|
+
string: ! '[{"Id":"201eef28830f2a6bbf885c526f44e611dd5d8ef4ea843f167f38653b880e28e5","Image":"base:latest","Command":"sleep
|
91
|
+
50","Created":1382718542,"Status":"Up Less than a second","Ports":null,"SizeRw":0,"SizeRootFs":0}]'
|
92
92
|
http_version:
|
93
|
-
recorded_at:
|
93
|
+
recorded_at: Fri, 25 Oct 2013 16:29:02 GMT
|
94
94
|
- request:
|
95
95
|
method: post
|
96
|
-
uri:
|
96
|
+
uri: unix:///var/run/docker.sock/v1.6/containers/201eef28830f/stop
|
97
97
|
body:
|
98
98
|
encoding: UTF-8
|
99
99
|
string: ! '{}'
|
100
100
|
headers:
|
101
101
|
User-Agent:
|
102
|
-
- Swipely/Docker-API 1.
|
102
|
+
- Swipely/Docker-API 1.6.0
|
103
103
|
Content-Type:
|
104
104
|
- application/json
|
105
105
|
response:
|
106
106
|
status:
|
107
107
|
code: 204
|
108
|
-
message:
|
108
|
+
message:
|
109
109
|
headers:
|
110
110
|
!binary "Q29udGVudC1UeXBl":
|
111
111
|
- !binary |-
|
@@ -115,27 +115,27 @@ http_interactions:
|
|
115
115
|
MA==
|
116
116
|
!binary "RGF0ZQ==":
|
117
117
|
- !binary |-
|
118
|
-
|
118
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOToxMiBHTVQ=
|
119
119
|
body:
|
120
120
|
encoding: US-ASCII
|
121
121
|
string: ''
|
122
122
|
http_version:
|
123
|
-
recorded_at:
|
123
|
+
recorded_at: Fri, 25 Oct 2013 16:29:12 GMT
|
124
124
|
- request:
|
125
125
|
method: get
|
126
|
-
uri:
|
126
|
+
uri: unix:///var/run/docker.sock/v1.6/containers/json
|
127
127
|
body:
|
128
128
|
encoding: US-ASCII
|
129
129
|
string: ''
|
130
130
|
headers:
|
131
131
|
User-Agent:
|
132
|
-
- Swipely/Docker-API 1.
|
132
|
+
- Swipely/Docker-API 1.6.0
|
133
133
|
Content-Type:
|
134
134
|
- text/plain
|
135
135
|
response:
|
136
136
|
status:
|
137
137
|
code: 200
|
138
|
-
message:
|
138
|
+
message:
|
139
139
|
headers:
|
140
140
|
!binary "Q29udGVudC1UeXBl":
|
141
141
|
- !binary |-
|
@@ -145,27 +145,27 @@ http_interactions:
|
|
145
145
|
Mg==
|
146
146
|
!binary "RGF0ZQ==":
|
147
147
|
- !binary |-
|
148
|
-
|
148
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOToxMiBHTVQ=
|
149
149
|
body:
|
150
150
|
encoding: US-ASCII
|
151
151
|
string: ! '[]'
|
152
152
|
http_version:
|
153
|
-
recorded_at:
|
153
|
+
recorded_at: Fri, 25 Oct 2013 16:29:12 GMT
|
154
154
|
- request:
|
155
155
|
method: post
|
156
|
-
uri:
|
156
|
+
uri: unix:///var/run/docker.sock/v1.6/containers/201eef28830f/restart
|
157
157
|
body:
|
158
158
|
encoding: UTF-8
|
159
159
|
string: ! '{}'
|
160
160
|
headers:
|
161
161
|
User-Agent:
|
162
|
-
- Swipely/Docker-API 1.
|
162
|
+
- Swipely/Docker-API 1.6.0
|
163
163
|
Content-Type:
|
164
164
|
- application/json
|
165
165
|
response:
|
166
166
|
status:
|
167
167
|
code: 204
|
168
|
-
message:
|
168
|
+
message:
|
169
169
|
headers:
|
170
170
|
!binary "Q29udGVudC1UeXBl":
|
171
171
|
- !binary |-
|
@@ -175,41 +175,41 @@ http_interactions:
|
|
175
175
|
MA==
|
176
176
|
!binary "RGF0ZQ==":
|
177
177
|
- !binary |-
|
178
|
-
|
178
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOToxMiBHTVQ=
|
179
179
|
body:
|
180
180
|
encoding: US-ASCII
|
181
181
|
string: ''
|
182
182
|
http_version:
|
183
|
-
recorded_at:
|
183
|
+
recorded_at: Fri, 25 Oct 2013 16:29:12 GMT
|
184
184
|
- request:
|
185
185
|
method: get
|
186
|
-
uri:
|
186
|
+
uri: unix:///var/run/docker.sock/v1.6/containers/json
|
187
187
|
body:
|
188
188
|
encoding: US-ASCII
|
189
189
|
string: ''
|
190
190
|
headers:
|
191
191
|
User-Agent:
|
192
|
-
- Swipely/Docker-API 1.
|
192
|
+
- Swipely/Docker-API 1.6.0
|
193
193
|
Content-Type:
|
194
194
|
- text/plain
|
195
195
|
response:
|
196
196
|
status:
|
197
197
|
code: 200
|
198
|
-
message:
|
198
|
+
message:
|
199
199
|
headers:
|
200
200
|
!binary "Q29udGVudC1UeXBl":
|
201
201
|
- !binary |-
|
202
202
|
YXBwbGljYXRpb24vanNvbg==
|
203
203
|
!binary "Q29udGVudC1MZW5ndGg=":
|
204
204
|
- !binary |-
|
205
|
-
|
205
|
+
MjEx
|
206
206
|
!binary "RGF0ZQ==":
|
207
207
|
- !binary |-
|
208
|
-
|
208
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOToxMiBHTVQ=
|
209
209
|
body:
|
210
210
|
encoding: US-ASCII
|
211
|
-
string: ! '[{"Id":"
|
212
|
-
50","Created":
|
211
|
+
string: ! '[{"Id":"201eef28830f2a6bbf885c526f44e611dd5d8ef4ea843f167f38653b880e28e5","Image":"base:latest","Command":"sleep
|
212
|
+
50","Created":1382718542,"Status":"Up Less than a second","Ports":null,"SizeRw":0,"SizeRootFs":0}]'
|
213
213
|
http_version:
|
214
|
-
recorded_at:
|
214
|
+
recorded_at: Fri, 25 Oct 2013 16:29:12 GMT
|
215
215
|
recorded_with: VCR 2.6.0
|
@@ -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":["lol","not","a","real","command"],"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
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOToxOCBHTVQ=
|
28
28
|
body:
|
29
29
|
encoding: US-ASCII
|
30
|
-
string: ! '{"Id":"
|
30
|
+
string: ! '{"Id":"a5c13ba96ab3"}'
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
32
|
+
recorded_at: Fri, 25 Oct 2013 16:29:18 GMT
|
33
33
|
- request:
|
34
34
|
method: post
|
35
|
-
uri:
|
35
|
+
uri: unix:///var/run/docker.sock/v1.6/containers/a5c13ba96ab3/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
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOToxOCBHTVQ=
|
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:18 GMT
|
63
63
|
- request:
|
64
64
|
method: post
|
65
|
-
uri:
|
65
|
+
uri: unix:///var/run/docker.sock/v1.6/containers/a5c13ba96ab3/wait
|
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: 200
|
77
|
-
message:
|
77
|
+
message:
|
78
78
|
headers:
|
79
79
|
!binary "Q29udGVudC1UeXBl":
|
80
80
|
- !binary |-
|
@@ -84,10 +84,10 @@ http_interactions:
|
|
84
84
|
MTg=
|
85
85
|
!binary "RGF0ZQ==":
|
86
86
|
- !binary |-
|
87
|
-
|
87
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOToxOCBHTVQ=
|
88
88
|
body:
|
89
89
|
encoding: US-ASCII
|
90
90
|
string: ! '{"StatusCode":127}'
|
91
91
|
http_version:
|
92
|
-
recorded_at:
|
92
|
+
recorded_at: Fri, 25 Oct 2013 16:29:18 GMT
|
93
93
|
recorded_with: VCR 2.6.0
|
@@ -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":["pwd"],"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
|
+
RnJpLCAyNSBPY3QgMjAxMyAxODoxMzowOCBHTVQ=
|
28
28
|
body:
|
29
29
|
encoding: US-ASCII
|
30
|
-
string: ! '{"Id":"
|
30
|
+
string: ! '{"Id":"e1c2ccad8149"}'
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
32
|
+
recorded_at: Fri, 25 Oct 2013 18:13:08 GMT
|
33
33
|
- request:
|
34
34
|
method: post
|
35
|
-
uri:
|
35
|
+
uri: unix:///var/run/docker.sock/v1.6/containers/e1c2ccad8149/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
|
+
RnJpLCAyNSBPY3QgMjAxMyAxODoxMzowOCBHTVQ=
|
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 18:13:08 GMT
|
63
63
|
- request:
|
64
64
|
method: post
|
65
|
-
uri:
|
65
|
+
uri: unix:///var/run/docker.sock/v1.6/containers/e1c2ccad8149/wait
|
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: 200
|
77
|
-
message:
|
77
|
+
message:
|
78
78
|
headers:
|
79
79
|
!binary "Q29udGVudC1UeXBl":
|
80
80
|
- !binary |-
|
@@ -84,27 +84,27 @@ http_interactions:
|
|
84
84
|
MTY=
|
85
85
|
!binary "RGF0ZQ==":
|
86
86
|
- !binary |-
|
87
|
-
|
87
|
+
RnJpLCAyNSBPY3QgMjAxMyAxODoxMzowOCBHTVQ=
|
88
88
|
body:
|
89
89
|
encoding: US-ASCII
|
90
90
|
string: ! '{"StatusCode":0}'
|
91
91
|
http_version:
|
92
|
-
recorded_at:
|
92
|
+
recorded_at: Fri, 25 Oct 2013 18:13:08 GMT
|
93
93
|
- request:
|
94
94
|
method: post
|
95
|
-
uri:
|
95
|
+
uri: unix:///var/run/docker.sock/v1.6/commit?container=e1c2ccad
|
96
96
|
body:
|
97
97
|
encoding: US-ASCII
|
98
98
|
string: ''
|
99
99
|
headers:
|
100
100
|
User-Agent:
|
101
|
-
- Swipely/Docker-API 1.
|
101
|
+
- Swipely/Docker-API 1.6.0
|
102
102
|
Content-Type:
|
103
103
|
- text/plain
|
104
104
|
response:
|
105
105
|
status:
|
106
106
|
code: 201
|
107
|
-
message:
|
107
|
+
message:
|
108
108
|
headers:
|
109
109
|
!binary "Q29udGVudC1UeXBl":
|
110
110
|
- !binary |-
|
@@ -114,57 +114,57 @@ http_interactions:
|
|
114
114
|
MjE=
|
115
115
|
!binary "RGF0ZQ==":
|
116
116
|
- !binary |-
|
117
|
-
|
117
|
+
RnJpLCAyNSBPY3QgMjAxMyAxODoxMzowOCBHTVQ=
|
118
118
|
body:
|
119
119
|
encoding: US-ASCII
|
120
|
-
string: ! '{"Id":"
|
120
|
+
string: ! '{"Id":"4b92a6a2b057"}'
|
121
121
|
http_version:
|
122
|
-
recorded_at:
|
122
|
+
recorded_at: Fri, 25 Oct 2013 18:13:08 GMT
|
123
123
|
- request:
|
124
124
|
method: post
|
125
|
-
uri:
|
125
|
+
uri: unix:///var/run/docker.sock/v1.6/containers/create
|
126
126
|
body:
|
127
127
|
encoding: UTF-8
|
128
|
-
string: ! '{"Image":"
|
128
|
+
string: ! '{"Image":"4b92a6a2b057","Cmd":["ls"]}'
|
129
129
|
headers:
|
130
130
|
User-Agent:
|
131
|
-
- Swipely/Docker-API 1.
|
131
|
+
- Swipely/Docker-API 1.6.0
|
132
132
|
Content-Type:
|
133
133
|
- application/json
|
134
134
|
response:
|
135
135
|
status:
|
136
136
|
code: 201
|
137
|
-
message:
|
137
|
+
message:
|
138
138
|
headers:
|
139
139
|
!binary "Q29udGVudC1UeXBl":
|
140
140
|
- !binary |-
|
141
141
|
YXBwbGljYXRpb24vanNvbg==
|
142
142
|
!binary "Q29udGVudC1MZW5ndGg=":
|
143
143
|
- !binary |-
|
144
|
-
|
144
|
+
MjE=
|
145
145
|
!binary "RGF0ZQ==":
|
146
146
|
- !binary |-
|
147
|
-
|
147
|
+
RnJpLCAyNSBPY3QgMjAxMyAxODoxMzowOCBHTVQ=
|
148
148
|
body:
|
149
149
|
encoding: US-ASCII
|
150
|
-
string: ! '{"Id":"
|
150
|
+
string: ! '{"Id":"f57f08bf4190"}'
|
151
151
|
http_version:
|
152
|
-
recorded_at:
|
152
|
+
recorded_at: Fri, 25 Oct 2013 18:13:08 GMT
|
153
153
|
- request:
|
154
154
|
method: post
|
155
|
-
uri:
|
155
|
+
uri: unix:///var/run/docker.sock/v1.6/containers/f57f08bf4190/start
|
156
156
|
body:
|
157
157
|
encoding: UTF-8
|
158
158
|
string: ! '{}'
|
159
159
|
headers:
|
160
160
|
User-Agent:
|
161
|
-
- Swipely/Docker-API 1.
|
161
|
+
- Swipely/Docker-API 1.6.0
|
162
162
|
Content-Type:
|
163
163
|
- application/json
|
164
164
|
response:
|
165
165
|
status:
|
166
166
|
code: 204
|
167
|
-
message:
|
167
|
+
message:
|
168
168
|
headers:
|
169
169
|
!binary "Q29udGVudC1UeXBl":
|
170
170
|
- !binary |-
|
@@ -174,27 +174,27 @@ http_interactions:
|
|
174
174
|
MA==
|
175
175
|
!binary "RGF0ZQ==":
|
176
176
|
- !binary |-
|
177
|
-
|
177
|
+
RnJpLCAyNSBPY3QgMjAxMyAxODoxMzowOCBHTVQ=
|
178
178
|
body:
|
179
179
|
encoding: US-ASCII
|
180
180
|
string: ''
|
181
181
|
http_version:
|
182
|
-
recorded_at:
|
182
|
+
recorded_at: Fri, 25 Oct 2013 18:13:08 GMT
|
183
183
|
- request:
|
184
184
|
method: post
|
185
|
-
uri:
|
185
|
+
uri: unix:///var/run/docker.sock/v1.6/containers/f57f08bf4190/start
|
186
186
|
body:
|
187
187
|
encoding: UTF-8
|
188
188
|
string: ! '{}'
|
189
189
|
headers:
|
190
190
|
User-Agent:
|
191
|
-
- Swipely/Docker-API 1.
|
191
|
+
- Swipely/Docker-API 1.6.0
|
192
192
|
Content-Type:
|
193
193
|
- application/json
|
194
194
|
response:
|
195
195
|
status:
|
196
196
|
code: 500
|
197
|
-
message:
|
197
|
+
message:
|
198
198
|
headers:
|
199
199
|
!binary "Q29udGVudC1UeXBl":
|
200
200
|
- !binary |-
|
@@ -204,30 +204,30 @@ http_interactions:
|
|
204
204
|
MTM4
|
205
205
|
!binary "RGF0ZQ==":
|
206
206
|
- !binary |-
|
207
|
-
|
207
|
+
RnJpLCAyNSBPY3QgMjAxMyAxODoxMzowOCBHTVQ=
|
208
208
|
body:
|
209
209
|
encoding: US-ASCII
|
210
|
-
string: ! 'Error starting container
|
210
|
+
string: ! 'Error starting container f57f08bf4190: The container f57f08bf4190b90d39d23135b0816f7a87d6cdd5bb4238c890394a87d1d40488
|
211
211
|
is already running.
|
212
212
|
|
213
213
|
'
|
214
214
|
http_version:
|
215
|
-
recorded_at:
|
215
|
+
recorded_at: Fri, 25 Oct 2013 18:13:08 GMT
|
216
216
|
- request:
|
217
217
|
method: post
|
218
|
-
uri:
|
218
|
+
uri: unix:///var/run/docker.sock/v1.6/containers/f57f08bf4190/wait
|
219
219
|
body:
|
220
220
|
encoding: US-ASCII
|
221
221
|
string: ''
|
222
222
|
headers:
|
223
223
|
User-Agent:
|
224
|
-
- Swipely/Docker-API 1.
|
224
|
+
- Swipely/Docker-API 1.6.0
|
225
225
|
Content-Type:
|
226
226
|
- text/plain
|
227
227
|
response:
|
228
228
|
status:
|
229
229
|
code: 200
|
230
|
-
message:
|
230
|
+
message:
|
231
231
|
headers:
|
232
232
|
!binary "Q29udGVudC1UeXBl":
|
233
233
|
- !binary |-
|
@@ -237,10 +237,10 @@ http_interactions:
|
|
237
237
|
MTY=
|
238
238
|
!binary "RGF0ZQ==":
|
239
239
|
- !binary |-
|
240
|
-
|
240
|
+
RnJpLCAyNSBPY3QgMjAxMyAxODoxMzowOCBHTVQ=
|
241
241
|
body:
|
242
242
|
encoding: US-ASCII
|
243
243
|
string: ! '{"StatusCode":0}'
|
244
244
|
http_version:
|
245
|
-
recorded_at:
|
245
|
+
recorded_at: Fri, 25 Oct 2013 18:13:08 GMT
|
246
246
|
recorded_with: VCR 2.6.0
|