docker-api 1.3.1 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/lib/docker/container.rb +7 -0
- data/lib/docker/version.rb +2 -2
- data/spec/docker/container_spec.rb +21 -6
- data/spec/docker/image_spec.rb +1 -3
- data/spec/docker_spec.rb +2 -1
- data/spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml +12 -15
- data/spec/vcr/Docker/_validate_version/when_nothing_is_raised/validate_version_/.yml +12 -15
- data/spec/vcr/Docker/_version/returns_the_version_as_a_Hash.yml +12 -15
- data/spec/vcr/Docker_Container/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml +207 -3364
- data/spec/vcr/Docker_Container/_attach/yields_each_chunk.yml +31 -39
- data/spec/vcr/Docker_Container/_changes/returns_the_changes_as_an_array.yml +45 -57
- data/spec/vcr/Docker_Container/_commit/creates_a_new_Image_from_the_Container_s_changes.yml +34 -43
- data/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 +13 -16
- data/spec/vcr/Docker_Container/_export/yields_each_chunk.yml +52 -47
- data/spec/vcr/Docker_Container/_json/returns_the_description_as_a_Hash.yml +24 -30
- data/spec/vcr/Docker_Container/_kill/kills_the_container.yml +121 -1712
- data/spec/vcr/Docker_Container/_restart/restarts_the_container.yml +78 -99
- data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_does_not_return_status_code_of_0/raises_an_error.yml +34 -43
- 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 +90 -116
- data/spec/vcr/Docker_Container/_start/starts_the_container.yml +35 -44
- data/spec/vcr/Docker_Container/_stop/stops_the_container.yml +131 -1724
- data/spec/vcr/Docker_Container/_top/returns_the_top_commands_as_an_Array.yml +84 -0
- data/spec/vcr/Docker_Container/_wait/waits_for_the_command_to_finish.yml +34 -43
- data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/and_a_command_runs_for_too_long/raises_a_ServerError.yml +23 -29
- data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/sets_the_read_timeout_to_that_amount_of_time.yml +34 -43
- data/spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml +25 -32
- data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/builds_an_image.yml +43 -20
- data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml +41 -23
- data/spec/vcr/Docker_Image/_create/when_the_Image_does_not_yet_exist_and_the_body_is_a_Hash/sets_the_id.yml +12 -16
- data/spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml +23 -30
- data/spec/vcr/Docker_Image/_insert/inserts_the_url_s_file_into_a_new_Image.yml +113 -99
- data/spec/vcr/Docker_Image/_json/returns_additional_information_about_image_image.yml +23 -30
- data/spec/vcr/Docker_Image/_remove/removes_the_Image.yml +34 -44
- data/spec/vcr/Docker_Image/_run/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml +42 -54
- data/spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml +42 -54
- data/spec/vcr/Docker_Image/_search/materializes_each_Image_into_a_Docker_Image.yml +15 -17
- data/spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml +22 -29
- metadata +4 -6
- data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/builds_the_image.yml +0 -124
- data/spec/vcr/Docker_Image/_import/when_the_file_does_exist/creates_the_Image.yml +0 -35
@@ -2,37 +2,34 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://localhost:4243/v1.
|
5
|
+
uri: http://localhost:4243/v1.4/containers/create
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: '{"Cmd":["sleep","50"],"Image":"base"}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- text/plain
|
12
12
|
User-Agent:
|
13
|
-
- Docker-
|
13
|
+
- Swipely/Docker-API 1.3.1
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 201
|
17
17
|
message: ''
|
18
18
|
headers:
|
19
|
-
|
20
|
-
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
!binary "RGF0ZQ==":
|
26
|
-
- !binary |-
|
27
|
-
V2VkLCAyNiBKdW4gMjAxMyAxODowOTo1NCBHTVQ=
|
19
|
+
Content-Type:
|
20
|
+
- text/plain; charset=utf-8
|
21
|
+
Content-Length:
|
22
|
+
- '21'
|
23
|
+
Date:
|
24
|
+
- Wed, 07 Aug 2013 16:51:14 GMT
|
28
25
|
body:
|
29
|
-
encoding:
|
30
|
-
string:
|
26
|
+
encoding: UTF-8
|
27
|
+
string: '{"Id":"36a0e35a4922"}'
|
31
28
|
http_version:
|
32
|
-
recorded_at: Wed,
|
29
|
+
recorded_at: Wed, 07 Aug 2013 16:51:15 GMT
|
33
30
|
- request:
|
34
31
|
method: post
|
35
|
-
uri: http://localhost:4243/v1.
|
32
|
+
uri: http://localhost:4243/v1.4/containers/36a0e35a4922/start
|
36
33
|
body:
|
37
34
|
encoding: US-ASCII
|
38
35
|
string: ''
|
@@ -40,29 +37,26 @@ http_interactions:
|
|
40
37
|
Content-Type:
|
41
38
|
- text/plain
|
42
39
|
User-Agent:
|
43
|
-
- Docker-
|
40
|
+
- Swipely/Docker-API 1.3.1
|
44
41
|
response:
|
45
42
|
status:
|
46
43
|
code: 204
|
47
44
|
message: ''
|
48
45
|
headers:
|
49
|
-
|
50
|
-
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
!binary "RGF0ZQ==":
|
56
|
-
- !binary |-
|
57
|
-
V2VkLCAyNiBKdW4gMjAxMyAxODowOTo1NCBHTVQ=
|
46
|
+
Content-Type:
|
47
|
+
- text/plain; charset=utf-8
|
48
|
+
Content-Length:
|
49
|
+
- '0'
|
50
|
+
Date:
|
51
|
+
- Wed, 07 Aug 2013 16:51:15 GMT
|
58
52
|
body:
|
59
|
-
encoding:
|
53
|
+
encoding: UTF-8
|
60
54
|
string: ''
|
61
55
|
http_version:
|
62
|
-
recorded_at: Wed,
|
56
|
+
recorded_at: Wed, 07 Aug 2013 16:51:15 GMT
|
63
57
|
- request:
|
64
58
|
method: get
|
65
|
-
uri: http://localhost:4243/v1.
|
59
|
+
uri: http://localhost:4243/v1.4/containers/json
|
66
60
|
body:
|
67
61
|
encoding: US-ASCII
|
68
62
|
string: ''
|
@@ -70,30 +64,27 @@ http_interactions:
|
|
70
64
|
Content-Type:
|
71
65
|
- text/plain
|
72
66
|
User-Agent:
|
73
|
-
- Docker-
|
67
|
+
- Swipely/Docker-API 1.3.1
|
74
68
|
response:
|
75
69
|
status:
|
76
70
|
code: 200
|
77
71
|
message: ''
|
78
72
|
headers:
|
79
|
-
|
80
|
-
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
!binary "RGF0ZQ==":
|
86
|
-
- !binary |-
|
87
|
-
V2VkLCAyNiBKdW4gMjAxMyAxODowOTo1NSBHTVQ=
|
73
|
+
Content-Type:
|
74
|
+
- application/json
|
75
|
+
Content-Length:
|
76
|
+
- '210'
|
77
|
+
Date:
|
78
|
+
- Wed, 07 Aug 2013 16:51:15 GMT
|
88
79
|
body:
|
89
|
-
encoding:
|
90
|
-
string:
|
91
|
-
50","Created":
|
80
|
+
encoding: UTF-8
|
81
|
+
string: '[{"Id":"36a0e35a4922e2263b885dcbef77f549f1c9b6d997dd34033450feaf3fafb8cb","Image":"base2:latest","Command":"sleep
|
82
|
+
50","Created":1375894274,"Status":"Up Less than a second","Ports":"","SizeRw":0,"SizeRootFs":0}]'
|
92
83
|
http_version:
|
93
|
-
recorded_at: Wed,
|
84
|
+
recorded_at: Wed, 07 Aug 2013 16:51:15 GMT
|
94
85
|
- request:
|
95
86
|
method: post
|
96
|
-
uri: http://localhost:4243/v1.
|
87
|
+
uri: http://localhost:4243/v1.4/containers/36a0e35a4922/stop
|
97
88
|
body:
|
98
89
|
encoding: US-ASCII
|
99
90
|
string: ''
|
@@ -101,29 +92,26 @@ http_interactions:
|
|
101
92
|
Content-Type:
|
102
93
|
- text/plain
|
103
94
|
User-Agent:
|
104
|
-
- Docker-
|
95
|
+
- Swipely/Docker-API 1.3.1
|
105
96
|
response:
|
106
97
|
status:
|
107
98
|
code: 204
|
108
99
|
message: ''
|
109
100
|
headers:
|
110
|
-
|
111
|
-
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
!binary "RGF0ZQ==":
|
117
|
-
- !binary |-
|
118
|
-
V2VkLCAyNiBKdW4gMjAxMyAxODoxMDowNSBHTVQ=
|
101
|
+
Content-Type:
|
102
|
+
- text/plain; charset=utf-8
|
103
|
+
Content-Length:
|
104
|
+
- '0'
|
105
|
+
Date:
|
106
|
+
- Wed, 07 Aug 2013 16:51:25 GMT
|
119
107
|
body:
|
120
|
-
encoding:
|
108
|
+
encoding: UTF-8
|
121
109
|
string: ''
|
122
110
|
http_version:
|
123
|
-
recorded_at: Wed,
|
111
|
+
recorded_at: Wed, 07 Aug 2013 16:51:25 GMT
|
124
112
|
- request:
|
125
113
|
method: get
|
126
|
-
uri: http://localhost:4243/v1.
|
114
|
+
uri: http://localhost:4243/v1.4/containers/json
|
127
115
|
body:
|
128
116
|
encoding: US-ASCII
|
129
117
|
string: ''
|
@@ -131,29 +119,26 @@ http_interactions:
|
|
131
119
|
Content-Type:
|
132
120
|
- text/plain
|
133
121
|
User-Agent:
|
134
|
-
- Docker-
|
122
|
+
- Swipely/Docker-API 1.3.1
|
135
123
|
response:
|
136
124
|
status:
|
137
125
|
code: 200
|
138
126
|
message: ''
|
139
127
|
headers:
|
140
|
-
|
141
|
-
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
!binary "RGF0ZQ==":
|
147
|
-
- !binary |-
|
148
|
-
V2VkLCAyNiBKdW4gMjAxMyAxODoxMDowNSBHTVQ=
|
128
|
+
Content-Type:
|
129
|
+
- application/json
|
130
|
+
Content-Length:
|
131
|
+
- '2'
|
132
|
+
Date:
|
133
|
+
- Wed, 07 Aug 2013 16:51:25 GMT
|
149
134
|
body:
|
150
|
-
encoding:
|
151
|
-
string:
|
135
|
+
encoding: UTF-8
|
136
|
+
string: '[]'
|
152
137
|
http_version:
|
153
|
-
recorded_at: Wed,
|
138
|
+
recorded_at: Wed, 07 Aug 2013 16:51:25 GMT
|
154
139
|
- request:
|
155
140
|
method: post
|
156
|
-
uri: http://localhost:4243/v1.
|
141
|
+
uri: http://localhost:4243/v1.4/containers/36a0e35a4922/restart
|
157
142
|
body:
|
158
143
|
encoding: US-ASCII
|
159
144
|
string: ''
|
@@ -161,29 +146,26 @@ http_interactions:
|
|
161
146
|
Content-Type:
|
162
147
|
- text/plain
|
163
148
|
User-Agent:
|
164
|
-
- Docker-
|
149
|
+
- Swipely/Docker-API 1.3.1
|
165
150
|
response:
|
166
151
|
status:
|
167
152
|
code: 204
|
168
153
|
message: ''
|
169
154
|
headers:
|
170
|
-
|
171
|
-
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
!binary "RGF0ZQ==":
|
177
|
-
- !binary |-
|
178
|
-
V2VkLCAyNiBKdW4gMjAxMyAxODoxMDowNSBHTVQ=
|
155
|
+
Content-Type:
|
156
|
+
- text/plain; charset=utf-8
|
157
|
+
Content-Length:
|
158
|
+
- '0'
|
159
|
+
Date:
|
160
|
+
- Wed, 07 Aug 2013 16:51:25 GMT
|
179
161
|
body:
|
180
|
-
encoding:
|
162
|
+
encoding: UTF-8
|
181
163
|
string: ''
|
182
164
|
http_version:
|
183
|
-
recorded_at: Wed,
|
165
|
+
recorded_at: Wed, 07 Aug 2013 16:51:25 GMT
|
184
166
|
- request:
|
185
167
|
method: get
|
186
|
-
uri: http://localhost:4243/v1.
|
168
|
+
uri: http://localhost:4243/v1.4/containers/json
|
187
169
|
body:
|
188
170
|
encoding: US-ASCII
|
189
171
|
string: ''
|
@@ -191,25 +173,22 @@ http_interactions:
|
|
191
173
|
Content-Type:
|
192
174
|
- text/plain
|
193
175
|
User-Agent:
|
194
|
-
- Docker-
|
176
|
+
- Swipely/Docker-API 1.3.1
|
195
177
|
response:
|
196
178
|
status:
|
197
179
|
code: 200
|
198
180
|
message: ''
|
199
181
|
headers:
|
200
|
-
|
201
|
-
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
!binary "RGF0ZQ==":
|
207
|
-
- !binary |-
|
208
|
-
V2VkLCAyNiBKdW4gMjAxMyAxODoxMDowNiBHTVQ=
|
182
|
+
Content-Type:
|
183
|
+
- application/json
|
184
|
+
Content-Length:
|
185
|
+
- '210'
|
186
|
+
Date:
|
187
|
+
- Wed, 07 Aug 2013 16:51:25 GMT
|
209
188
|
body:
|
210
|
-
encoding:
|
211
|
-
string:
|
212
|
-
50","Created":
|
189
|
+
encoding: UTF-8
|
190
|
+
string: '[{"Id":"36a0e35a4922e2263b885dcbef77f549f1c9b6d997dd34033450feaf3fafb8cb","Image":"base2:latest","Command":"sleep
|
191
|
+
50","Created":1375894274,"Status":"Up Less than a second","Ports":"","SizeRw":0,"SizeRootFs":0}]'
|
213
192
|
http_version:
|
214
|
-
recorded_at: Wed,
|
215
|
-
recorded_with: VCR 2.
|
193
|
+
recorded_at: Wed, 07 Aug 2013 16:51:25 GMT
|
194
|
+
recorded_with: VCR 2.4.0
|
@@ -2,37 +2,34 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://localhost:4243/v1.
|
5
|
+
uri: http://localhost:4243/v1.4/containers/create
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: '{"Cmd":["lol","not","a","real","command"],"Image":"base"}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- text/plain
|
12
12
|
User-Agent:
|
13
|
-
- Docker-
|
13
|
+
- Swipely/Docker-API 1.3.1
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 201
|
17
17
|
message: ''
|
18
18
|
headers:
|
19
|
-
|
20
|
-
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
!binary "RGF0ZQ==":
|
26
|
-
- !binary |-
|
27
|
-
RnJpLCAyOCBKdW4gMjAxMyAxNjo1NToxNyBHTVQ=
|
19
|
+
Content-Type:
|
20
|
+
- text/plain; charset=utf-8
|
21
|
+
Content-Length:
|
22
|
+
- '21'
|
23
|
+
Date:
|
24
|
+
- Wed, 07 Aug 2013 16:51:30 GMT
|
28
25
|
body:
|
29
|
-
encoding:
|
30
|
-
string:
|
26
|
+
encoding: UTF-8
|
27
|
+
string: '{"Id":"5dbc28c27062"}'
|
31
28
|
http_version:
|
32
|
-
recorded_at:
|
29
|
+
recorded_at: Wed, 07 Aug 2013 16:51:30 GMT
|
33
30
|
- request:
|
34
31
|
method: post
|
35
|
-
uri: http://localhost:4243/v1.
|
32
|
+
uri: http://localhost:4243/v1.4/containers/5dbc28c27062/start
|
36
33
|
body:
|
37
34
|
encoding: US-ASCII
|
38
35
|
string: ''
|
@@ -40,29 +37,26 @@ http_interactions:
|
|
40
37
|
Content-Type:
|
41
38
|
- text/plain
|
42
39
|
User-Agent:
|
43
|
-
- Docker-
|
40
|
+
- Swipely/Docker-API 1.3.1
|
44
41
|
response:
|
45
42
|
status:
|
46
43
|
code: 204
|
47
44
|
message: ''
|
48
45
|
headers:
|
49
|
-
|
50
|
-
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
!binary "RGF0ZQ==":
|
56
|
-
- !binary |-
|
57
|
-
RnJpLCAyOCBKdW4gMjAxMyAxNjo1NToxNyBHTVQ=
|
46
|
+
Content-Type:
|
47
|
+
- text/plain; charset=utf-8
|
48
|
+
Content-Length:
|
49
|
+
- '0'
|
50
|
+
Date:
|
51
|
+
- Wed, 07 Aug 2013 16:51:30 GMT
|
58
52
|
body:
|
59
|
-
encoding:
|
53
|
+
encoding: UTF-8
|
60
54
|
string: ''
|
61
55
|
http_version:
|
62
|
-
recorded_at:
|
56
|
+
recorded_at: Wed, 07 Aug 2013 16:51:30 GMT
|
63
57
|
- request:
|
64
58
|
method: post
|
65
|
-
uri: http://localhost:4243/v1.
|
59
|
+
uri: http://localhost:4243/v1.4/containers/5dbc28c27062/wait
|
66
60
|
body:
|
67
61
|
encoding: US-ASCII
|
68
62
|
string: ''
|
@@ -70,24 +64,21 @@ http_interactions:
|
|
70
64
|
Content-Type:
|
71
65
|
- text/plain
|
72
66
|
User-Agent:
|
73
|
-
- Docker-
|
67
|
+
- Swipely/Docker-API 1.3.1
|
74
68
|
response:
|
75
69
|
status:
|
76
70
|
code: 200
|
77
71
|
message: ''
|
78
72
|
headers:
|
79
|
-
|
80
|
-
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
!binary "RGF0ZQ==":
|
86
|
-
- !binary |-
|
87
|
-
RnJpLCAyOCBKdW4gMjAxMyAxNjo1NToxNyBHTVQ=
|
73
|
+
Content-Type:
|
74
|
+
- application/json
|
75
|
+
Content-Length:
|
76
|
+
- '18'
|
77
|
+
Date:
|
78
|
+
- Wed, 07 Aug 2013 16:51:31 GMT
|
88
79
|
body:
|
89
|
-
encoding:
|
90
|
-
string:
|
80
|
+
encoding: UTF-8
|
81
|
+
string: '{"StatusCode":127}'
|
91
82
|
http_version:
|
92
|
-
recorded_at:
|
93
|
-
recorded_with: VCR 2.
|
83
|
+
recorded_at: Wed, 07 Aug 2013 16:51:31 GMT
|
84
|
+
recorded_with: VCR 2.4.0
|
@@ -2,37 +2,34 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://localhost:4243/v1.
|
5
|
+
uri: http://localhost:4243/v1.4/containers/create
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: '{"Cmd":["pwd"],"Image":"base"}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- text/plain
|
12
12
|
User-Agent:
|
13
|
-
- Docker-
|
13
|
+
- Swipely/Docker-API 1.3.1
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 201
|
17
17
|
message: ''
|
18
18
|
headers:
|
19
|
-
|
20
|
-
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
!binary "RGF0ZQ==":
|
26
|
-
- !binary |-
|
27
|
-
RnJpLCAyOCBKdW4gMjAxMyAxNjo1NToxNyBHTVQ=
|
19
|
+
Content-Type:
|
20
|
+
- text/plain; charset=utf-8
|
21
|
+
Content-Length:
|
22
|
+
- '21'
|
23
|
+
Date:
|
24
|
+
- Wed, 07 Aug 2013 16:51:31 GMT
|
28
25
|
body:
|
29
|
-
encoding:
|
30
|
-
string:
|
26
|
+
encoding: UTF-8
|
27
|
+
string: '{"Id":"865949f36b3f"}'
|
31
28
|
http_version:
|
32
|
-
recorded_at:
|
29
|
+
recorded_at: Wed, 07 Aug 2013 16:51:31 GMT
|
33
30
|
- request:
|
34
31
|
method: post
|
35
|
-
uri: http://localhost:4243/v1.
|
32
|
+
uri: http://localhost:4243/v1.4/containers/865949f36b3f/start
|
36
33
|
body:
|
37
34
|
encoding: US-ASCII
|
38
35
|
string: ''
|
@@ -40,29 +37,26 @@ http_interactions:
|
|
40
37
|
Content-Type:
|
41
38
|
- text/plain
|
42
39
|
User-Agent:
|
43
|
-
- Docker-
|
40
|
+
- Swipely/Docker-API 1.3.1
|
44
41
|
response:
|
45
42
|
status:
|
46
43
|
code: 204
|
47
44
|
message: ''
|
48
45
|
headers:
|
49
|
-
|
50
|
-
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
!binary "RGF0ZQ==":
|
56
|
-
- !binary |-
|
57
|
-
RnJpLCAyOCBKdW4gMjAxMyAxNjo1NToxNyBHTVQ=
|
46
|
+
Content-Type:
|
47
|
+
- text/plain; charset=utf-8
|
48
|
+
Content-Length:
|
49
|
+
- '0'
|
50
|
+
Date:
|
51
|
+
- Wed, 07 Aug 2013 16:51:31 GMT
|
58
52
|
body:
|
59
|
-
encoding:
|
53
|
+
encoding: UTF-8
|
60
54
|
string: ''
|
61
55
|
http_version:
|
62
|
-
recorded_at:
|
56
|
+
recorded_at: Wed, 07 Aug 2013 16:51:31 GMT
|
63
57
|
- request:
|
64
58
|
method: post
|
65
|
-
uri: http://localhost:4243/v1.
|
59
|
+
uri: http://localhost:4243/v1.4/containers/865949f36b3f/wait
|
66
60
|
body:
|
67
61
|
encoding: US-ASCII
|
68
62
|
string: ''
|
@@ -70,29 +64,26 @@ http_interactions:
|
|
70
64
|
Content-Type:
|
71
65
|
- text/plain
|
72
66
|
User-Agent:
|
73
|
-
- Docker-
|
67
|
+
- Swipely/Docker-API 1.3.1
|
74
68
|
response:
|
75
69
|
status:
|
76
70
|
code: 200
|
77
71
|
message: ''
|
78
72
|
headers:
|
79
|
-
|
80
|
-
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
!binary "RGF0ZQ==":
|
86
|
-
- !binary |-
|
87
|
-
RnJpLCAyOCBKdW4gMjAxMyAxNjo1NToxNyBHTVQ=
|
73
|
+
Content-Type:
|
74
|
+
- application/json
|
75
|
+
Content-Length:
|
76
|
+
- '16'
|
77
|
+
Date:
|
78
|
+
- Wed, 07 Aug 2013 16:51:31 GMT
|
88
79
|
body:
|
89
|
-
encoding:
|
90
|
-
string:
|
80
|
+
encoding: UTF-8
|
81
|
+
string: '{"StatusCode":0}'
|
91
82
|
http_version:
|
92
|
-
recorded_at:
|
83
|
+
recorded_at: Wed, 07 Aug 2013 16:51:31 GMT
|
93
84
|
- request:
|
94
85
|
method: post
|
95
|
-
uri: http://localhost:4243/v1.
|
86
|
+
uri: http://localhost:4243/v1.4/commit?container=865949f3
|
96
87
|
body:
|
97
88
|
encoding: US-ASCII
|
98
89
|
string: ''
|
@@ -100,59 +91,53 @@ http_interactions:
|
|
100
91
|
Content-Type:
|
101
92
|
- text/plain
|
102
93
|
User-Agent:
|
103
|
-
- Docker-
|
94
|
+
- Swipely/Docker-API 1.3.1
|
104
95
|
response:
|
105
96
|
status:
|
106
97
|
code: 201
|
107
98
|
message: ''
|
108
99
|
headers:
|
109
|
-
|
110
|
-
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
!binary "RGF0ZQ==":
|
116
|
-
- !binary |-
|
117
|
-
RnJpLCAyOCBKdW4gMjAxMyAxNjo1NToxNyBHTVQ=
|
100
|
+
Content-Type:
|
101
|
+
- text/plain; charset=utf-8
|
102
|
+
Content-Length:
|
103
|
+
- '21'
|
104
|
+
Date:
|
105
|
+
- Wed, 07 Aug 2013 16:51:31 GMT
|
118
106
|
body:
|
119
|
-
encoding:
|
120
|
-
string:
|
107
|
+
encoding: UTF-8
|
108
|
+
string: '{"Id":"fce068f57d19"}'
|
121
109
|
http_version:
|
122
|
-
recorded_at:
|
110
|
+
recorded_at: Wed, 07 Aug 2013 16:51:31 GMT
|
123
111
|
- request:
|
124
112
|
method: post
|
125
|
-
uri: http://localhost:4243/v1.
|
113
|
+
uri: http://localhost:4243/v1.4/containers/create
|
126
114
|
body:
|
127
115
|
encoding: UTF-8
|
128
|
-
string:
|
116
|
+
string: '{"Image":"fce068f57d19","Cmd":["ls"]}'
|
129
117
|
headers:
|
130
118
|
Content-Type:
|
131
119
|
- text/plain
|
132
120
|
User-Agent:
|
133
|
-
- Docker-
|
121
|
+
- Swipely/Docker-API 1.3.1
|
134
122
|
response:
|
135
123
|
status:
|
136
124
|
code: 201
|
137
125
|
message: ''
|
138
126
|
headers:
|
139
|
-
|
140
|
-
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
!binary "RGF0ZQ==":
|
146
|
-
- !binary |-
|
147
|
-
RnJpLCAyOCBKdW4gMjAxMyAxNjo1NToxNyBHTVQ=
|
127
|
+
Content-Type:
|
128
|
+
- text/plain; charset=utf-8
|
129
|
+
Content-Length:
|
130
|
+
- '21'
|
131
|
+
Date:
|
132
|
+
- Wed, 07 Aug 2013 16:51:31 GMT
|
148
133
|
body:
|
149
|
-
encoding:
|
150
|
-
string:
|
134
|
+
encoding: UTF-8
|
135
|
+
string: '{"Id":"4bd161705f24"}'
|
151
136
|
http_version:
|
152
|
-
recorded_at:
|
137
|
+
recorded_at: Wed, 07 Aug 2013 16:51:31 GMT
|
153
138
|
- request:
|
154
139
|
method: post
|
155
|
-
uri: http://localhost:4243/v1.
|
140
|
+
uri: http://localhost:4243/v1.4/containers/4bd161705f24/start
|
156
141
|
body:
|
157
142
|
encoding: US-ASCII
|
158
143
|
string: ''
|
@@ -160,29 +145,26 @@ http_interactions:
|
|
160
145
|
Content-Type:
|
161
146
|
- text/plain
|
162
147
|
User-Agent:
|
163
|
-
- Docker-
|
148
|
+
- Swipely/Docker-API 1.3.1
|
164
149
|
response:
|
165
150
|
status:
|
166
151
|
code: 204
|
167
152
|
message: ''
|
168
153
|
headers:
|
169
|
-
|
170
|
-
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
!binary "RGF0ZQ==":
|
176
|
-
- !binary |-
|
177
|
-
RnJpLCAyOCBKdW4gMjAxMyAxNjo1NToxNyBHTVQ=
|
154
|
+
Content-Type:
|
155
|
+
- text/plain; charset=utf-8
|
156
|
+
Content-Length:
|
157
|
+
- '0'
|
158
|
+
Date:
|
159
|
+
- Wed, 07 Aug 2013 16:51:31 GMT
|
178
160
|
body:
|
179
|
-
encoding:
|
161
|
+
encoding: UTF-8
|
180
162
|
string: ''
|
181
163
|
http_version:
|
182
|
-
recorded_at:
|
164
|
+
recorded_at: Wed, 07 Aug 2013 16:51:31 GMT
|
183
165
|
- request:
|
184
166
|
method: post
|
185
|
-
uri: http://localhost:4243/v1.
|
167
|
+
uri: http://localhost:4243/v1.4/containers/4bd161705f24/start
|
186
168
|
body:
|
187
169
|
encoding: US-ASCII
|
188
170
|
string: ''
|
@@ -190,32 +172,27 @@ http_interactions:
|
|
190
172
|
Content-Type:
|
191
173
|
- text/plain
|
192
174
|
User-Agent:
|
193
|
-
- Docker-
|
175
|
+
- Swipely/Docker-API 1.3.1
|
194
176
|
response:
|
195
177
|
status:
|
196
178
|
code: 500
|
197
179
|
message: ''
|
198
180
|
headers:
|
199
|
-
|
200
|
-
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
!binary "RGF0ZQ==":
|
206
|
-
- !binary |-
|
207
|
-
RnJpLCAyOCBKdW4gMjAxMyAxNjo1NToxNyBHTVQ=
|
181
|
+
Content-Type:
|
182
|
+
- text/plain; charset=utf-8
|
183
|
+
Content-Length:
|
184
|
+
- '138'
|
185
|
+
Date:
|
186
|
+
- Wed, 07 Aug 2013 16:51:31 GMT
|
208
187
|
body:
|
209
|
-
encoding:
|
210
|
-
string:
|
211
|
-
is already running.
|
212
|
-
|
213
|
-
'
|
188
|
+
encoding: UTF-8
|
189
|
+
string: |
|
190
|
+
Error starting container 4bd161705f24: The container 4bd161705f24a2dff9d416d8b7b1514f0001160876a0b0f1ef0e684511ac89de is already running.
|
214
191
|
http_version:
|
215
|
-
recorded_at:
|
192
|
+
recorded_at: Wed, 07 Aug 2013 16:51:31 GMT
|
216
193
|
- request:
|
217
194
|
method: post
|
218
|
-
uri: http://localhost:4243/v1.
|
195
|
+
uri: http://localhost:4243/v1.4/containers/4bd161705f24/wait
|
219
196
|
body:
|
220
197
|
encoding: US-ASCII
|
221
198
|
string: ''
|
@@ -223,24 +200,21 @@ http_interactions:
|
|
223
200
|
Content-Type:
|
224
201
|
- text/plain
|
225
202
|
User-Agent:
|
226
|
-
- Docker-
|
203
|
+
- Swipely/Docker-API 1.3.1
|
227
204
|
response:
|
228
205
|
status:
|
229
206
|
code: 200
|
230
207
|
message: ''
|
231
208
|
headers:
|
232
|
-
|
233
|
-
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
!binary "RGF0ZQ==":
|
239
|
-
- !binary |-
|
240
|
-
RnJpLCAyOCBKdW4gMjAxMyAxNjo1NToxOCBHTVQ=
|
209
|
+
Content-Type:
|
210
|
+
- application/json
|
211
|
+
Content-Length:
|
212
|
+
- '16'
|
213
|
+
Date:
|
214
|
+
- Wed, 07 Aug 2013 16:51:31 GMT
|
241
215
|
body:
|
242
|
-
encoding:
|
243
|
-
string:
|
216
|
+
encoding: UTF-8
|
217
|
+
string: '{"StatusCode":0}'
|
244
218
|
http_version:
|
245
|
-
recorded_at:
|
246
|
-
recorded_with: VCR 2.
|
219
|
+
recorded_at: Wed, 07 Aug 2013 16:51:31 GMT
|
220
|
+
recorded_with: VCR 2.4.0
|