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.
- checksums.yaml +7 -0
- data/lib/docker.rb +9 -9
- data/lib/docker/connection.rb +1 -1
- data/lib/docker/container.rb +1 -2
- data/lib/docker/image.rb +7 -6
- data/lib/docker/version.rb +2 -2
- data/spec/docker/connection_spec.rb +2 -2
- data/spec/docker/container_spec.rb +12 -10
- data/spec/docker/image_spec.rb +13 -13
- data/spec/docker_spec.rb +5 -4
- data/spec/vcr/Docker/_authenticate_/with_valid_credentials/logs_in_and_sets_the_creds.yml +1 -1
- data/spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml +17 -15
- data/spec/vcr/Docker/_validate_version/when_nothing_is_raised/validate_version_/.yml +17 -15
- data/spec/vcr/Docker/_version/returns_the_version_as_a_Hash.yml +17 -15
- data/spec/vcr/Docker_Container/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml +96 -46
- data/spec/vcr/Docker_Container/_attach/with_normal_sized_chunks/yields_each_chunk.yml +35 -37
- data/spec/vcr/Docker_Container/_attach/with_very_small_chunks/yields_each_chunk.yml +35 -37
- data/spec/vcr/Docker_Container/_changes/returns_the_changes_as_an_array.yml +60 -58
- data/spec/vcr/Docker_Container/_commit/creates_a_new_Image_from_the_Container_s_changes.yml +46 -47
- data/spec/vcr/Docker_Container/_commit/if_run_is_passed_it_saves_the_command_in_the_image/saves_the_command.yml +78 -81
- data/spec/vcr/Docker_Container/_copy/when_the_file_does_not_exist/raises_an_error.yml +77 -80
- data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_directory/yields_each_chunk_of_the_tarred_directory.yml +91 -182
- data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_file/yields_each_chunk_of_the_tarred_file.yml +80 -273
- data/spec/vcr/Docker_Container/_create/when_creating_a_container_named_bob/should_have_name_set_to_bob.yml +20 -15
- 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
- data/spec/vcr/Docker_Container/_delete/deletes_the_container.yml +41 -43
- data/spec/vcr/Docker_Container/_export/yields_each_chunk.yml +82759 -46
- data/spec/vcr/Docker_Container/_get/when_the_HTTP_response_is_a_200/materializes_the_Container_into_a_Docker_Container.yml +29 -30
- data/spec/vcr/Docker_Container/_json/returns_the_description_as_a_Hash.yml +29 -30
- data/spec/vcr/Docker_Container/_kill/kills_the_container.yml +69 -71
- data/spec/vcr/Docker_Container/_restart/restarts_the_container.yml +98 -102
- data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_does_not_return_status_code_of_0/raises_an_error.yml +43 -44
- 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
- data/spec/vcr/Docker_Container/_start/starts_the_container.yml +58 -59
- data/spec/vcr/Docker_Container/_stop/stops_the_container.yml +81 -84
- data/spec/vcr/Docker_Container/_top/returns_the_top_commands_as_an_Array.yml +116 -87
- data/spec/vcr/Docker_Container/_wait/waits_for_the_command_to_finish.yml +43 -44
- data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/and_a_command_runs_for_too_long/raises_a_ServerError.yml +29 -30
- data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/sets_the_read_timeout_to_that_amount_of_time.yml +43 -44
- data/spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml +46 -32
- 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
- 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
- data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/without_query_parameters/builds_an_image.yml +16 -16
- data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml +17 -19
- 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
- data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_no_query_parameters/builds_the_image.yml +50 -52
- 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
- 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
- data/spec/vcr/Docker_Image/_get/when_the_image_does_exist/returns_the_new_image.yml +14 -15
- data/spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml +36 -32
- data/spec/vcr/Docker_Image/_insert/inserts_the_url_s_file_into_a_new_Image.yml +70 -86
- data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/creates_a_new_image.yml +69 -47
- data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/leave_no_intermediate_containers.yml +118 -47
- data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_exist/creates_a_new_Image_that_has_that_file.yml +68 -70
- data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_not_exist/raises_an_error.yml +16 -16
- data/spec/vcr/Docker_Image/_insert_local/when_there_are_multiple_files_passed/creates_a_new_Image_that_has_each_file.yml +70 -72
- data/spec/vcr/Docker_Image/_json/returns_additional_information_about_image_image.yml +33 -32
- data/spec/vcr/Docker_Image/_push/pushes_the_Image.yml +162 -105
- data/spec/vcr/Docker_Image/_remove/removes_the_Image.yml +53 -46
- 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
- data/spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml +54 -54
- 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
- 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
- data/spec/vcr/Docker_Image/_search/materializes_each_Image_into_a_Docker_Image.yml +94 -35
- data/spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml +32 -31
- 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.
|
5
|
+
uri: unix:///var/run/docker.sock/v1.8/containers/create
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: "{\"Cmd\":[\"true\"],\"Image\":\"base\"}"
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.6
|
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
|
-
|
20
|
-
-
|
21
|
-
|
22
|
-
|
23
|
-
-
|
24
|
-
|
25
|
-
|
26
|
-
-
|
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:
|
30
|
-
string:
|
28
|
+
encoding: UTF-8
|
29
|
+
string: |
|
30
|
+
{"Id":"96d2323cd50e045118d05e31244ef0b7e889371331cf38da7569e2bc7381b68f","Warnings":null}
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
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.
|
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
|
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
|
-
|
50
|
-
-
|
51
|
-
|
52
|
-
|
53
|
-
-
|
54
|
-
|
55
|
-
|
56
|
-
-
|
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:
|
58
|
+
encoding: UTF-8
|
60
59
|
string: ''
|
61
60
|
http_version:
|
62
|
-
recorded_at:
|
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.
|
64
|
+
uri: unix:///var/run/docker.sock/v1.8/commit?container=96d2323c
|
66
65
|
body:
|
67
|
-
encoding:
|
68
|
-
string: ''
|
66
|
+
encoding: UTF-8
|
67
|
+
string: 'null'
|
69
68
|
headers:
|
70
69
|
User-Agent:
|
71
|
-
- Swipely/Docker-API 1.6
|
70
|
+
- Swipely/Docker-API 1.7.6
|
72
71
|
Content-Type:
|
73
|
-
-
|
72
|
+
- application/json
|
74
73
|
response:
|
75
74
|
status:
|
76
75
|
code: 201
|
77
76
|
message:
|
78
77
|
headers:
|
79
|
-
|
80
|
-
-
|
81
|
-
|
82
|
-
|
83
|
-
-
|
84
|
-
|
85
|
-
|
86
|
-
-
|
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:
|
90
|
-
string:
|
87
|
+
encoding: UTF-8
|
88
|
+
string: |
|
89
|
+
{"Id":"291b17ca54f04278c166b1313f9ec211fa27596a6f5a20855fcd8739b8f26116"}
|
91
90
|
http_version:
|
92
|
-
recorded_at:
|
93
|
-
recorded_with: VCR 2.
|
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.
|
5
|
+
uri: unix:///var/run/docker.sock/v1.8/containers/create
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: "{\"Cmd\":[\"true\"],\"Image\":\"base\"}"
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.6
|
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
|
-
|
20
|
-
-
|
21
|
-
|
22
|
-
|
23
|
-
-
|
24
|
-
|
25
|
-
|
26
|
-
-
|
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:
|
30
|
-
string:
|
28
|
+
encoding: UTF-8
|
29
|
+
string: |
|
30
|
+
{"Id":"6f0873d9e37bc1d0878f2d397c0eba3e869969a3e4ff4ea92a7f64951cd84762","Warnings":null}
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
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.
|
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
|
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
|
-
|
50
|
-
-
|
51
|
-
|
52
|
-
|
53
|
-
-
|
54
|
-
|
55
|
-
|
56
|
-
-
|
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:
|
58
|
+
encoding: UTF-8
|
60
59
|
string: ''
|
61
60
|
http_version:
|
62
|
-
recorded_at:
|
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.
|
64
|
+
uri: unix:///var/run/docker.sock/v1.8/commit?container=6f0873d9
|
66
65
|
body:
|
67
66
|
encoding: UTF-8
|
68
|
-
string:
|
67
|
+
string: 'null'
|
69
68
|
headers:
|
70
69
|
User-Agent:
|
71
|
-
- Swipely/Docker-API 1.6
|
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
|
-
|
80
|
-
-
|
81
|
-
|
82
|
-
|
83
|
-
-
|
84
|
-
|
85
|
-
|
86
|
-
-
|
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:
|
90
|
-
string:
|
87
|
+
encoding: UTF-8
|
88
|
+
string: |
|
89
|
+
{"Id":"dae27da5a73f01eede1699649c42c727651b4311d2ff689810bf22c75c2d2a08"}
|
91
90
|
http_version:
|
92
|
-
recorded_at:
|
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.
|
94
|
+
uri: unix:///var/run/docker.sock/v1.8/containers/create
|
96
95
|
body:
|
97
96
|
encoding: UTF-8
|
98
|
-
string:
|
97
|
+
string: "{\"Image\":\"dae27da5a73f01eede1699649c42c727651b4311d2ff689810bf22c75c2d2a08\",\"Cmd\":[\"pwd\"]}"
|
99
98
|
headers:
|
100
99
|
User-Agent:
|
101
|
-
- Swipely/Docker-API 1.6
|
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
|
-
|
110
|
-
-
|
111
|
-
|
112
|
-
|
113
|
-
-
|
114
|
-
|
115
|
-
|
116
|
-
-
|
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:
|
120
|
-
string:
|
117
|
+
encoding: UTF-8
|
118
|
+
string: |
|
119
|
+
{"Id":"ccc53890fd4d75f71d0d762ea8f293263abb046cccecf7f2c2fb6c1736c112ab","Warnings":null}
|
121
120
|
http_version:
|
122
|
-
recorded_at:
|
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.
|
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
|
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
|
-
|
140
|
-
-
|
141
|
-
|
142
|
-
|
143
|
-
-
|
144
|
-
|
145
|
-
|
146
|
-
-
|
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:
|
147
|
+
encoding: UTF-8
|
150
148
|
string: ''
|
151
149
|
http_version:
|
152
|
-
recorded_at:
|
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.
|
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
|
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
|
-
|
170
|
-
-
|
171
|
-
YXBwbGljYXRpb24vdm5kLmRvY2tlci5yYXctc3RyZWFt
|
167
|
+
Content-Type:
|
168
|
+
- application/vnd.docker.raw-stream
|
172
169
|
body:
|
173
|
-
encoding:
|
170
|
+
encoding: UTF-8
|
174
171
|
string: !binary |-
|
175
172
|
AQAAAAAAAAIvCg==
|
176
173
|
http_version:
|
177
|
-
recorded_at:
|
178
|
-
recorded_with: VCR 2.
|
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.
|
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
|
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
|
-
|
20
|
-
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
-
|
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:
|
30
|
-
string:
|
31
|
-
(ubuntu-quantl) from base"
|
32
|
-
(ubuntu-quantl) from base, endpoint: https://cdn-registry-1.docker.io/v1
|
33
|
-
layers"
|
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:
|
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.
|
40
|
+
uri: unix:///var/run/docker.sock/v1.8/containers/create
|
39
41
|
body:
|
40
42
|
encoding: UTF-8
|
41
|
-
string:
|
43
|
+
string: "{\"Image\":\"base\",\"Cmd\":[\"touch\",\"/test\"]}"
|
42
44
|
headers:
|
43
45
|
User-Agent:
|
44
|
-
- Swipely/Docker-API 1.6
|
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
|
-
|
53
|
-
-
|
54
|
-
|
55
|
-
|
56
|
-
-
|
57
|
-
|
58
|
-
|
59
|
-
-
|
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:
|
63
|
-
string:
|
63
|
+
encoding: UTF-8
|
64
|
+
string: |
|
65
|
+
{"Id":"8f5b1b957a642b05f570645b900a6375d62085e97a5e7216f3a2b53cb3033cb0","Warnings":null}
|
64
66
|
http_version:
|
65
|
-
recorded_at:
|
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.
|
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
|
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
|
-
|
83
|
-
-
|
84
|
-
|
85
|
-
|
86
|
-
-
|
87
|
-
|
88
|
-
|
89
|
-
-
|
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:
|
93
|
+
encoding: UTF-8
|
93
94
|
string: ''
|
94
95
|
http_version:
|
95
|
-
recorded_at:
|
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.
|
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
|
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
|
-
|
113
|
-
-
|
114
|
-
|
115
|
-
|
116
|
-
-
|
117
|
-
|
118
|
-
|
119
|
-
-
|
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:
|
123
|
-
string:
|
122
|
+
encoding: UTF-8
|
123
|
+
string: |
|
124
|
+
{"StatusCode":0}
|
124
125
|
http_version:
|
125
|
-
recorded_at:
|
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.
|
129
|
+
uri: unix:///var/run/docker.sock/v1.8/containers/8f5b1b957a642b05f570645b900a6375d62085e97a5e7216f3a2b53cb3033cb0/copy
|
129
130
|
body:
|
130
131
|
encoding: UTF-8
|
131
|
-
string:
|
132
|
+
string: "{\"Resource\":\"/lol/not/a/real/file\"}"
|
132
133
|
headers:
|
133
134
|
User-Agent:
|
134
|
-
- Swipely/Docker-API 1.6
|
135
|
+
- Swipely/Docker-API 1.7.6
|
135
136
|
Content-Type:
|
136
137
|
- application/json
|
137
138
|
response:
|
138
139
|
status:
|
139
|
-
code:
|
140
|
+
code: 200
|
140
141
|
message:
|
141
142
|
headers:
|
142
|
-
|
143
|
-
-
|
144
|
-
|
145
|
-
|
146
|
-
-
|
147
|
-
|
148
|
-
|
149
|
-
-
|
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:
|
153
|
-
string:
|
154
|
-
no such file or directory
|
155
|
-
|
156
|
-
'
|
152
|
+
encoding: UTF-8
|
153
|
+
string: ''
|
157
154
|
http_version:
|
158
|
-
recorded_at:
|
159
|
-
recorded_with: VCR 2.
|
155
|
+
recorded_at: Wed, 12 Feb 2014 17:30:22 GMT
|
156
|
+
recorded_with: VCR 2.8.0
|