docker-api 1.5.4 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +19 -10
- data/docker-api.gemspec +1 -1
- data/lib/docker.rb +14 -7
- data/lib/docker/connection.rb +6 -1
- data/lib/docker/image.rb +6 -5
- data/lib/docker/version.rb +1 -1
- data/spec/docker/connection_spec.rb +14 -6
- data/spec/docker/container_spec.rb +27 -8
- data/spec/docker/image_spec.rb +23 -5
- data/spec/docker_spec.rb +36 -28
- data/spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml +16 -13
- data/spec/vcr/Docker/_validate_version/when_nothing_is_raised/validate_version_/.yml +16 -13
- data/spec/vcr/Docker/_version/returns_the_version_as_a_Hash.yml +16 -13
- data/spec/vcr/Docker_Container/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml +120 -211
- data/spec/vcr/Docker_Container/_attach/yields_each_chunk.yml +46 -38
- data/spec/vcr/Docker_Container/_changes/returns_the_changes_as_an_array.yml +65 -53
- data/spec/vcr/Docker_Container/_commit/creates_a_new_Image_from_the_Container_s_changes.yml +50 -41
- data/spec/vcr/Docker_Container/_copy/when_the_file_does_not_exist/raises_an_error.yml +62 -48
- data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_directory/yields_each_chunk_of_the_tarred_directory.yml +194 -119
- data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_file/yields_each_chunk_of_the_tarred_file.yml +127 -52
- data/spec/vcr/Docker_Container/_create/when_the_Container_does_not_yet_exist/when_the_HTTP_request_returns_a_200/sets_the_id.yml +18 -15
- data/spec/vcr/Docker_Container/_delete/deletes_the_container.yml +62 -126
- data/spec/vcr/Docker_Container/_export/yields_each_chunk.yml +49 -66
- data/spec/vcr/Docker_Container/_json/returns_the_description_as_a_Hash.yml +33 -27
- data/spec/vcr/Docker_Container/_kill/kills_the_container.yml +91 -129
- data/spec/vcr/Docker_Container/_restart/restarts_the_container.yml +116 -95
- data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_does_not_return_status_code_of_0/raises_an_error.yml +50 -41
- 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 +135 -109
- data/spec/vcr/Docker_Container/_start/starts_the_container.yml +28 -57
- data/spec/vcr/Docker_Container/_stop/stops_the_container.yml +107 -143
- data/spec/vcr/Docker_Container/_top/returns_the_top_commands_as_an_Array.yml +78 -39
- data/spec/vcr/Docker_Container/_wait/waits_for_the_command_to_finish.yml +50 -41
- data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/and_a_command_runs_for_too_long/raises_a_ServerError.yml +35 -29
- data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/sets_the_read_timeout_to_that_amount_of_time.yml +50 -41
- data/spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml +34 -26
- data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/builds_an_image.yml +17 -17
- data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml +20 -15
- data/spec/vcr/Docker_Image/_create/when_the_Image_does_not_yet_exist_and_the_body_is_a_Hash/sets_the_id.yml +19 -14
- data/spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml +34 -26
- data/spec/vcr/Docker_Image/_insert/inserts_the_url_s_file_into_a_new_Image.yml +134 -95
- data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_exist/creates_a_new_Image_that_has_that_file.yml +29 -29
- 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 +30 -30
- data/spec/vcr/Docker_Image/_json/returns_additional_information_about_image_image.yml +34 -26
- data/spec/vcr/Docker_Image/_remove/removes_the_Image.yml +49 -38
- data/spec/vcr/Docker_Image/_run/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml +64 -51
- data/spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml +64 -51
- data/spec/vcr/Docker_Image/_search/materializes_each_Image_into_a_Docker_Image.yml +20 -14
- data/spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml +33 -25
- metadata +29 -54
- data/spec/vcr/Docker_Container/_create/when_the_Container_does_not_yet_exist_and_the_body_is_a_Hash/when_the_HTTP_request_returns_a_200/sets_the_id.yml +0 -30
@@ -2,80 +2,88 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://
|
5
|
+
uri: http://unix/v1.4/containers/create
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"Cmd":["pwd"],"Image":"base"}'
|
8
|
+
string: ! '{"Cmd":["pwd"],"Image":"base"}'
|
9
9
|
headers:
|
10
|
-
Content-Type:
|
11
|
-
- text/plain
|
12
10
|
User-Agent:
|
13
|
-
- Swipely/Docker-API 1.
|
11
|
+
- Swipely/Docker-API 1.5.4
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 201
|
17
17
|
message: ''
|
18
18
|
headers:
|
19
|
-
|
20
|
-
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
19
|
+
!binary "Q29udGVudC1UeXBl":
|
20
|
+
- !binary |-
|
21
|
+
YXBwbGljYXRpb24vanNvbg==
|
22
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
23
|
+
- !binary |-
|
24
|
+
NjU=
|
25
|
+
!binary "RGF0ZQ==":
|
26
|
+
- !binary |-
|
27
|
+
TW9uLCAwNyBPY3QgMjAxMyAwMDo0NzoyMCBHTVQ=
|
25
28
|
body:
|
26
|
-
encoding:
|
27
|
-
string: '{"Id":"
|
29
|
+
encoding: US-ASCII
|
30
|
+
string: ! '{"Id":"f401329d4fd9","Warnings":["IPv4 forwarding is disabled."]}'
|
28
31
|
http_version:
|
29
|
-
recorded_at:
|
32
|
+
recorded_at: Mon, 07 Oct 2013 00:47:20 GMT
|
30
33
|
- request:
|
31
34
|
method: post
|
32
|
-
uri: http://
|
35
|
+
uri: http://unix/v1.4/containers/f401329d4fd9/start
|
33
36
|
body:
|
34
|
-
encoding:
|
35
|
-
string: ''
|
37
|
+
encoding: UTF-8
|
38
|
+
string: ! '{}'
|
36
39
|
headers:
|
37
|
-
Content-Type:
|
38
|
-
- text/plain
|
39
40
|
User-Agent:
|
40
|
-
- Swipely/Docker-API 1.
|
41
|
+
- Swipely/Docker-API 1.5.4
|
42
|
+
Content-Type:
|
43
|
+
- application/json
|
41
44
|
response:
|
42
45
|
status:
|
43
46
|
code: 204
|
44
47
|
message: ''
|
45
48
|
headers:
|
46
|
-
|
47
|
-
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
49
|
+
!binary "Q29udGVudC1UeXBl":
|
50
|
+
- !binary |-
|
51
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
52
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
53
|
+
- !binary |-
|
54
|
+
MA==
|
55
|
+
!binary "RGF0ZQ==":
|
56
|
+
- !binary |-
|
57
|
+
TW9uLCAwNyBPY3QgMjAxMyAwMDo0NzoyMCBHTVQ=
|
52
58
|
body:
|
53
|
-
encoding:
|
59
|
+
encoding: US-ASCII
|
54
60
|
string: ''
|
55
61
|
http_version:
|
56
|
-
recorded_at:
|
62
|
+
recorded_at: Mon, 07 Oct 2013 00:47:20 GMT
|
57
63
|
- request:
|
58
64
|
method: post
|
59
|
-
uri: http://
|
65
|
+
uri: http://unix/v1.4/containers/f401329d4fd9/attach?stdout=true&stream=true
|
60
66
|
body:
|
61
67
|
encoding: US-ASCII
|
62
68
|
string: ''
|
63
69
|
headers:
|
70
|
+
User-Agent:
|
71
|
+
- Swipely/Docker-API 1.5.4
|
64
72
|
Content-Type:
|
65
73
|
- text/plain
|
66
|
-
User-Agent:
|
67
|
-
- Swipely/Docker-API 1.3.1
|
68
74
|
response:
|
69
75
|
status:
|
70
76
|
code: 200
|
71
77
|
message: ''
|
72
78
|
headers:
|
73
|
-
|
74
|
-
-
|
79
|
+
!binary "Q29udGVudC1UeXBl":
|
80
|
+
- !binary |-
|
81
|
+
YXBwbGljYXRpb24vdm5kLmRvY2tlci5yYXctc3RyZWFt
|
75
82
|
body:
|
76
|
-
encoding:
|
77
|
-
string:
|
78
|
-
|
83
|
+
encoding: US-ASCII
|
84
|
+
string: ! '/
|
85
|
+
|
86
|
+
'
|
79
87
|
http_version:
|
80
|
-
recorded_at:
|
81
|
-
recorded_with: VCR 2.
|
88
|
+
recorded_at: Mon, 07 Oct 2013 00:47:21 GMT
|
89
|
+
recorded_with: VCR 2.6.0
|
@@ -2,110 +2,122 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://
|
5
|
+
uri: http://unix/v1.4/containers/create
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"Cmd":["rm","-rf","/root"],"Image":"base"}'
|
8
|
+
string: ! '{"Cmd":["rm","-rf","/root"],"Image":"base"}'
|
9
9
|
headers:
|
10
|
-
Content-Type:
|
11
|
-
- text/plain
|
12
10
|
User-Agent:
|
13
|
-
- Swipely/Docker-API 1.
|
11
|
+
- Swipely/Docker-API 1.5.4
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 201
|
17
17
|
message: ''
|
18
18
|
headers:
|
19
|
-
|
20
|
-
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
19
|
+
!binary "Q29udGVudC1UeXBl":
|
20
|
+
- !binary |-
|
21
|
+
YXBwbGljYXRpb24vanNvbg==
|
22
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
23
|
+
- !binary |-
|
24
|
+
NjU=
|
25
|
+
!binary "RGF0ZQ==":
|
26
|
+
- !binary |-
|
27
|
+
TW9uLCAwNyBPY3QgMjAxMyAwMDo0NzoxMyBHTVQ=
|
25
28
|
body:
|
26
|
-
encoding:
|
27
|
-
string: '{"Id":"
|
29
|
+
encoding: US-ASCII
|
30
|
+
string: ! '{"Id":"3aecf08d8d31","Warnings":["IPv4 forwarding is disabled."]}'
|
28
31
|
http_version:
|
29
|
-
recorded_at:
|
32
|
+
recorded_at: Mon, 07 Oct 2013 00:47:13 GMT
|
30
33
|
- request:
|
31
34
|
method: post
|
32
|
-
uri: http://
|
35
|
+
uri: http://unix/v1.4/containers/3aecf08d8d31/start
|
33
36
|
body:
|
34
|
-
encoding:
|
35
|
-
string: ''
|
37
|
+
encoding: UTF-8
|
38
|
+
string: ! '{}'
|
36
39
|
headers:
|
37
|
-
Content-Type:
|
38
|
-
- text/plain
|
39
40
|
User-Agent:
|
40
|
-
- Swipely/Docker-API 1.
|
41
|
+
- Swipely/Docker-API 1.5.4
|
42
|
+
Content-Type:
|
43
|
+
- application/json
|
41
44
|
response:
|
42
45
|
status:
|
43
46
|
code: 204
|
44
47
|
message: ''
|
45
48
|
headers:
|
46
|
-
|
47
|
-
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
49
|
+
!binary "Q29udGVudC1UeXBl":
|
50
|
+
- !binary |-
|
51
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
52
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
53
|
+
- !binary |-
|
54
|
+
MA==
|
55
|
+
!binary "RGF0ZQ==":
|
56
|
+
- !binary |-
|
57
|
+
TW9uLCAwNyBPY3QgMjAxMyAwMDo0NzoxMyBHTVQ=
|
52
58
|
body:
|
53
|
-
encoding:
|
59
|
+
encoding: US-ASCII
|
54
60
|
string: ''
|
55
61
|
http_version:
|
56
|
-
recorded_at:
|
62
|
+
recorded_at: Mon, 07 Oct 2013 00:47:13 GMT
|
57
63
|
- request:
|
58
64
|
method: post
|
59
|
-
uri: http://
|
65
|
+
uri: http://unix/v1.4/containers/3aecf08d8d31/wait
|
60
66
|
body:
|
61
67
|
encoding: US-ASCII
|
62
68
|
string: ''
|
63
69
|
headers:
|
70
|
+
User-Agent:
|
71
|
+
- Swipely/Docker-API 1.5.4
|
64
72
|
Content-Type:
|
65
73
|
- text/plain
|
66
|
-
User-Agent:
|
67
|
-
- Swipely/Docker-API 1.3.1
|
68
74
|
response:
|
69
75
|
status:
|
70
76
|
code: 200
|
71
77
|
message: ''
|
72
78
|
headers:
|
73
|
-
|
74
|
-
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
+
!binary "Q29udGVudC1UeXBl":
|
80
|
+
- !binary |-
|
81
|
+
YXBwbGljYXRpb24vanNvbg==
|
82
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
83
|
+
- !binary |-
|
84
|
+
MTY=
|
85
|
+
!binary "RGF0ZQ==":
|
86
|
+
- !binary |-
|
87
|
+
TW9uLCAwNyBPY3QgMjAxMyAwMDo0NzoxMyBHTVQ=
|
79
88
|
body:
|
80
|
-
encoding:
|
81
|
-
string: '{"StatusCode":0}'
|
89
|
+
encoding: US-ASCII
|
90
|
+
string: ! '{"StatusCode":0}'
|
82
91
|
http_version:
|
83
|
-
recorded_at:
|
92
|
+
recorded_at: Mon, 07 Oct 2013 00:47:13 GMT
|
84
93
|
- request:
|
85
94
|
method: get
|
86
|
-
uri: http://
|
95
|
+
uri: http://unix/v1.4/containers/3aecf08d8d31/changes
|
87
96
|
body:
|
88
97
|
encoding: US-ASCII
|
89
98
|
string: ''
|
90
99
|
headers:
|
100
|
+
User-Agent:
|
101
|
+
- Swipely/Docker-API 1.5.4
|
91
102
|
Content-Type:
|
92
103
|
- text/plain
|
93
|
-
User-Agent:
|
94
|
-
- Swipely/Docker-API 1.3.1
|
95
104
|
response:
|
96
105
|
status:
|
97
106
|
code: 200
|
98
107
|
message: ''
|
99
108
|
headers:
|
100
|
-
|
101
|
-
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
109
|
+
!binary "Q29udGVudC1UeXBl":
|
110
|
+
- !binary |-
|
111
|
+
YXBwbGljYXRpb24vanNvbg==
|
112
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
113
|
+
- !binary |-
|
114
|
+
ODI=
|
115
|
+
!binary "RGF0ZQ==":
|
116
|
+
- !binary |-
|
117
|
+
TW9uLCAwNyBPY3QgMjAxMyAwMDo0NzoxMyBHTVQ=
|
106
118
|
body:
|
107
|
-
encoding:
|
108
|
-
string: '[{"Path":"/root","Kind":2}]'
|
119
|
+
encoding: US-ASCII
|
120
|
+
string: ! '[{"Path":"/root","Kind":2},{"Path":"/dev","Kind":0},{"Path":"/dev/kmsg","Kind":1}]'
|
109
121
|
http_version:
|
110
|
-
recorded_at:
|
111
|
-
recorded_with: VCR 2.
|
122
|
+
recorded_at: Mon, 07 Oct 2013 00:47:13 GMT
|
123
|
+
recorded_with: VCR 2.6.0
|
@@ -2,83 +2,92 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://
|
5
|
+
uri: http://unix/v1.4/containers/create
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"Cmd":["true"],"Image":"base"}'
|
8
|
+
string: ! '{"Cmd":["true"],"Image":"base"}'
|
9
9
|
headers:
|
10
|
-
Content-Type:
|
11
|
-
- text/plain
|
12
10
|
User-Agent:
|
13
|
-
- Swipely/Docker-API 1.
|
11
|
+
- Swipely/Docker-API 1.5.4
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 201
|
17
17
|
message: ''
|
18
18
|
headers:
|
19
|
-
|
20
|
-
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
19
|
+
!binary "Q29udGVudC1UeXBl":
|
20
|
+
- !binary |-
|
21
|
+
YXBwbGljYXRpb24vanNvbg==
|
22
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
23
|
+
- !binary |-
|
24
|
+
NjU=
|
25
|
+
!binary "RGF0ZQ==":
|
26
|
+
- !binary |-
|
27
|
+
TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo0MCBHTVQ=
|
25
28
|
body:
|
26
|
-
encoding:
|
27
|
-
string: '{"Id":"
|
29
|
+
encoding: US-ASCII
|
30
|
+
string: ! '{"Id":"b22a5da9949c","Warnings":["IPv4 forwarding is disabled."]}'
|
28
31
|
http_version:
|
29
|
-
recorded_at:
|
32
|
+
recorded_at: Mon, 07 Oct 2013 00:47:40 GMT
|
30
33
|
- request:
|
31
34
|
method: post
|
32
|
-
uri: http://
|
35
|
+
uri: http://unix/v1.4/containers/b22a5da9949c/start
|
33
36
|
body:
|
34
|
-
encoding:
|
35
|
-
string: ''
|
37
|
+
encoding: UTF-8
|
38
|
+
string: ! '{}'
|
36
39
|
headers:
|
37
|
-
Content-Type:
|
38
|
-
- text/plain
|
39
40
|
User-Agent:
|
40
|
-
- Swipely/Docker-API 1.
|
41
|
+
- Swipely/Docker-API 1.5.4
|
42
|
+
Content-Type:
|
43
|
+
- application/json
|
41
44
|
response:
|
42
45
|
status:
|
43
46
|
code: 204
|
44
47
|
message: ''
|
45
48
|
headers:
|
46
|
-
|
47
|
-
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
49
|
+
!binary "Q29udGVudC1UeXBl":
|
50
|
+
- !binary |-
|
51
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
52
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
53
|
+
- !binary |-
|
54
|
+
MA==
|
55
|
+
!binary "RGF0ZQ==":
|
56
|
+
- !binary |-
|
57
|
+
TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo0MCBHTVQ=
|
52
58
|
body:
|
53
|
-
encoding:
|
59
|
+
encoding: US-ASCII
|
54
60
|
string: ''
|
55
61
|
http_version:
|
56
|
-
recorded_at:
|
62
|
+
recorded_at: Mon, 07 Oct 2013 00:47:40 GMT
|
57
63
|
- request:
|
58
64
|
method: post
|
59
|
-
uri: http://
|
65
|
+
uri: http://unix/v1.4/commit?container=b22a5da9
|
60
66
|
body:
|
61
67
|
encoding: US-ASCII
|
62
68
|
string: ''
|
63
69
|
headers:
|
70
|
+
User-Agent:
|
71
|
+
- Swipely/Docker-API 1.5.4
|
64
72
|
Content-Type:
|
65
73
|
- text/plain
|
66
|
-
User-Agent:
|
67
|
-
- Swipely/Docker-API 1.3.1
|
68
74
|
response:
|
69
75
|
status:
|
70
76
|
code: 201
|
71
77
|
message: ''
|
72
78
|
headers:
|
73
|
-
|
74
|
-
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
+
!binary "Q29udGVudC1UeXBl":
|
80
|
+
- !binary |-
|
81
|
+
YXBwbGljYXRpb24vanNvbg==
|
82
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
83
|
+
- !binary |-
|
84
|
+
MjE=
|
85
|
+
!binary "RGF0ZQ==":
|
86
|
+
- !binary |-
|
87
|
+
TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo0MCBHTVQ=
|
79
88
|
body:
|
80
|
-
encoding:
|
81
|
-
string: '{"Id":"
|
89
|
+
encoding: US-ASCII
|
90
|
+
string: ! '{"Id":"6218f82de6de"}'
|
82
91
|
http_version:
|
83
|
-
recorded_at:
|
84
|
-
recorded_with: VCR 2.
|
92
|
+
recorded_at: Mon, 07 Oct 2013 00:47:40 GMT
|
93
|
+
recorded_with: VCR 2.6.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://
|
5
|
+
uri: http://unix/v1.4/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.5.
|
11
|
+
- Swipely/Docker-API 1.5.4
|
12
12
|
Content-Type:
|
13
13
|
- text/plain
|
14
14
|
response:
|
@@ -16,29 +16,32 @@ http_interactions:
|
|
16
16
|
code: 200
|
17
17
|
message: ''
|
18
18
|
headers:
|
19
|
-
|
20
|
-
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
19
|
+
!binary "Q29udGVudC1UeXBl":
|
20
|
+
- !binary |-
|
21
|
+
YXBwbGljYXRpb24vanNvbg==
|
22
|
+
!binary "RGF0ZQ==":
|
23
|
+
- !binary |-
|
24
|
+
TW9uLCAwNyBPY3QgMjAxMyAwMDo0NzoxMyBHTVQ=
|
25
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
26
|
+
- !binary |-
|
27
|
+
Y2h1bmtlZA==
|
25
28
|
body:
|
26
|
-
encoding:
|
27
|
-
string: '{"status":"Pulling repository base"}{"status":"Pulling","progress":"image
|
29
|
+
encoding: US-ASCII
|
30
|
+
string: ! '{"status":"Pulling repository base"}{"status":"Pulling","progress":"image
|
28
31
|
(ubuntu-quantl) from base","id":"b750fe79269d"}{"status":"Pulling","progress":"image
|
29
32
|
(ubuntu-quantl) from base, endpoint: https://cdn-registry-1.docker.io/v1/","id":"b750fe79269d"}{"status":"Pulling","progress":"dependend
|
30
33
|
layers","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"27cf78414709"}{"status":"Download","progress":"complete","id":"b750fe79269d"}'
|
31
34
|
http_version:
|
32
|
-
recorded_at:
|
35
|
+
recorded_at: Mon, 07 Oct 2013 00:47:15 GMT
|
33
36
|
- request:
|
34
37
|
method: post
|
35
|
-
uri: http://
|
38
|
+
uri: http://unix/v1.4/containers/create
|
36
39
|
body:
|
37
40
|
encoding: UTF-8
|
38
|
-
string: '{"Image":"base","Cmd":["ls"]}'
|
41
|
+
string: ! '{"Image":"base","Cmd":["ls"]}'
|
39
42
|
headers:
|
40
43
|
User-Agent:
|
41
|
-
- Swipely/Docker-API 1.5.
|
44
|
+
- Swipely/Docker-API 1.5.4
|
42
45
|
Content-Type:
|
43
46
|
- application/json
|
44
47
|
response:
|
@@ -46,26 +49,29 @@ http_interactions:
|
|
46
49
|
code: 201
|
47
50
|
message: ''
|
48
51
|
headers:
|
49
|
-
|
50
|
-
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
52
|
+
!binary "Q29udGVudC1UeXBl":
|
53
|
+
- !binary |-
|
54
|
+
YXBwbGljYXRpb24vanNvbg==
|
55
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
56
|
+
- !binary |-
|
57
|
+
NjU=
|
58
|
+
!binary "RGF0ZQ==":
|
59
|
+
- !binary |-
|
60
|
+
TW9uLCAwNyBPY3QgMjAxMyAwMDo0NzoxNSBHTVQ=
|
55
61
|
body:
|
56
|
-
encoding:
|
57
|
-
string: '{"Id":"
|
62
|
+
encoding: US-ASCII
|
63
|
+
string: ! '{"Id":"0b545bc9f0f0","Warnings":["IPv4 forwarding is disabled."]}'
|
58
64
|
http_version:
|
59
|
-
recorded_at:
|
65
|
+
recorded_at: Mon, 07 Oct 2013 00:47:15 GMT
|
60
66
|
- request:
|
61
67
|
method: post
|
62
|
-
uri: http://
|
68
|
+
uri: http://unix/v1.4/containers/0b545bc9f0f0/start
|
63
69
|
body:
|
64
70
|
encoding: UTF-8
|
65
|
-
string: '{}'
|
71
|
+
string: ! '{}'
|
66
72
|
headers:
|
67
73
|
User-Agent:
|
68
|
-
- Swipely/Docker-API 1.5.
|
74
|
+
- Swipely/Docker-API 1.5.4
|
69
75
|
Content-Type:
|
70
76
|
- application/json
|
71
77
|
response:
|
@@ -73,26 +79,29 @@ http_interactions:
|
|
73
79
|
code: 204
|
74
80
|
message: ''
|
75
81
|
headers:
|
76
|
-
|
77
|
-
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
+
!binary "Q29udGVudC1UeXBl":
|
83
|
+
- !binary |-
|
84
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
85
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
86
|
+
- !binary |-
|
87
|
+
MA==
|
88
|
+
!binary "RGF0ZQ==":
|
89
|
+
- !binary |-
|
90
|
+
TW9uLCAwNyBPY3QgMjAxMyAwMDo0NzoxNSBHTVQ=
|
82
91
|
body:
|
83
|
-
encoding:
|
92
|
+
encoding: US-ASCII
|
84
93
|
string: ''
|
85
94
|
http_version:
|
86
|
-
recorded_at:
|
95
|
+
recorded_at: Mon, 07 Oct 2013 00:47:15 GMT
|
87
96
|
- request:
|
88
97
|
method: post
|
89
|
-
uri: http://
|
98
|
+
uri: http://unix/v1.4/containers/0b545bc9f0f0/copy
|
90
99
|
body:
|
91
100
|
encoding: UTF-8
|
92
|
-
string: '{"Resource":"/lol/not/a/real/file"}'
|
101
|
+
string: ! '{"Resource":"/lol/not/a/real/file"}'
|
93
102
|
headers:
|
94
103
|
User-Agent:
|
95
|
-
- Swipely/Docker-API 1.5.
|
104
|
+
- Swipely/Docker-API 1.5.4
|
96
105
|
Content-Type:
|
97
106
|
- application/json
|
98
107
|
response:
|
@@ -100,16 +109,21 @@ http_interactions:
|
|
100
109
|
code: 500
|
101
110
|
message: ''
|
102
111
|
headers:
|
103
|
-
|
104
|
-
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
112
|
+
!binary "Q29udGVudC1UeXBl":
|
113
|
+
- !binary |-
|
114
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
115
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
116
|
+
- !binary |-
|
117
|
+
MTUx
|
118
|
+
!binary "RGF0ZQ==":
|
119
|
+
- !binary |-
|
120
|
+
TW9uLCAwNyBPY3QgMjAxMyAwMDo0NzoxNSBHTVQ=
|
109
121
|
body:
|
110
|
-
encoding:
|
111
|
-
string:
|
112
|
-
|
122
|
+
encoding: US-ASCII
|
123
|
+
string: ! 'stat /var/lib/docker/containers/0b545bc9f0f0f207207b62f7f19ea1c3e3d93993aefa38e14c66f06ce5559279/rootfs/lol/not/a/real/file:
|
124
|
+
no such file or directory
|
125
|
+
|
126
|
+
'
|
113
127
|
http_version:
|
114
|
-
recorded_at:
|
115
|
-
recorded_with: VCR 2.
|
128
|
+
recorded_at: Mon, 07 Oct 2013 00:47:15 GMT
|
129
|
+
recorded_with: VCR 2.6.0
|