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,19 +2,19 @@
|
|
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":["ls"],"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 |-
|
@@ -24,27 +24,27 @@ http_interactions:
|
|
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":"1ea10b23fffb"}'
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
32
|
+
recorded_at: Fri, 25 Oct 2013 16:29:02 GMT
|
33
33
|
- request:
|
34
34
|
method: delete
|
35
|
-
uri:
|
35
|
+
uri: unix:///var/run/docker.sock/v1.6/containers/1ea10b23fffb
|
36
36
|
body:
|
37
37
|
encoding: US-ASCII
|
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
|
- text/plain
|
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: 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 |-
|
@@ -84,40 +84,10 @@ http_interactions:
|
|
84
84
|
Mg==
|
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:
|
93
|
-
- request:
|
94
|
-
method: get
|
95
|
-
uri: http://unix/v1.4/containers/json?all=true
|
96
|
-
body:
|
97
|
-
encoding: US-ASCII
|
98
|
-
string: ''
|
99
|
-
headers:
|
100
|
-
User-Agent:
|
101
|
-
- Swipely/Docker-API 1.5.4
|
102
|
-
Content-Type:
|
103
|
-
- text/plain
|
104
|
-
response:
|
105
|
-
status:
|
106
|
-
code: 200
|
107
|
-
message: ''
|
108
|
-
headers:
|
109
|
-
!binary "Q29udGVudC1UeXBl":
|
110
|
-
- !binary |-
|
111
|
-
YXBwbGljYXRpb24vanNvbg==
|
112
|
-
!binary "Q29udGVudC1MZW5ndGg=":
|
113
|
-
- !binary |-
|
114
|
-
Mg==
|
115
|
-
!binary "RGF0ZQ==":
|
116
|
-
- !binary |-
|
117
|
-
TW9uLCAwNyBPY3QgMjAxMyAxNDoxMjowNSBHTVQ=
|
118
|
-
body:
|
119
|
-
encoding: US-ASCII
|
120
|
-
string: ! '[]'
|
121
|
-
http_version:
|
122
|
-
recorded_at: Mon, 07 Oct 2013 14:12:05 GMT
|
92
|
+
recorded_at: Fri, 25 Oct 2013 16:29:02 GMT
|
123
93
|
recorded_with: VCR 2.6.0
|
@@ -2,19 +2,19 @@
|
|
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":["rm","-rf","/","--no-preserve-root"],"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 |-
|
@@ -24,27 +24,27 @@ http_interactions:
|
|
24
24
|
MjE=
|
25
25
|
!binary "RGF0ZQ==":
|
26
26
|
- !binary |-
|
27
|
-
|
27
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1OCBHTVQ=
|
28
28
|
body:
|
29
29
|
encoding: US-ASCII
|
30
|
-
string: ! '{"Id":"
|
30
|
+
string: ! '{"Id":"6262eddf6ea2"}'
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
32
|
+
recorded_at: Fri, 25 Oct 2013 16:28:58 GMT
|
33
33
|
- request:
|
34
34
|
method: post
|
35
|
-
uri:
|
35
|
+
uri: unix:///var/run/docker.sock/v1.6/containers/6262eddf6ea2/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,34 +54,34 @@ http_interactions:
|
|
54
54
|
MA==
|
55
55
|
!binary "RGF0ZQ==":
|
56
56
|
- !binary |-
|
57
|
-
|
57
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1OCBHTVQ=
|
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:28:58 GMT
|
63
63
|
- request:
|
64
64
|
method: get
|
65
|
-
uri:
|
65
|
+
uri: unix:///var/run/docker.sock/v1.6/containers/6262eddf6ea2/export
|
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
|
YXBwbGljYXRpb24vb2N0ZXQtc3RyZWFt
|
82
82
|
!binary "RGF0ZQ==":
|
83
83
|
- !binary |-
|
84
|
-
|
84
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1OCBHTVQ=
|
85
85
|
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
86
86
|
- !binary |-
|
87
87
|
Y2h1bmtlZA==
|
@@ -91,9 +91,16 @@ http_interactions:
|
|
91
91
|
Li8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
92
92
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
93
93
|
AAAAAAAAAAAAADAwMDA3NTUAMDAwMDAwMAAwMDAwMDAwADAwMDAwMDAwMDAw
|
94
|
-
|
94
|
+
ADEyMjMyNTE2MTEyADAwNjA3NAAgNQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
95
95
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
96
96
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB1c3RhciAgAAAAAAAA
|
97
|
+
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
98
|
+
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
99
|
+
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
100
|
+
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
101
|
+
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
102
|
+
AAAAAAAAAAAAAAAAAAAAAAAuL3Byb2MvAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
103
|
+
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
97
104
|
http_version:
|
98
|
-
recorded_at:
|
105
|
+
recorded_at: Fri, 25 Oct 2013 16:28:59 GMT
|
99
106
|
recorded_with: VCR 2.6.0
|
@@ -2,62 +2,62 @@
|
|
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
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1MyBHTVQ=
|
28
28
|
body:
|
29
29
|
encoding: US-ASCII
|
30
|
-
string: ! '{"Id":"
|
30
|
+
string: ! '{"Id":"e817145430ed"}'
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
32
|
+
recorded_at: Fri, 25 Oct 2013 16:28:53 GMT
|
33
33
|
- request:
|
34
34
|
method: get
|
35
|
-
uri:
|
35
|
+
uri: unix:///var/run/docker.sock/v1.6/containers/e817145430ed/json
|
36
36
|
body:
|
37
37
|
encoding: US-ASCII
|
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
|
- text/plain
|
44
44
|
response:
|
45
45
|
status:
|
46
46
|
code: 200
|
47
|
-
message:
|
47
|
+
message:
|
48
48
|
headers:
|
49
49
|
!binary "Q29udGVudC1UeXBl":
|
50
50
|
- !binary |-
|
51
51
|
YXBwbGljYXRpb24vanNvbg==
|
52
52
|
!binary "Q29udGVudC1MZW5ndGg=":
|
53
53
|
- !binary |-
|
54
|
-
|
54
|
+
MTE2Mw==
|
55
55
|
!binary "RGF0ZQ==":
|
56
56
|
- !binary |-
|
57
|
-
|
57
|
+
RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1MyBHTVQ=
|
58
58
|
body:
|
59
59
|
encoding: US-ASCII
|
60
|
-
string: ! '{"ID":"
|
60
|
+
string: ! '{"ID":"e817145430ed2168bdbc548a1478ebbea02ace9564cdc02012fd9bab68ddf1b8","Created":"2013-10-25T16:28:53.132562792Z","Path":"true","Args":[],"Config":{"Hostname":"e817145430ed","Domainname":"","User":"","Memory":0,"MemorySwap":0,"CpuShares":0,"AttachStdin":false,"AttachStdout":false,"AttachStderr":false,"PortSpecs":null,"Tty":false,"OpenStdin":false,"StdinOnce":false,"Env":null,"Cmd":["true"],"Dns":null,"Image":"base","Volumes":null,"VolumesFrom":"","WorkingDir":"","Entrypoint":null,"NetworkDisabled":false,"Privileged":false},"State":{"Running":false,"Pid":0,"ExitCode":0,"StartedAt":"0001-01-01T00:00:00Z","FinishedAt":"0001-01-01T00:00:00Z","Ghost":false},"Image":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","NetworkSettings":{"IPAddress":"","IPPrefixLen":0,"Gateway":"","Bridge":"","PortMapping":null},"SysInitPath":"/usr/bin/docker","ResolvConfPath":"/etc/resolv.conf","HostnamePath":"/var/lib/docker/containers/e817145430ed2168bdbc548a1478ebbea02ace9564cdc02012fd9bab68ddf1b8/hostname","HostsPath":"/var/lib/docker/containers/e817145430ed2168bdbc548a1478ebbea02ace9564cdc02012fd9bab68ddf1b8/hosts","Volumes":null,"VolumesRW":null}'
|
61
61
|
http_version:
|
62
|
-
recorded_at:
|
62
|
+
recorded_at: Fri, 25 Oct 2013 16:28:53 GMT
|
63
63
|
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":["ls"],"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":"11bab1009e09"}'
|
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/11bab1009e09/kill
|
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: 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 |-
|
@@ -84,66 +84,53 @@ http_interactions:
|
|
84
84
|
Mg==
|
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
|
-
","Created":
|
123
|
-
-d /foo","Created":
|
124
|
-
","Created":
|
125
|
-
-rf / --no-preserve-root","Created":
|
126
|
-
","Created":
|
127
|
-
","Created":
|
128
|
-
","Created":
|
129
|
-
|
130
|
-
-
|
131
|
-
","Created":
|
132
|
-
","Created":
|
133
|
-
|
134
|
-
-lc ping tlunter.com","Created":1375557372,"Status":"Exit 255","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"704f0cb84b6eff28f052491552d3633c331a746f563cb5bb023bc282b160fb4d","Image":"jbgi/arch-base:latest","Command":"/bin/sh
|
135
|
-
-lc ping tlunter.com","Created":1375556720,"Status":"Exit 2","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"1b3a69caf5fca0fec4a379b03e0be9e80ba17070b723746378320a8008204651","Image":"jbgi/arch-base:latest","Command":"/bin/sh
|
136
|
-
-lc ping tlunter.com","Created":1375556426,"Status":"Exit 2","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"d505d659d2db270faafe0f0e95f7713aff64d3d453a28d6bc182821efd294227","Image":"jbgi/arch-base:latest","Command":"/bin/sh
|
137
|
-
-lc which ping","Created":1375556419,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"f476389ebc0169584d7afd8eda7d5abd3b86b80dc2dab1964418289b38112c16","Image":"jbgi/arch-base:latest","Command":"/bin/sh
|
138
|
-
-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
|
139
|
-
-lc ls","Created":1375556402,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"5804cf327f8edc031eb0169ac3c436629a4bfd16a873991234705be03561ea7e","Image":"jbgi/arch-base:latest","Command":"/bin/sh
|
140
|
-
-lc ping google.com","Created":1375556382,"Status":"Exit 2","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"6ade424558f79beb13249a860cfeb6181ddc5c8c4a1c679ffcb97df80eca971d","Image":"jbgi/arch-base:latest","Command":"/bin/sh
|
141
|
-
-lc ip addr","Created":1375556375,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"dcab42058c9912fdf00152e560844c81633e22cd867866668566d9846e68ff7f","Image":"jbgi/arch-base:latest","Command":"/bin/sh
|
142
|
-
-lc ip addr","Created":1375556346,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"d7ddbde44c7f39f0bd5d390fc3749deb1493496caabcb094f19c5d43505b3332","Image":"jbgi/arch-base:latest","Command":"/bin/sh
|
143
|
-
-lc pacman -Syu","Created":1375556330,"Status":"Exit -127","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"1617294e19c3b56f936165a44106550eba167585e95588ca53be18f13cc3871b","Image":"jbgi/arch-base:latest","Command":"/bin/bash
|
144
|
-
","Created":1375556154,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"7bac043a74338151d1a3d991132687705d2a6cc8d1377ffbfeb92b04eb2201b0","Image":"jbgi/arch-base:latest","Command":"/bin/bash
|
145
|
-
","Created":1375556101,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"aba819a380a1e95ba68516d72c3c7483a316dbb180401595a9dadbb1322ef1b6","Image":"jbgi/arch-base:latest","Command":"/bin/bash
|
146
|
-
","Created":1375556096,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0}]'
|
120
|
+
string: ! '[{"Id":"11bab1009e09b171b74a1428ff624f6a188345345685d49c2fa4b83b95d7279c","Image":"base:latest","Command":"ls
|
121
|
+
","Created":1382718542,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"6c5940e06b2f1131ddba8d809628ca4ca3357612624ebae9a24b5ada27f9e210","Image":"base:latest","Command":"true
|
122
|
+
","Created":1382718542,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"62d216c3fb8a491d89fbc2a72ec7a39be464f77624740238be90b13502b66ab0","Image":"base:latest","Command":"test
|
123
|
+
-d /foo","Created":1382718541,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"a6fc66b03627541d764a70a5e33eaf0e704186f78e923c4ecdb8d3a8007c4d97","Image":"base:latest","Command":"pwd
|
124
|
+
","Created":1382718541,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"6262eddf6ea23cae949bb0745f4a3812c0961fe78d5db64ac56a7d97cae1dad3","Image":"base:latest","Command":"rm
|
125
|
+
-rf / --no-preserve-root","Created":1382718538,"Status":"Exit 1","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"5d6805e5ca5542a8ccf8f11bf3def474700c0699ca4144a824f11be784911314","Image":"base:latest","Command":"touch
|
126
|
+
/test","Created":1382718538,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"9ae257b241d59e4bd4994e448ed7075e358a987da5a4ae97022883859cefc82e","Image":"base:latest","Command":"touch
|
127
|
+
/test","Created":1382718537,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"968bce01b7167d4a90ac0bf84033e50f99dff1590048e45b6f73326c1f93c674","Image":"base:latest","Command":"touch
|
128
|
+
/test","Created":1382718536,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"aeb51665a4161d45974a853fb9c1a737e501eb8708fa749785401f8f95c5a8c3","Image":"a49d35b89848","Command":"/while
|
129
|
+
","Created":1382718533,"Status":"Exit 137","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"511a99a9b924341e343b5cb9c830101c1db0054c1cd7867f19b65ef98576ffa4","Image":"base:latest","Command":"/bin/sh
|
130
|
+
-c printf ''#! /bin/sh\\nwhile true\\ndo\\ntrue\\ndone\\n'' \u003e /while
|
131
|
+
&& chmod +x /while","Created":1382718533,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"1375718e85e4a4135bf9f16979edb3693c96e5854ad3b6d42bc2f664d38bd63a","Image":"base:latest","Command":"rm
|
132
|
+
-rf /root","Created":1382718533,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"e817145430ed2168bdbc548a1478ebbea02ace9564cdc02012fd9bab68ddf1b8","Image":"base:latest","Command":"true
|
133
|
+
","Created":1382718533,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0}]'
|
147
134
|
http_version:
|
148
|
-
recorded_at:
|
135
|
+
recorded_at: Fri, 25 Oct 2013 16:29:02 GMT
|
149
136
|
recorded_with: VCR 2.6.0
|