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":["test","-d","/foo"],"Image":"base","Volumes":{"/foo":{}}}'
|
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
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMSBHTVQ=
|
28
28
|
body:
|
29
29
|
encoding: US-ASCII
|
30
|
-
string: ! '{"Id":"
|
30
|
+
string: ! '{"Id":"62d216c3fb8a"}'
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
32
|
+
recorded_at: Fri, 25 Oct 2013 16:29:01 GMT
|
33
33
|
- request:
|
34
34
|
method: post
|
35
|
-
uri:
|
35
|
+
uri: unix:///var/run/docker.sock/v1.6/containers/62d216c3fb8a/start
|
36
36
|
body:
|
37
37
|
encoding: UTF-8
|
38
38
|
string: ! '{"Binds":["/tmp:/foo"]}'
|
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
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMSBHTVQ=
|
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:01 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
|
+
MjE1
|
85
85
|
!binary "RGF0ZQ==":
|
86
86
|
- !binary |-
|
87
|
-
|
87
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMSBHTVQ=
|
88
88
|
body:
|
89
89
|
encoding: US-ASCII
|
90
|
-
string: ! '[{"Id":"
|
91
|
-
-d /foo","Created":
|
90
|
+
string: ! '[{"Id":"62d216c3fb8a491d89fbc2a72ec7a39be464f77624740238be90b13502b66ab0","Image":"base:latest","Command":"test
|
91
|
+
-d /foo","Created":1382718541,"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:01 GMT
|
94
94
|
- request:
|
95
95
|
method: post
|
96
|
-
uri:
|
96
|
+
uri: unix:///var/run/docker.sock/v1.6/containers/62d216c3fb8a/wait
|
97
97
|
body:
|
98
98
|
encoding: US-ASCII
|
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
|
- text/plain
|
105
105
|
response:
|
106
106
|
status:
|
107
107
|
code: 200
|
108
|
-
message:
|
108
|
+
message:
|
109
109
|
headers:
|
110
110
|
!binary "Q29udGVudC1UeXBl":
|
111
111
|
- !binary |-
|
@@ -115,10 +115,10 @@ http_interactions:
|
|
115
115
|
MTY=
|
116
116
|
!binary "RGF0ZQ==":
|
117
117
|
- !binary |-
|
118
|
-
|
118
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMiBHTVQ=
|
119
119
|
body:
|
120
120
|
encoding: US-ASCII
|
121
121
|
string: ! '{"StatusCode":0}'
|
122
122
|
http_version:
|
123
|
-
recorded_at:
|
123
|
+
recorded_at: Fri, 25 Oct 2013 16:29:02 GMT
|
124
124
|
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":["true"],"Image":"base"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.
|
11
|
+
- Swipely/Docker-API 1.6.0
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 201
|
17
|
-
message:
|
17
|
+
message:
|
18
18
|
headers:
|
19
19
|
!binary "Q29udGVudC1UeXBl":
|
20
20
|
- !binary |-
|
21
21
|
YXBwbGljYXRpb24vanNvbg==
|
22
22
|
!binary "Q29udGVudC1MZW5ndGg=":
|
23
23
|
- !binary |-
|
24
|
-
|
24
|
+
MjE=
|
25
25
|
!binary "RGF0ZQ==":
|
26
26
|
- !binary |-
|
27
|
-
|
27
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMiBHTVQ=
|
28
28
|
body:
|
29
29
|
encoding: US-ASCII
|
30
|
-
string: ! '{"Id":"
|
30
|
+
string: ! '{"Id":"6c5940e06b2f"}'
|
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/6c5940e06b2f/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
|
+
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: post
|
65
|
-
uri:
|
65
|
+
uri: unix:///var/run/docker.sock/v1.6/containers/6c5940e06b2f/stop
|
66
66
|
body:
|
67
67
|
encoding: UTF-8
|
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
|
- application/json
|
74
74
|
response:
|
75
75
|
status:
|
76
76
|
code: 204
|
77
|
-
message:
|
77
|
+
message:
|
78
78
|
headers:
|
79
79
|
!binary "Q29udGVudC1UeXBl":
|
80
80
|
- !binary |-
|
@@ -84,82 +84,69 @@ http_interactions:
|
|
84
84
|
MA==
|
85
85
|
!binary "RGF0ZQ==":
|
86
86
|
- !binary |-
|
87
|
-
|
87
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMiBHTVQ=
|
88
88
|
body:
|
89
89
|
encoding: US-ASCII
|
90
90
|
string: ''
|
91
91
|
http_version:
|
92
|
-
recorded_at:
|
92
|
+
recorded_at: Fri, 25 Oct 2013 16:29:02 GMT
|
93
93
|
- request:
|
94
94
|
method: get
|
95
|
-
uri:
|
95
|
+
uri: unix:///var/run/docker.sock/v1.6/containers/json?all=true
|
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: 200
|
107
|
-
message:
|
107
|
+
message:
|
108
108
|
headers:
|
109
109
|
!binary "Q29udGVudC1UeXBl":
|
110
110
|
- !binary |-
|
111
111
|
YXBwbGljYXRpb24vanNvbg==
|
112
112
|
!binary "RGF0ZQ==":
|
113
113
|
- !binary |-
|
114
|
-
|
114
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMiBHTVQ=
|
115
115
|
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
116
116
|
- !binary |-
|
117
117
|
Y2h1bmtlZA==
|
118
118
|
body:
|
119
119
|
encoding: US-ASCII
|
120
|
-
string: ! '[{"Id":"
|
121
|
-
","Created":
|
122
|
-
-d /foo","Created":
|
123
|
-
","Created":
|
124
|
-
-rf / --no-preserve-root","Created":
|
125
|
-
","Created":
|
126
|
-
","Created":
|
127
|
-
","Created":
|
128
|
-
|
129
|
-
-
|
130
|
-
","Created":
|
131
|
-
","Created":
|
132
|
-
|
133
|
-
-lc ping tlunter.com","Created":1375557372,"Status":"Exit 255","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"704f0cb84b6eff28f052491552d3633c331a746f563cb5bb023bc282b160fb4d","Image":"jbgi/arch-base:latest","Command":"/bin/sh
|
134
|
-
-lc ping tlunter.com","Created":1375556720,"Status":"Exit 2","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"1b3a69caf5fca0fec4a379b03e0be9e80ba17070b723746378320a8008204651","Image":"jbgi/arch-base:latest","Command":"/bin/sh
|
135
|
-
-lc ping tlunter.com","Created":1375556426,"Status":"Exit 2","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"d505d659d2db270faafe0f0e95f7713aff64d3d453a28d6bc182821efd294227","Image":"jbgi/arch-base:latest","Command":"/bin/sh
|
136
|
-
-lc which ping","Created":1375556419,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"f476389ebc0169584d7afd8eda7d5abd3b86b80dc2dab1964418289b38112c16","Image":"jbgi/arch-base:latest","Command":"/bin/sh
|
137
|
-
-lc ls && ping google.com","Created":1375556408,"Status":"Exit 2","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"c31d70d336b7604ef5ef50e731c6a66b2f8217ca80716cce0fe2402dd60030a5","Image":"jbgi/arch-base:latest","Command":"/bin/sh
|
138
|
-
-lc ls","Created":1375556402,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"5804cf327f8edc031eb0169ac3c436629a4bfd16a873991234705be03561ea7e","Image":"jbgi/arch-base:latest","Command":"/bin/sh
|
139
|
-
-lc ping google.com","Created":1375556382,"Status":"Exit 2","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"6ade424558f79beb13249a860cfeb6181ddc5c8c4a1c679ffcb97df80eca971d","Image":"jbgi/arch-base:latest","Command":"/bin/sh
|
140
|
-
-lc ip addr","Created":1375556375,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"dcab42058c9912fdf00152e560844c81633e22cd867866668566d9846e68ff7f","Image":"jbgi/arch-base:latest","Command":"/bin/sh
|
141
|
-
-lc ip addr","Created":1375556346,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"d7ddbde44c7f39f0bd5d390fc3749deb1493496caabcb094f19c5d43505b3332","Image":"jbgi/arch-base:latest","Command":"/bin/sh
|
142
|
-
-lc pacman -Syu","Created":1375556330,"Status":"Exit -127","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"1617294e19c3b56f936165a44106550eba167585e95588ca53be18f13cc3871b","Image":"jbgi/arch-base:latest","Command":"/bin/bash
|
143
|
-
","Created":1375556154,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"7bac043a74338151d1a3d991132687705d2a6cc8d1377ffbfeb92b04eb2201b0","Image":"jbgi/arch-base:latest","Command":"/bin/bash
|
144
|
-
","Created":1375556101,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"aba819a380a1e95ba68516d72c3c7483a316dbb180401595a9dadbb1322ef1b6","Image":"jbgi/arch-base:latest","Command":"/bin/bash
|
145
|
-
","Created":1375556096,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0}]'
|
120
|
+
string: ! '[{"Id":"6c5940e06b2f1131ddba8d809628ca4ca3357612624ebae9a24b5ada27f9e210","Image":"base:latest","Command":"true
|
121
|
+
","Created":1382718542,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"62d216c3fb8a491d89fbc2a72ec7a39be464f77624740238be90b13502b66ab0","Image":"base:latest","Command":"test
|
122
|
+
-d /foo","Created":1382718541,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"a6fc66b03627541d764a70a5e33eaf0e704186f78e923c4ecdb8d3a8007c4d97","Image":"base:latest","Command":"pwd
|
123
|
+
","Created":1382718541,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"6262eddf6ea23cae949bb0745f4a3812c0961fe78d5db64ac56a7d97cae1dad3","Image":"base:latest","Command":"rm
|
124
|
+
-rf / --no-preserve-root","Created":1382718538,"Status":"Exit 1","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"5d6805e5ca5542a8ccf8f11bf3def474700c0699ca4144a824f11be784911314","Image":"base:latest","Command":"touch
|
125
|
+
/test","Created":1382718538,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"9ae257b241d59e4bd4994e448ed7075e358a987da5a4ae97022883859cefc82e","Image":"base:latest","Command":"touch
|
126
|
+
/test","Created":1382718537,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"968bce01b7167d4a90ac0bf84033e50f99dff1590048e45b6f73326c1f93c674","Image":"base:latest","Command":"touch
|
127
|
+
/test","Created":1382718536,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"aeb51665a4161d45974a853fb9c1a737e501eb8708fa749785401f8f95c5a8c3","Image":"a49d35b89848","Command":"/while
|
128
|
+
","Created":1382718533,"Status":"Exit 137","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"511a99a9b924341e343b5cb9c830101c1db0054c1cd7867f19b65ef98576ffa4","Image":"base:latest","Command":"/bin/sh
|
129
|
+
-c printf ''#! /bin/sh\\nwhile true\\ndo\\ntrue\\ndone\\n'' \u003e /while
|
130
|
+
&& chmod +x /while","Created":1382718533,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"1375718e85e4a4135bf9f16979edb3693c96e5854ad3b6d42bc2f664d38bd63a","Image":"base:latest","Command":"rm
|
131
|
+
-rf /root","Created":1382718533,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"e817145430ed2168bdbc548a1478ebbea02ace9564cdc02012fd9bab68ddf1b8","Image":"base:latest","Command":"true
|
132
|
+
","Created":1382718533,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0}]'
|
146
133
|
http_version:
|
147
|
-
recorded_at:
|
134
|
+
recorded_at: Fri, 25 Oct 2013 16:29:02 GMT
|
148
135
|
- request:
|
149
136
|
method: get
|
150
|
-
uri:
|
137
|
+
uri: unix:///var/run/docker.sock/v1.6/containers/json
|
151
138
|
body:
|
152
139
|
encoding: US-ASCII
|
153
140
|
string: ''
|
154
141
|
headers:
|
155
142
|
User-Agent:
|
156
|
-
- Swipely/Docker-API 1.
|
143
|
+
- Swipely/Docker-API 1.6.0
|
157
144
|
Content-Type:
|
158
145
|
- text/plain
|
159
146
|
response:
|
160
147
|
status:
|
161
148
|
code: 200
|
162
|
-
message:
|
149
|
+
message:
|
163
150
|
headers:
|
164
151
|
!binary "Q29udGVudC1UeXBl":
|
165
152
|
- !binary |-
|
@@ -169,10 +156,10 @@ http_interactions:
|
|
169
156
|
Mg==
|
170
157
|
!binary "RGF0ZQ==":
|
171
158
|
- !binary |-
|
172
|
-
|
159
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMiBHTVQ=
|
173
160
|
body:
|
174
161
|
encoding: US-ASCII
|
175
162
|
string: ! '[]'
|
176
163
|
http_version:
|
177
|
-
recorded_at:
|
164
|
+
recorded_at: Fri, 25 Oct 2013 16:29:02 GMT
|
178
165
|
recorded_with: VCR 2.6.0
|
@@ -2,49 +2,83 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: unix:///var/run/docker.sock/v1.6/build
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Swipely/Docker-API 1.6.0
|
12
|
+
Content-Type:
|
13
|
+
- application/tar
|
14
|
+
Transfer-Encoding:
|
15
|
+
- chunked
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message:
|
20
|
+
headers:
|
21
|
+
!binary "Q29udGVudC1UeXBl":
|
22
|
+
- !binary |-
|
23
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
24
|
+
!binary "RGF0ZQ==":
|
25
|
+
- !binary |-
|
26
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1MyBHTVQ=
|
27
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
28
|
+
- !binary |-
|
29
|
+
Y2h1bmtlZA==
|
30
|
+
body:
|
31
|
+
encoding: US-ASCII
|
32
|
+
string: ! "Step 1 : FROM base\n ---> b750fe79269d\nStep 2 : RUN printf '#! /bin/sh\\nwhile
|
33
|
+
true\\ndo\\ntrue\\ndone\\n' > /while && chmod +x /while\n ---> Running in
|
34
|
+
511a99a9b924\n ---> a49d35b89848\nSuccessfully built a49d35b89848\n"
|
35
|
+
http_version:
|
36
|
+
recorded_at: Fri, 25 Oct 2013 16:28:53 GMT
|
37
|
+
- request:
|
38
|
+
method: post
|
39
|
+
uri: unix:///var/run/docker.sock/v1.6/containers/create
|
6
40
|
body:
|
7
41
|
encoding: UTF-8
|
8
|
-
string: ! '{"
|
42
|
+
string: ! '{"Image":"a49d35b89848","Cmd":["/while"]}'
|
9
43
|
headers:
|
10
44
|
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.
|
45
|
+
- Swipely/Docker-API 1.6.0
|
12
46
|
Content-Type:
|
13
47
|
- application/json
|
14
48
|
response:
|
15
49
|
status:
|
16
50
|
code: 201
|
17
|
-
message:
|
51
|
+
message:
|
18
52
|
headers:
|
19
53
|
!binary "Q29udGVudC1UeXBl":
|
20
54
|
- !binary |-
|
21
55
|
YXBwbGljYXRpb24vanNvbg==
|
22
56
|
!binary "Q29udGVudC1MZW5ndGg=":
|
23
57
|
- !binary |-
|
24
|
-
|
58
|
+
MjE=
|
25
59
|
!binary "RGF0ZQ==":
|
26
60
|
- !binary |-
|
27
|
-
|
61
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1MyBHTVQ=
|
28
62
|
body:
|
29
63
|
encoding: US-ASCII
|
30
|
-
string: ! '{"Id":"
|
64
|
+
string: ! '{"Id":"aeb51665a416"}'
|
31
65
|
http_version:
|
32
|
-
recorded_at:
|
66
|
+
recorded_at: Fri, 25 Oct 2013 16:28:53 GMT
|
33
67
|
- request:
|
34
68
|
method: post
|
35
|
-
uri:
|
69
|
+
uri: unix:///var/run/docker.sock/v1.6/containers/aeb51665a416/start
|
36
70
|
body:
|
37
71
|
encoding: UTF-8
|
38
72
|
string: ! '{}'
|
39
73
|
headers:
|
40
74
|
User-Agent:
|
41
|
-
- Swipely/Docker-API 1.
|
75
|
+
- Swipely/Docker-API 1.6.0
|
42
76
|
Content-Type:
|
43
77
|
- application/json
|
44
78
|
response:
|
45
79
|
status:
|
46
80
|
code: 204
|
47
|
-
message:
|
81
|
+
message:
|
48
82
|
headers:
|
49
83
|
!binary "Q29udGVudC1UeXBl":
|
50
84
|
- !binary |-
|
@@ -54,57 +88,57 @@ http_interactions:
|
|
54
88
|
MA==
|
55
89
|
!binary "RGF0ZQ==":
|
56
90
|
- !binary |-
|
57
|
-
|
91
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1MyBHTVQ=
|
58
92
|
body:
|
59
93
|
encoding: US-ASCII
|
60
94
|
string: ''
|
61
95
|
http_version:
|
62
|
-
recorded_at:
|
96
|
+
recorded_at: Fri, 25 Oct 2013 16:28:53 GMT
|
63
97
|
- request:
|
64
98
|
method: get
|
65
|
-
uri:
|
99
|
+
uri: unix:///var/run/docker.sock/v1.6/containers/aeb51665a416/top
|
66
100
|
body:
|
67
101
|
encoding: US-ASCII
|
68
102
|
string: ''
|
69
103
|
headers:
|
70
104
|
User-Agent:
|
71
|
-
- Swipely/Docker-API 1.
|
105
|
+
- Swipely/Docker-API 1.6.0
|
72
106
|
Content-Type:
|
73
107
|
- text/plain
|
74
108
|
response:
|
75
109
|
status:
|
76
110
|
code: 200
|
77
|
-
message:
|
111
|
+
message:
|
78
112
|
headers:
|
79
113
|
!binary "Q29udGVudC1UeXBl":
|
80
114
|
- !binary |-
|
81
115
|
YXBwbGljYXRpb24vanNvbg==
|
82
116
|
!binary "Q29udGVudC1MZW5ndGg=":
|
83
117
|
- !binary |-
|
84
|
-
|
118
|
+
ODM=
|
85
119
|
!binary "RGF0ZQ==":
|
86
120
|
- !binary |-
|
87
|
-
|
121
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1NCBHTVQ=
|
88
122
|
body:
|
89
123
|
encoding: US-ASCII
|
90
|
-
string: ! '{"Titles":["PID","TTY","TIME","CMD"],"Processes":[["
|
124
|
+
string: ! '{"Titles":["PID","TTY","TIME","CMD"],"Processes":[["8439","?","00:00:00","while"]]}'
|
91
125
|
http_version:
|
92
|
-
recorded_at:
|
126
|
+
recorded_at: Fri, 25 Oct 2013 16:28:54 GMT
|
93
127
|
- request:
|
94
128
|
method: post
|
95
|
-
uri:
|
129
|
+
uri: unix:///var/run/docker.sock/v1.6/containers/aeb51665a416/kill
|
96
130
|
body:
|
97
131
|
encoding: UTF-8
|
98
132
|
string: ! '{}'
|
99
133
|
headers:
|
100
134
|
User-Agent:
|
101
|
-
- Swipely/Docker-API 1.
|
135
|
+
- Swipely/Docker-API 1.6.0
|
102
136
|
Content-Type:
|
103
137
|
- application/json
|
104
138
|
response:
|
105
139
|
status:
|
106
140
|
code: 204
|
107
|
-
message:
|
141
|
+
message:
|
108
142
|
headers:
|
109
143
|
!binary "Q29udGVudC1UeXBl":
|
110
144
|
- !binary |-
|
@@ -114,10 +148,40 @@ http_interactions:
|
|
114
148
|
MA==
|
115
149
|
!binary "RGF0ZQ==":
|
116
150
|
- !binary |-
|
117
|
-
|
151
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1NCBHTVQ=
|
118
152
|
body:
|
119
153
|
encoding: US-ASCII
|
120
154
|
string: ''
|
121
155
|
http_version:
|
122
|
-
recorded_at:
|
156
|
+
recorded_at: Fri, 25 Oct 2013 16:28:54 GMT
|
157
|
+
- request:
|
158
|
+
method: delete
|
159
|
+
uri: unix:///var/run/docker.sock/v1.6/images/a49d35b89848
|
160
|
+
body:
|
161
|
+
encoding: US-ASCII
|
162
|
+
string: ''
|
163
|
+
headers:
|
164
|
+
User-Agent:
|
165
|
+
- Swipely/Docker-API 1.6.0
|
166
|
+
Content-Type:
|
167
|
+
- text/plain
|
168
|
+
response:
|
169
|
+
status:
|
170
|
+
code: 200
|
171
|
+
message:
|
172
|
+
headers:
|
173
|
+
!binary "Q29udGVudC1UeXBl":
|
174
|
+
- !binary |-
|
175
|
+
YXBwbGljYXRpb24vanNvbg==
|
176
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
177
|
+
- !binary |-
|
178
|
+
Mjg=
|
179
|
+
!binary "RGF0ZQ==":
|
180
|
+
- !binary |-
|
181
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1NCBHTVQ=
|
182
|
+
body:
|
183
|
+
encoding: US-ASCII
|
184
|
+
string: ! '[{"Deleted":"a49d35b89848"}]'
|
185
|
+
http_version:
|
186
|
+
recorded_at: Fri, 25 Oct 2013 16:28:54 GMT
|
123
187
|
recorded_with: VCR 2.6.0
|