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\":[\"test\",\"-d\",\"/foo\"],\"Image\":\"base\",\"Volumes\":{\"/foo\":{}}}"
|
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
|
-
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMSBHTVQ=
|
19
|
+
Content-Type:
|
20
|
+
- application/json
|
21
|
+
Date:
|
22
|
+
- Wed, 12 Feb 2014 17:05:30 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":"1d7ad40cf94fe20c7b72186afb550f742dba8d4e3c5712649202eacedc353610","Warnings":null}
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
32
|
+
recorded_at: Wed, 12 Feb 2014 17:05:30 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/1d7ad40cf94fe20c7b72186afb550f742dba8d4e3c5712649202eacedc353610/start
|
36
36
|
body:
|
37
37
|
encoding: UTF-8
|
38
|
-
string:
|
38
|
+
string: "{\"Binds\":[\"/tmp:/foo\"]}"
|
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
|
-
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMSBHTVQ=
|
49
|
+
Date:
|
50
|
+
- Wed, 12 Feb 2014 17:05:30 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:30 GMT
|
63
62
|
- request:
|
64
63
|
method: get
|
65
|
-
uri: unix:///var/run/docker.sock/v1.
|
64
|
+
uri: unix:///var/run/docker.sock/v1.8/containers/json
|
66
65
|
body:
|
67
66
|
encoding: US-ASCII
|
68
67
|
string: ''
|
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
|
- text/plain
|
74
73
|
response:
|
@@ -76,30 +75,30 @@ http_interactions:
|
|
76
75
|
code: 200
|
77
76
|
message:
|
78
77
|
headers:
|
79
|
-
|
80
|
-
-
|
81
|
-
|
82
|
-
|
83
|
-
-
|
84
|
-
|
85
|
-
|
86
|
-
-
|
87
|
-
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMSBHTVQ=
|
78
|
+
Date:
|
79
|
+
- Wed, 12 Feb 2014 17:05:30 GMT
|
80
|
+
Content-Length:
|
81
|
+
- '214'
|
82
|
+
Content-Type:
|
83
|
+
- text/plain; charset=utf-8
|
84
|
+
Connection:
|
85
|
+
- close
|
88
86
|
body:
|
89
|
-
encoding:
|
90
|
-
string:
|
91
|
-
-d /foo","Created":
|
87
|
+
encoding: UTF-8
|
88
|
+
string: |-
|
89
|
+
[{"Command":"test -d /foo","Created":1392224730,"Id":"1d7ad40cf94fe20c7b72186afb550f742dba8d4e3c5712649202eacedc353610","Image":"base2:latest","Names":["/grave_brown"],"Ports":[],"Status":"Up Less than a second"}
|
90
|
+
]
|
92
91
|
http_version:
|
93
|
-
recorded_at:
|
92
|
+
recorded_at: Wed, 12 Feb 2014 17:05:30 GMT
|
94
93
|
- request:
|
95
94
|
method: post
|
96
|
-
uri: unix:///var/run/docker.sock/v1.
|
95
|
+
uri: unix:///var/run/docker.sock/v1.8/containers/1d7ad40cf94fe20c7b72186afb550f742dba8d4e3c5712649202eacedc353610/wait
|
97
96
|
body:
|
98
97
|
encoding: US-ASCII
|
99
98
|
string: ''
|
100
99
|
headers:
|
101
100
|
User-Agent:
|
102
|
-
- Swipely/Docker-API 1.6
|
101
|
+
- Swipely/Docker-API 1.7.6
|
103
102
|
Content-Type:
|
104
103
|
- text/plain
|
105
104
|
response:
|
@@ -107,18 +106,18 @@ http_interactions:
|
|
107
106
|
code: 200
|
108
107
|
message:
|
109
108
|
headers:
|
110
|
-
|
111
|
-
-
|
112
|
-
|
113
|
-
|
114
|
-
-
|
115
|
-
|
116
|
-
|
117
|
-
-
|
118
|
-
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMiBHTVQ=
|
109
|
+
Content-Type:
|
110
|
+
- application/json
|
111
|
+
Date:
|
112
|
+
- Wed, 12 Feb 2014 17:05:30 GMT
|
113
|
+
Content-Length:
|
114
|
+
- '17'
|
115
|
+
Connection:
|
116
|
+
- close
|
119
117
|
body:
|
120
|
-
encoding:
|
121
|
-
string:
|
118
|
+
encoding: UTF-8
|
119
|
+
string: |
|
120
|
+
{"StatusCode":0}
|
122
121
|
http_version:
|
123
|
-
recorded_at:
|
124
|
-
recorded_with: VCR 2.
|
122
|
+
recorded_at: Wed, 12 Feb 2014 17:05:30 GMT
|
123
|
+
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
|
-
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMiBHTVQ=
|
19
|
+
Content-Type:
|
20
|
+
- application/json
|
21
|
+
Date:
|
22
|
+
- Wed, 12 Feb 2014 17:05:31 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":"75e9d159b18c496eaefb8a9303a9e497515533ac804c1984593e423ccf361d8c","Warnings":null}
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
32
|
+
recorded_at: Wed, 12 Feb 2014 17:05:31 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/75e9d159b18c496eaefb8a9303a9e497515533ac804c1984593e423ccf361d8c/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
|
-
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMiBHTVQ=
|
49
|
+
Date:
|
50
|
+
- Wed, 12 Feb 2014 17:05:31 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:31 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/containers/75e9d159b18c496eaefb8a9303a9e497515533ac804c1984593e423ccf361d8c/stop
|
66
65
|
body:
|
67
66
|
encoding: UTF-8
|
68
|
-
string:
|
67
|
+
string: "{}"
|
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,28 @@ http_interactions:
|
|
76
75
|
code: 204
|
77
76
|
message:
|
78
77
|
headers:
|
79
|
-
|
80
|
-
-
|
81
|
-
|
82
|
-
|
83
|
-
-
|
84
|
-
|
85
|
-
|
86
|
-
-
|
87
|
-
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMiBHTVQ=
|
78
|
+
Date:
|
79
|
+
- Wed, 12 Feb 2014 17:05:31 GMT
|
80
|
+
Content-Length:
|
81
|
+
- '0'
|
82
|
+
Content-Type:
|
83
|
+
- text/plain; charset=utf-8
|
84
|
+
Connection:
|
85
|
+
- close
|
88
86
|
body:
|
89
|
-
encoding:
|
87
|
+
encoding: UTF-8
|
90
88
|
string: ''
|
91
89
|
http_version:
|
92
|
-
recorded_at:
|
90
|
+
recorded_at: Wed, 12 Feb 2014 17:05:31 GMT
|
93
91
|
- request:
|
94
92
|
method: get
|
95
|
-
uri: unix:///var/run/docker.sock/v1.
|
93
|
+
uri: unix:///var/run/docker.sock/v1.8/containers/json?all=true
|
96
94
|
body:
|
97
95
|
encoding: US-ASCII
|
98
96
|
string: ''
|
99
97
|
headers:
|
100
98
|
User-Agent:
|
101
|
-
- Swipely/Docker-API 1.6
|
99
|
+
- Swipely/Docker-API 1.7.6
|
102
100
|
Content-Type:
|
103
101
|
- text/plain
|
104
102
|
response:
|
@@ -106,41 +104,41 @@ http_interactions:
|
|
106
104
|
code: 200
|
107
105
|
message:
|
108
106
|
headers:
|
109
|
-
|
110
|
-
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
-
|
117
|
-
Y2h1bmtlZA==
|
107
|
+
Date:
|
108
|
+
- Wed, 12 Feb 2014 17:05:31 GMT
|
109
|
+
Content-Type:
|
110
|
+
- text/plain; charset=utf-8
|
111
|
+
Connection:
|
112
|
+
- close
|
113
|
+
Transfer-Encoding:
|
114
|
+
- ''
|
118
115
|
body:
|
119
|
-
encoding:
|
120
|
-
string:
|
121
|
-
","Created":
|
122
|
-
-d /foo","Created":
|
123
|
-
|
124
|
-
|
125
|
-
/
|
126
|
-
/test","Created":
|
127
|
-
/test","Created":
|
128
|
-
|
129
|
-
-
|
130
|
-
|
131
|
-
|
132
|
-
","Created":
|
116
|
+
encoding: UTF-8
|
117
|
+
string: |-
|
118
|
+
[{"Command":true,"Created":1392224730,"Id":"75e9d159b18c496eaefb8a9303a9e497515533ac804c1984593e423ccf361d8c","Image":"base2:latest","Names":["/hungry_pasteur"],"Ports":[],"Status":"Exit 2"}
|
119
|
+
,{"Command":"test -d /foo","Created":1392224730,"Id":"1d7ad40cf94fe20c7b72186afb550f742dba8d4e3c5712649202eacedc353610","Image":"base2:latest","Names":["/grave_brown"],"Ports":[],"Status":"Exit 0"}
|
120
|
+
,{"Command":"pwd ","Created":1392224729,"Id":"b97622bf74dc3bd4a47cfc1fcb00aad1a73b6c602dc2fbcb09fbbcb6e60ad547","Image":"base2:latest","Names":["/suspicious_euclid"],"Ports":[],"Status":"Exit 0"}
|
121
|
+
,{"Command":"pwd ","Created":1392224728,"Id":"aca0db5a8af5667cfb798ca4fa2650d5dc96265005b21f635755a4e7ae3c22a6","Image":"base2:latest","Names":["/furious_poincare"],"Ports":[],"Status":"Exit 0"}
|
122
|
+
,{"Command":"rm -rf / --no-preserve-root","Created":1392224727,"Id":"68c652097593ef2d2469e0ec0a28ae07bb8cb6f6066e36bd2a689bdf1c75b67a","Image":"base2:latest","Names":["/trusting_lovelace"],"Ports":[],"Status":"Exit 1"}
|
123
|
+
,{"Command":"touch /test","Created":1392224727,"Id":"4abac1fa781baa731e67c8623ad09277fcab360e96727897a995d047b706d1b0","Image":"base2:latest","Names":["/evil_bardeen"],"Ports":[],"Status":"Exit 0"}
|
124
|
+
,{"Command":"touch /test","Created":1392224725,"Id":"7fc5da303ee405d249c67fb17ff9806d358e031764002beef9a9030ee0e6150a","Image":"base2:latest","Names":["/loving_lovelace"],"Ports":[],"Status":"Exit 0"}
|
125
|
+
,{"Command":"/bin/sh -c printf '#! /bin/sh\\nwhile true\\ndo\\ntrue\\ndone\\n' \u003e /while \u0026\u0026 chmod +x /while","Created":1392224716,"Id":"cacaaf438ce9f95013b62be6121f0e024854326e28bb9daea0e10d73927b4d8e","Image":"base2:latest","Names":["/distracted_tesla"],"Ports":[],"Status":"Exit 0"}
|
126
|
+
,{"Command":"rm -rf /root","Created":1392224712,"Id":"8662d957c62499b15195a9c4b07d0a60284b13309cac13b3dcc438be317c3333","Image":"base2:latest","Names":["/stoic_turing"],"Ports":[],"Status":"Exit 0"}
|
127
|
+
,{"Command":true,"Created":1392224711,"Id":"956835aa46c1d76b349a08fa048e5422fa866e1a90b3ef833232b292e1e57a8d","Image":"base2:latest","Names":["/bob"],"Ports":[],"Status":"Exit 0"}
|
128
|
+
,{"Command":true,"Created":1392224710,"Id":"84eaae34df6b150fb24ff9cb1a8f018a730da82f54bb96cef9875d3c7d443064","Image":"base2:latest","Names":["/boring_brattain"],"Ports":[],"Status":"Exit 0"}
|
129
|
+
,{"Command":"sleep 5","Created":1392151930,"Id":"d51ef17bd97e56413bf82176cbc569d062a9f544ac412d406d83b5bc1e171fa0","Image":"base2:latest","Names":["/clever_mclean"],"Ports":[],"Status":"Exit 0"}
|
130
|
+
]
|
133
131
|
http_version:
|
134
|
-
recorded_at:
|
132
|
+
recorded_at: Wed, 12 Feb 2014 17:05:31 GMT
|
135
133
|
- request:
|
136
134
|
method: get
|
137
|
-
uri: unix:///var/run/docker.sock/v1.
|
135
|
+
uri: unix:///var/run/docker.sock/v1.8/containers/json
|
138
136
|
body:
|
139
137
|
encoding: US-ASCII
|
140
138
|
string: ''
|
141
139
|
headers:
|
142
140
|
User-Agent:
|
143
|
-
- Swipely/Docker-API 1.6
|
141
|
+
- Swipely/Docker-API 1.7.6
|
144
142
|
Content-Type:
|
145
143
|
- text/plain
|
146
144
|
response:
|
@@ -148,18 +146,17 @@ http_interactions:
|
|
148
146
|
code: 200
|
149
147
|
message:
|
150
148
|
headers:
|
151
|
-
|
152
|
-
-
|
153
|
-
|
154
|
-
|
155
|
-
-
|
156
|
-
|
157
|
-
|
158
|
-
-
|
159
|
-
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMiBHTVQ=
|
149
|
+
Date:
|
150
|
+
- Wed, 12 Feb 2014 17:05:31 GMT
|
151
|
+
Content-Length:
|
152
|
+
- '2'
|
153
|
+
Content-Type:
|
154
|
+
- text/plain; charset=utf-8
|
155
|
+
Connection:
|
156
|
+
- close
|
160
157
|
body:
|
161
|
-
encoding:
|
162
|
-
string:
|
158
|
+
encoding: UTF-8
|
159
|
+
string: "[]"
|
163
160
|
http_version:
|
164
|
-
recorded_at:
|
165
|
-
recorded_with: VCR 2.
|
161
|
+
recorded_at: Wed, 12 Feb 2014 17:05:31 GMT
|
162
|
+
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/build
|
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
|
- application/tar
|
14
14
|
Transfer-Encoding:
|
@@ -18,31 +18,32 @@ http_interactions:
|
|
18
18
|
code: 200
|
19
19
|
message:
|
20
20
|
headers:
|
21
|
-
|
22
|
-
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
-
|
29
|
-
Y2h1bmtlZA==
|
21
|
+
Content-Type:
|
22
|
+
- application/json
|
23
|
+
Date:
|
24
|
+
- Wed, 12 Feb 2014 17:05:15 GMT
|
25
|
+
Connection:
|
26
|
+
- close
|
27
|
+
Transfer-Encoding:
|
28
|
+
- ''
|
30
29
|
body:
|
31
|
-
encoding:
|
32
|
-
string:
|
33
|
-
|
34
|
-
|
30
|
+
encoding: UTF-8
|
31
|
+
string: "{\"stream\":\"Step 0 : from base\\n\"}{\"stream\":\" ---\\u003e b750fe79269d\\n\"}{\"stream\":\"Step
|
32
|
+
1 : run printf '#! /bin/sh\\\\nwhile true\\\\ndo\\\\ntrue\\\\ndone\\\\n' \\u003e
|
33
|
+
/while \\u0026\\u0026 chmod +x /while\\n\"}{\"stream\":\" ---\\u003e Running
|
34
|
+
in cacaaf438ce9\\n\"}{\"stream\":\" ---\\u003e 8c71f00445f5\\n\"}{\"stream\":\"Successfully
|
35
|
+
built 8c71f00445f5\\n\"}"
|
35
36
|
http_version:
|
36
|
-
recorded_at:
|
37
|
+
recorded_at: Wed, 12 Feb 2014 17:05:19 GMT
|
37
38
|
- request:
|
38
39
|
method: post
|
39
|
-
uri: unix:///var/run/docker.sock/v1.
|
40
|
+
uri: unix:///var/run/docker.sock/v1.8/containers/create
|
40
41
|
body:
|
41
42
|
encoding: UTF-8
|
42
|
-
string:
|
43
|
+
string: "{\"Image\":\"8c71f00445f5\",\"Cmd\":[\"/while\"]}"
|
43
44
|
headers:
|
44
45
|
User-Agent:
|
45
|
-
- Swipely/Docker-API 1.6
|
46
|
+
- Swipely/Docker-API 1.7.6
|
46
47
|
Content-Type:
|
47
48
|
- application/json
|
48
49
|
response:
|
@@ -50,29 +51,29 @@ http_interactions:
|
|
50
51
|
code: 201
|
51
52
|
message:
|
52
53
|
headers:
|
53
|
-
|
54
|
-
-
|
55
|
-
|
56
|
-
|
57
|
-
-
|
58
|
-
|
59
|
-
|
60
|
-
-
|
61
|
-
RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1MyBHTVQ=
|
54
|
+
Content-Type:
|
55
|
+
- application/json
|
56
|
+
Date:
|
57
|
+
- Wed, 12 Feb 2014 17:05:19 GMT
|
58
|
+
Content-Length:
|
59
|
+
- '90'
|
60
|
+
Connection:
|
61
|
+
- close
|
62
62
|
body:
|
63
|
-
encoding:
|
64
|
-
string:
|
63
|
+
encoding: UTF-8
|
64
|
+
string: |
|
65
|
+
{"Id":"a8f25a38eae9d43dbc9fe1d20eeda7fb959ce4d0481f7bab1b5543d8ce366688","Warnings":null}
|
65
66
|
http_version:
|
66
|
-
recorded_at:
|
67
|
+
recorded_at: Wed, 12 Feb 2014 17:05:19 GMT
|
67
68
|
- request:
|
68
69
|
method: post
|
69
|
-
uri: unix:///var/run/docker.sock/v1.
|
70
|
+
uri: unix:///var/run/docker.sock/v1.8/containers/a8f25a38eae9d43dbc9fe1d20eeda7fb959ce4d0481f7bab1b5543d8ce366688/start
|
70
71
|
body:
|
71
72
|
encoding: UTF-8
|
72
|
-
string:
|
73
|
+
string: "{}"
|
73
74
|
headers:
|
74
75
|
User-Agent:
|
75
|
-
- Swipely/Docker-API 1.6
|
76
|
+
- Swipely/Docker-API 1.7.6
|
76
77
|
Content-Type:
|
77
78
|
- application/json
|
78
79
|
response:
|
@@ -80,29 +81,28 @@ http_interactions:
|
|
80
81
|
code: 204
|
81
82
|
message:
|
82
83
|
headers:
|
83
|
-
|
84
|
-
-
|
85
|
-
|
86
|
-
|
87
|
-
-
|
88
|
-
|
89
|
-
|
90
|
-
-
|
91
|
-
RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1MyBHTVQ=
|
84
|
+
Date:
|
85
|
+
- Wed, 12 Feb 2014 17:05:19 GMT
|
86
|
+
Content-Length:
|
87
|
+
- '0'
|
88
|
+
Content-Type:
|
89
|
+
- text/plain; charset=utf-8
|
90
|
+
Connection:
|
91
|
+
- close
|
92
92
|
body:
|
93
|
-
encoding:
|
93
|
+
encoding: UTF-8
|
94
94
|
string: ''
|
95
95
|
http_version:
|
96
|
-
recorded_at:
|
96
|
+
recorded_at: Wed, 12 Feb 2014 17:05:19 GMT
|
97
97
|
- request:
|
98
98
|
method: get
|
99
|
-
uri: unix:///var/run/docker.sock/v1.
|
99
|
+
uri: unix:///var/run/docker.sock/v1.8/containers/a8f25a38eae9d43dbc9fe1d20eeda7fb959ce4d0481f7bab1b5543d8ce366688/top
|
100
100
|
body:
|
101
101
|
encoding: US-ASCII
|
102
102
|
string: ''
|
103
103
|
headers:
|
104
104
|
User-Agent:
|
105
|
-
- Swipely/Docker-API 1.6
|
105
|
+
- Swipely/Docker-API 1.7.6
|
106
106
|
Content-Type:
|
107
107
|
- text/plain
|
108
108
|
response:
|
@@ -110,29 +110,29 @@ http_interactions:
|
|
110
110
|
code: 200
|
111
111
|
message:
|
112
112
|
headers:
|
113
|
-
|
114
|
-
-
|
115
|
-
|
116
|
-
|
117
|
-
-
|
118
|
-
|
119
|
-
|
120
|
-
-
|
121
|
-
RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1NCBHTVQ=
|
113
|
+
Date:
|
114
|
+
- Wed, 12 Feb 2014 17:05:20 GMT
|
115
|
+
Content-Length:
|
116
|
+
- '147'
|
117
|
+
Content-Type:
|
118
|
+
- text/plain; charset=utf-8
|
119
|
+
Connection:
|
120
|
+
- close
|
122
121
|
body:
|
123
|
-
encoding:
|
124
|
-
string:
|
122
|
+
encoding: UTF-8
|
123
|
+
string: |
|
124
|
+
{"Processes":[["root","19337","19331","99","12:05","?","00:00:01","/bin/sh /while"]],"Titles":["UID","PID","PPID","C","STIME","TTY","TIME","CMD"]}
|
125
125
|
http_version:
|
126
|
-
recorded_at:
|
126
|
+
recorded_at: Wed, 12 Feb 2014 17:05:20 GMT
|
127
127
|
- request:
|
128
128
|
method: post
|
129
|
-
uri: unix:///var/run/docker.sock/v1.
|
129
|
+
uri: unix:///var/run/docker.sock/v1.8/containers/a8f25a38eae9d43dbc9fe1d20eeda7fb959ce4d0481f7bab1b5543d8ce366688/kill
|
130
130
|
body:
|
131
131
|
encoding: UTF-8
|
132
|
-
string:
|
132
|
+
string: "{}"
|
133
133
|
headers:
|
134
134
|
User-Agent:
|
135
|
-
- Swipely/Docker-API 1.6
|
135
|
+
- Swipely/Docker-API 1.7.6
|
136
136
|
Content-Type:
|
137
137
|
- application/json
|
138
138
|
response:
|
@@ -140,29 +140,57 @@ http_interactions:
|
|
140
140
|
code: 204
|
141
141
|
message:
|
142
142
|
headers:
|
143
|
-
|
144
|
-
-
|
145
|
-
|
146
|
-
|
147
|
-
-
|
148
|
-
|
149
|
-
|
150
|
-
-
|
151
|
-
|
143
|
+
Date:
|
144
|
+
- Wed, 12 Feb 2014 17:05:21 GMT
|
145
|
+
Content-Length:
|
146
|
+
- '0'
|
147
|
+
Content-Type:
|
148
|
+
- text/plain; charset=utf-8
|
149
|
+
Connection:
|
150
|
+
- close
|
151
|
+
body:
|
152
|
+
encoding: UTF-8
|
153
|
+
string: ''
|
154
|
+
http_version:
|
155
|
+
recorded_at: Wed, 12 Feb 2014 17:05:21 GMT
|
156
|
+
- request:
|
157
|
+
method: delete
|
158
|
+
uri: unix:///var/run/docker.sock/v1.8/containers/a8f25a38eae9d43dbc9fe1d20eeda7fb959ce4d0481f7bab1b5543d8ce366688
|
152
159
|
body:
|
153
160
|
encoding: US-ASCII
|
154
161
|
string: ''
|
162
|
+
headers:
|
163
|
+
User-Agent:
|
164
|
+
- Swipely/Docker-API 1.7.6
|
165
|
+
Content-Type:
|
166
|
+
- text/plain
|
167
|
+
response:
|
168
|
+
status:
|
169
|
+
code: 204
|
170
|
+
message:
|
171
|
+
headers:
|
172
|
+
Date:
|
173
|
+
- Wed, 12 Feb 2014 17:05:23 GMT
|
174
|
+
Content-Length:
|
175
|
+
- '0'
|
176
|
+
Content-Type:
|
177
|
+
- text/plain; charset=utf-8
|
178
|
+
Connection:
|
179
|
+
- close
|
180
|
+
body:
|
181
|
+
encoding: UTF-8
|
182
|
+
string: ''
|
155
183
|
http_version:
|
156
|
-
recorded_at:
|
184
|
+
recorded_at: Wed, 12 Feb 2014 17:05:23 GMT
|
157
185
|
- request:
|
158
186
|
method: delete
|
159
|
-
uri: unix:///var/run/docker.sock/v1.
|
187
|
+
uri: unix:///var/run/docker.sock/v1.8/images/8c71f00445f5
|
160
188
|
body:
|
161
189
|
encoding: US-ASCII
|
162
190
|
string: ''
|
163
191
|
headers:
|
164
192
|
User-Agent:
|
165
|
-
- Swipely/Docker-API 1.6
|
193
|
+
- Swipely/Docker-API 1.7.6
|
166
194
|
Content-Type:
|
167
195
|
- text/plain
|
168
196
|
response:
|
@@ -170,18 +198,19 @@ http_interactions:
|
|
170
198
|
code: 200
|
171
199
|
message:
|
172
200
|
headers:
|
173
|
-
|
174
|
-
-
|
175
|
-
|
176
|
-
|
177
|
-
-
|
178
|
-
|
179
|
-
|
180
|
-
-
|
181
|
-
RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1NCBHTVQ=
|
201
|
+
Date:
|
202
|
+
- Wed, 12 Feb 2014 17:05:23 GMT
|
203
|
+
Content-Length:
|
204
|
+
- '81'
|
205
|
+
Content-Type:
|
206
|
+
- text/plain; charset=utf-8
|
207
|
+
Connection:
|
208
|
+
- close
|
182
209
|
body:
|
183
|
-
encoding:
|
184
|
-
string:
|
210
|
+
encoding: UTF-8
|
211
|
+
string: |-
|
212
|
+
[{"Deleted":"8c71f00445f5285c280e6956d372aabda98a87d1e091fac8398e90ea84dc9d57"}
|
213
|
+
]
|
185
214
|
http_version:
|
186
|
-
recorded_at:
|
187
|
-
recorded_with: VCR 2.
|
215
|
+
recorded_at: Wed, 12 Feb 2014 17:05:23 GMT
|
216
|
+
recorded_with: VCR 2.8.0
|