docker-api 0.0.6 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.cane +1 -0
- data/README.md +4 -3
- data/docker-api.gemspec +0 -2
- data/lib/docker.rb +0 -3
- data/lib/docker/connection.rb +1 -1
- data/lib/docker/container.rb +2 -2
- data/lib/docker/image.rb +56 -48
- data/lib/docker/version.rb +1 -1
- data/spec/docker/container_spec.rb +1 -1
- data/spec/docker/image_spec.rb +33 -40
- data/spec/fixtures/Dockerfile +1 -1
- data/spec/vcr/Docker_Image/_all/when_the_HTTP_response_is_a_200/materializes_each_Image_into_a_Docker_Image.yml +63 -0
- data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/builds_an_image.yml +39 -32
- data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml +40 -22
- data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/builds_the_image.yml +122 -0
- data/spec/vcr/Docker_Image/_create_/when_the_Image_does_not_yet_exist_and_the_body_is_a_Hash/when_the_HTTP_request_returns_a_200/sets_the_id.yml +10 -10
- data/spec/vcr/Docker_Image/_history/when_the_Image_has_been_created/when_the_HTTP_response_status_is_200/returns_the_history_of_the_Image.yml +18 -16
- data/spec/vcr/Docker_Image/{_create_from_file/when_the_file_does_exist/when_the_Image_has_not_been_created → _import/when_the_file_does_exist}/creates_the_Image.yml +9 -9
- data/spec/vcr/Docker_Image/_insert/when_the_Image_has_been_created/when_the_HTTP_response_status_is_200/inserts_the_url_s_file_into_a_new_Image.yml +76 -57
- data/spec/vcr/Docker_Image/_json/when_the_Image_has_been_created/when_the_HTTP_response_status_is_200/returns_additional_information_about_image_image.yml +18 -17
- data/spec/vcr/Docker_Image/_remove/when_the_Image_has_been_created/when_the_HTTP_response_status_is_204/nils_out_the_id.yml +18 -16
- data/spec/vcr/Docker_Image/_search/when_the_HTTP_response_is_a_200/{materializes_each_Container_into_a_Docker_Container.yml → materializes_each_Image_into_a_Docker_Image.yml} +15 -13
- data/spec/vcr/Docker_Image/_tag/when_the_Image_has_been_created/when_the_HTTP_response_status_is_200/tags_the_image_with_the_repo_name.yml +16 -14
- metadata +16 -44
- data/lib/docker/multipart.rb +0 -31
- data/spec/vcr/Docker_Image/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml +0 -61
- data/spec/vcr/Docker_Image/_build_from_file/with_a_valid_Dockerfile/builds_the_image.yml +0 -179
|
@@ -2,44 +2,51 @@
|
|
|
2
2
|
http_interactions:
|
|
3
3
|
- request:
|
|
4
4
|
method: post
|
|
5
|
-
uri: http://localhost:4243/build
|
|
5
|
+
uri: http://localhost:4243/v1.3/build
|
|
6
6
|
body:
|
|
7
|
-
encoding:
|
|
8
|
-
string: !
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: !binary |-
|
|
9
|
+
RG9ja2VyZmlsZQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
10
|
+
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
11
|
+
AAAAAAAAAAAAADAxMDA2NjQAMDAwMTc1MAAwMDAxNzUwADAwMDAwMDAwMDEy
|
|
12
|
+
ADEyMTYxNjQ3NzcxADAxMDA0MAAgMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
13
|
+
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
14
|
+
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB1c3RhcgAwMAAAAAAA
|
|
15
|
+
AAAAA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AAAAAAAAAAAAAAAAAAAAAAAA
|
|
30
|
+
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
31
|
+
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==
|
|
32
|
+
headers: {}
|
|
21
33
|
response:
|
|
22
34
|
status:
|
|
23
35
|
code: 200
|
|
24
|
-
message:
|
|
36
|
+
message: ''
|
|
25
37
|
headers:
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
38
|
+
!binary "Q29udGVudC1UeXBl":
|
|
39
|
+
- !binary |-
|
|
40
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
|
41
|
+
!binary "RGF0ZQ==":
|
|
42
|
+
- !binary |-
|
|
43
|
+
U3VuLCAyMyBKdW4gMjAxMyAxOTo0Mzo1MyBHTVQ=
|
|
44
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
|
45
|
+
- !binary |-
|
|
46
|
+
Y2h1bmtlZA==
|
|
32
47
|
body:
|
|
33
48
|
encoding: US-ASCII
|
|
34
|
-
string: !
|
|
35
|
-
|
|
36
|
-
===> b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc
|
|
37
|
-
|
|
38
|
-
Build successful.
|
|
39
|
-
|
|
40
|
-
===> b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc
|
|
41
|
-
|
|
42
|
-
'
|
|
49
|
+
string: ! "Step 1 : FROM base\n ---> b750fe79269d\nSuccessfully built b750fe79269d\n"
|
|
43
50
|
http_version:
|
|
44
|
-
recorded_at:
|
|
51
|
+
recorded_at: Sun, 23 Jun 2013 19:43:53 GMT
|
|
45
52
|
recorded_with: VCR 2.5.0
|
data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml
CHANGED
|
@@ -2,37 +2,55 @@
|
|
|
2
2
|
http_interactions:
|
|
3
3
|
- request:
|
|
4
4
|
method: post
|
|
5
|
-
uri: http://localhost:4243/build
|
|
5
|
+
uri: http://localhost:4243/v1.3/build
|
|
6
6
|
body:
|
|
7
|
-
encoding:
|
|
8
|
-
string: !
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: !binary |-
|
|
9
|
+
RG9ja2VyZmlsZQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
10
|
+
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
11
|
+
AAAAAAAAAAAAADAxMDA2NjQAMDAwMTc1MAAwMDAxNzUwADAwMDAwMDAwMDA3
|
|
12
|
+
ADEyMTYxNjQ3NzcxADAxMDA0NAAgMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
13
|
+
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
14
|
+
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB1c3RhcgAwMAAAAAAA
|
|
15
|
+
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
16
|
+
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
17
|
+
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
18
|
+
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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
|
-
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
38
|
+
!binary "Q29udGVudC1UeXBl":
|
|
39
|
+
- !binary |-
|
|
40
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
|
41
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
|
42
|
+
- !binary |-
|
|
43
|
+
NjU=
|
|
44
|
+
!binary "RGF0ZQ==":
|
|
45
|
+
- !binary |-
|
|
46
|
+
U3VuLCAyMyBKdW4gMjAxMyAxOTo0Mzo1MyBHTVQ=
|
|
31
47
|
body:
|
|
32
48
|
encoding: US-ASCII
|
|
33
49
|
string: ! 'Error build: Invalid Dockerfile format
|
|
34
50
|
|
|
51
|
+
Invalid Dockerfile format
|
|
52
|
+
|
|
35
53
|
'
|
|
36
54
|
http_version:
|
|
37
|
-
recorded_at:
|
|
55
|
+
recorded_at: Sun, 23 Jun 2013 19:43:53 GMT
|
|
38
56
|
recorded_with: VCR 2.5.0
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: http://localhost:4243/v1.3/build
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Content-Type:
|
|
11
|
+
- application/tar
|
|
12
|
+
Transfer-Encoding:
|
|
13
|
+
- chunked
|
|
14
|
+
response:
|
|
15
|
+
status:
|
|
16
|
+
code: 200
|
|
17
|
+
message:
|
|
18
|
+
headers:
|
|
19
|
+
!binary "Q29udGVudC1UeXBl":
|
|
20
|
+
- !binary |-
|
|
21
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
|
22
|
+
!binary "RGF0ZQ==":
|
|
23
|
+
- !binary |-
|
|
24
|
+
U3VuLCAyMyBKdW4gMjAxMyAyMTowMjo1NiBHTVQ=
|
|
25
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
|
26
|
+
- !binary |-
|
|
27
|
+
Y2h1bmtlZA==
|
|
28
|
+
body:
|
|
29
|
+
encoding: US-ASCII
|
|
30
|
+
string: ! "Step 1 : FROM base\n ---> b750fe79269d\nStep 2 : ADD / /\n ---> 1af274a69a02\nSuccessfully
|
|
31
|
+
built 1af274a69a02\n"
|
|
32
|
+
http_version:
|
|
33
|
+
recorded_at: Sun, 23 Jun 2013 21:02:56 GMT
|
|
34
|
+
- request:
|
|
35
|
+
method: post
|
|
36
|
+
uri: http://localhost:4243/containers/create
|
|
37
|
+
body:
|
|
38
|
+
encoding: UTF-8
|
|
39
|
+
string: ! '{"Image":"1af274a69a02","Cmd":["cat","/Dockerfile"]}'
|
|
40
|
+
headers:
|
|
41
|
+
Content-Type:
|
|
42
|
+
- text/plain
|
|
43
|
+
User-Agent:
|
|
44
|
+
- Docker-Client/0.4.6
|
|
45
|
+
response:
|
|
46
|
+
status:
|
|
47
|
+
code: 201
|
|
48
|
+
message:
|
|
49
|
+
headers:
|
|
50
|
+
!binary "Q29udGVudC1UeXBl":
|
|
51
|
+
- !binary |-
|
|
52
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
|
53
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
|
54
|
+
- !binary |-
|
|
55
|
+
MjE=
|
|
56
|
+
!binary "RGF0ZQ==":
|
|
57
|
+
- !binary |-
|
|
58
|
+
U3VuLCAyMyBKdW4gMjAxMyAyMTowMjo1NiBHTVQ=
|
|
59
|
+
body:
|
|
60
|
+
encoding: US-ASCII
|
|
61
|
+
string: ! '{"Id":"3f2906019afc"}'
|
|
62
|
+
http_version:
|
|
63
|
+
recorded_at: Sun, 23 Jun 2013 21:02:56 GMT
|
|
64
|
+
- request:
|
|
65
|
+
method: post
|
|
66
|
+
uri: http://localhost:4243/containers/3f2906019afc/start
|
|
67
|
+
body:
|
|
68
|
+
encoding: US-ASCII
|
|
69
|
+
string: ''
|
|
70
|
+
headers:
|
|
71
|
+
Content-Type:
|
|
72
|
+
- text/plain
|
|
73
|
+
User-Agent:
|
|
74
|
+
- Docker-Client/0.4.6
|
|
75
|
+
response:
|
|
76
|
+
status:
|
|
77
|
+
code: 204
|
|
78
|
+
message:
|
|
79
|
+
headers:
|
|
80
|
+
!binary "Q29udGVudC1UeXBl":
|
|
81
|
+
- !binary |-
|
|
82
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
|
83
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
|
84
|
+
- !binary |-
|
|
85
|
+
MA==
|
|
86
|
+
!binary "RGF0ZQ==":
|
|
87
|
+
- !binary |-
|
|
88
|
+
U3VuLCAyMyBKdW4gMjAxMyAyMTowMjo1NiBHTVQ=
|
|
89
|
+
body:
|
|
90
|
+
encoding: US-ASCII
|
|
91
|
+
string: ''
|
|
92
|
+
http_version:
|
|
93
|
+
recorded_at: Sun, 23 Jun 2013 21:02:56 GMT
|
|
94
|
+
- request:
|
|
95
|
+
method: post
|
|
96
|
+
uri: http://localhost:4243/containers/3f2906019afc/attach?stream=true&stdout=true&stderr=true
|
|
97
|
+
body:
|
|
98
|
+
encoding: US-ASCII
|
|
99
|
+
string: ''
|
|
100
|
+
headers:
|
|
101
|
+
Content-Type:
|
|
102
|
+
- text/plain
|
|
103
|
+
User-Agent:
|
|
104
|
+
- Docker-Client/0.4.6
|
|
105
|
+
response:
|
|
106
|
+
status:
|
|
107
|
+
code: 200
|
|
108
|
+
message:
|
|
109
|
+
headers:
|
|
110
|
+
!binary "Q29udGVudC1UeXBl":
|
|
111
|
+
- !binary |-
|
|
112
|
+
YXBwbGljYXRpb24vdm5kLmRvY2tlci5yYXctc3RyZWFt
|
|
113
|
+
body:
|
|
114
|
+
encoding: US-ASCII
|
|
115
|
+
string: ! 'from base
|
|
116
|
+
|
|
117
|
+
add / /
|
|
118
|
+
|
|
119
|
+
'
|
|
120
|
+
http_version:
|
|
121
|
+
recorded_at: Sun, 23 Jun 2013 21:02:56 GMT
|
|
122
|
+
recorded_with: VCR 2.5.0
|
|
@@ -2,15 +2,13 @@
|
|
|
2
2
|
http_interactions:
|
|
3
3
|
- request:
|
|
4
4
|
method: post
|
|
5
|
-
uri: http://localhost:4243/images/create?
|
|
5
|
+
uri: http://localhost:4243/v1.3/images/create?fromImage=base
|
|
6
6
|
body:
|
|
7
7
|
encoding: US-ASCII
|
|
8
8
|
string: ''
|
|
9
9
|
headers:
|
|
10
|
-
Content-Type:
|
|
11
|
-
- text/plain
|
|
12
10
|
User-Agent:
|
|
13
|
-
- Docker-Client/
|
|
11
|
+
- Docker-Client/0.4.6
|
|
14
12
|
response:
|
|
15
13
|
status:
|
|
16
14
|
code: 200
|
|
@@ -19,15 +17,17 @@ http_interactions:
|
|
|
19
17
|
!binary "Q29udGVudC1UeXBl":
|
|
20
18
|
- !binary |-
|
|
21
19
|
YXBwbGljYXRpb24vanNvbg==
|
|
22
|
-
!binary "Q29udGVudC1MZW5ndGg=":
|
|
23
|
-
- !binary |-
|
|
24
|
-
MjU=
|
|
25
20
|
!binary "RGF0ZQ==":
|
|
26
21
|
- !binary |-
|
|
27
|
-
|
|
22
|
+
U3VuLCAyMyBKdW4gMjAxMyAxOTo0MzozOSBHTVQ=
|
|
23
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
|
24
|
+
- !binary |-
|
|
25
|
+
Y2h1bmtlZA==
|
|
28
26
|
body:
|
|
29
27
|
encoding: US-ASCII
|
|
30
|
-
string: ! '{"status":"
|
|
28
|
+
string: ! '{"status":"Pulling repository base from https://index.docker.io/v1"}{"status":"Pulling
|
|
29
|
+
image 27cf784147099545 () from base"}{"status":"Pulling image b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc
|
|
30
|
+
(ubuntu-quantl) from base"}'
|
|
31
31
|
http_version:
|
|
32
|
-
recorded_at:
|
|
32
|
+
recorded_at: Sun, 23 Jun 2013 19:43:40 GMT
|
|
33
33
|
recorded_with: VCR 2.5.0
|
|
@@ -2,15 +2,13 @@
|
|
|
2
2
|
http_interactions:
|
|
3
3
|
- request:
|
|
4
4
|
method: post
|
|
5
|
-
uri: http://localhost:4243/images/create?
|
|
5
|
+
uri: http://localhost:4243/v1.3/images/create?fromImage=base
|
|
6
6
|
body:
|
|
7
7
|
encoding: US-ASCII
|
|
8
8
|
string: ''
|
|
9
9
|
headers:
|
|
10
|
-
Content-Type:
|
|
11
|
-
- text/plain
|
|
12
10
|
User-Agent:
|
|
13
|
-
- Docker-Client/
|
|
11
|
+
- Docker-Client/0.4.6
|
|
14
12
|
response:
|
|
15
13
|
status:
|
|
16
14
|
code: 200
|
|
@@ -19,26 +17,30 @@ http_interactions:
|
|
|
19
17
|
!binary "Q29udGVudC1UeXBl":
|
|
20
18
|
- !binary |-
|
|
21
19
|
YXBwbGljYXRpb24vanNvbg==
|
|
22
|
-
!binary "Q29udGVudC1MZW5ndGg=":
|
|
23
|
-
- !binary |-
|
|
24
|
-
MjU=
|
|
25
20
|
!binary "RGF0ZQ==":
|
|
26
21
|
- !binary |-
|
|
27
|
-
|
|
22
|
+
U3VuLCAyMyBKdW4gMjAxMyAxOTo0Mzo0OCBHTVQ=
|
|
23
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
|
24
|
+
- !binary |-
|
|
25
|
+
Y2h1bmtlZA==
|
|
28
26
|
body:
|
|
29
27
|
encoding: US-ASCII
|
|
30
|
-
string: ! '{"status":"
|
|
28
|
+
string: ! '{"status":"Pulling repository base from https://index.docker.io/v1"}{"status":"Pulling
|
|
29
|
+
image 27cf784147099545 () from base"}{"status":"Pulling image b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc
|
|
30
|
+
(ubuntu-quantl) from base"}'
|
|
31
31
|
http_version:
|
|
32
|
-
recorded_at:
|
|
32
|
+
recorded_at: Sun, 23 Jun 2013 19:43:49 GMT
|
|
33
33
|
- request:
|
|
34
34
|
method: get
|
|
35
|
-
uri: http://localhost:4243/images/
|
|
35
|
+
uri: http://localhost:4243/images/base/history
|
|
36
36
|
body:
|
|
37
37
|
encoding: US-ASCII
|
|
38
38
|
string: ''
|
|
39
39
|
headers:
|
|
40
40
|
Content-Type:
|
|
41
|
-
-
|
|
41
|
+
- text/plain
|
|
42
|
+
User-Agent:
|
|
43
|
+
- Docker-Client/0.4.6
|
|
42
44
|
response:
|
|
43
45
|
status:
|
|
44
46
|
code: 200
|
|
@@ -49,13 +51,13 @@ http_interactions:
|
|
|
49
51
|
YXBwbGljYXRpb24vanNvbg==
|
|
50
52
|
!binary "Q29udGVudC1MZW5ndGg=":
|
|
51
53
|
- !binary |-
|
|
52
|
-
|
|
54
|
+
MjQ0
|
|
53
55
|
!binary "RGF0ZQ==":
|
|
54
56
|
- !binary |-
|
|
55
|
-
|
|
57
|
+
U3VuLCAyMyBKdW4gMjAxMyAxOTo0Mzo0OSBHTVQ=
|
|
56
58
|
body:
|
|
57
59
|
encoding: US-ASCII
|
|
58
|
-
string: ! '[{"Id":"
|
|
60
|
+
string: ! '[{"Id":"b750fe79269d","Tags":["base:latest","base:ubuntu-12.10","base:ubuntu-quantal","base:ubuntu-quantl","base2:latest","ubuntu:12.10","ubuntu:quantal"],"Created":1364102658,"CreatedBy":"/bin/bash"},{"Id":"27cf78414709","Created":1364068391}]'
|
|
59
61
|
http_version:
|
|
60
|
-
recorded_at:
|
|
62
|
+
recorded_at: Sun, 23 Jun 2013 19:43:49 GMT
|
|
61
63
|
recorded_with: VCR 2.5.0
|
|
@@ -2,15 +2,13 @@
|
|
|
2
2
|
http_interactions:
|
|
3
3
|
- request:
|
|
4
4
|
method: post
|
|
5
|
-
uri: http://localhost:4243/images/create?fromSrc=-
|
|
5
|
+
uri: http://localhost:4243/v1.3/images/create?fromSrc=-
|
|
6
6
|
body:
|
|
7
7
|
encoding: US-ASCII
|
|
8
8
|
string: ''
|
|
9
9
|
headers:
|
|
10
|
-
Content-Type:
|
|
11
|
-
- text/plain
|
|
12
10
|
User-Agent:
|
|
13
|
-
- Docker-Client/
|
|
11
|
+
- Docker-Client/0.4.6
|
|
14
12
|
response:
|
|
15
13
|
status:
|
|
16
14
|
code: 200
|
|
@@ -18,16 +16,18 @@ http_interactions:
|
|
|
18
16
|
headers:
|
|
19
17
|
!binary "Q29udGVudC1UeXBl":
|
|
20
18
|
- !binary |-
|
|
21
|
-
|
|
19
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
|
22
20
|
!binary "Q29udGVudC1MZW5ndGg=":
|
|
23
21
|
- !binary |-
|
|
24
|
-
|
|
22
|
+
NA==
|
|
25
23
|
!binary "RGF0ZQ==":
|
|
26
24
|
- !binary |-
|
|
27
|
-
|
|
25
|
+
U3VuLCAyMyBKdW4gMjAxMyAxOTo0Mzo1MCBHTVQ=
|
|
28
26
|
body:
|
|
29
27
|
encoding: US-ASCII
|
|
30
|
-
string: ! '
|
|
28
|
+
string: ! 'EOF
|
|
29
|
+
|
|
30
|
+
'
|
|
31
31
|
http_version:
|
|
32
|
-
recorded_at:
|
|
32
|
+
recorded_at: Sun, 23 Jun 2013 19:43:50 GMT
|
|
33
33
|
recorded_with: VCR 2.5.0
|
|
@@ -2,53 +2,66 @@
|
|
|
2
2
|
http_interactions:
|
|
3
3
|
- request:
|
|
4
4
|
method: post
|
|
5
|
-
uri: http://localhost:4243/build
|
|
5
|
+
uri: http://localhost:4243/v1.3/build
|
|
6
6
|
body:
|
|
7
|
-
encoding:
|
|
8
|
-
string: !
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: !binary |-
|
|
9
|
+
RG9ja2VyZmlsZQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
10
|
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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
25
|
+
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
26
|
+
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
27
|
+
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
28
|
+
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
29
|
+
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
30
|
+
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
31
|
+
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==
|
|
32
|
+
headers: {}
|
|
21
33
|
response:
|
|
22
34
|
status:
|
|
23
35
|
code: 200
|
|
24
|
-
message:
|
|
36
|
+
message: ''
|
|
25
37
|
headers:
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
38
|
+
!binary "Q29udGVudC1UeXBl":
|
|
39
|
+
- !binary |-
|
|
40
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
|
41
|
+
!binary "RGF0ZQ==":
|
|
42
|
+
- !binary |-
|
|
43
|
+
U3VuLCAyMyBKdW4gMjAxMyAxOTo0Mzo0MSBHTVQ=
|
|
44
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
|
45
|
+
- !binary |-
|
|
46
|
+
Y2h1bmtlZA==
|
|
32
47
|
body:
|
|
33
48
|
encoding: US-ASCII
|
|
34
|
-
string: !
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
Build successful.
|
|
39
|
-
|
|
40
|
-
===> b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc
|
|
41
|
-
|
|
42
|
-
'
|
|
49
|
+
string: ! "Step 1 : FROM base\nPulling repository base from https://index.docker.io/v1\r\nPulling
|
|
50
|
+
image 27cf784147099545 () from base\r\nPulling image b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc
|
|
51
|
+
(ubuntu-quantl) from base\r\n ---> b750fe79269d\nSuccessfully built b750fe79269d\n"
|
|
43
52
|
http_version:
|
|
44
|
-
recorded_at:
|
|
53
|
+
recorded_at: Sun, 23 Jun 2013 19:43:44 GMT
|
|
45
54
|
- request:
|
|
46
55
|
method: post
|
|
47
|
-
uri: http://localhost:4243/images/
|
|
56
|
+
uri: http://localhost:4243/images/b750fe79269d/insert?path=/stallman&url=http://stallman.org
|
|
48
57
|
body:
|
|
49
58
|
encoding: US-ASCII
|
|
50
59
|
string: ''
|
|
51
|
-
headers:
|
|
60
|
+
headers:
|
|
61
|
+
Content-Type:
|
|
62
|
+
- text/plain
|
|
63
|
+
User-Agent:
|
|
64
|
+
- Docker-Client/0.4.6
|
|
52
65
|
response:
|
|
53
66
|
status:
|
|
54
67
|
code: 200
|
|
@@ -59,34 +72,34 @@ http_interactions:
|
|
|
59
72
|
YXBwbGljYXRpb24vanNvbg==
|
|
60
73
|
!binary "RGF0ZQ==":
|
|
61
74
|
- !binary |-
|
|
62
|
-
|
|
75
|
+
U3VuLCAyMyBKdW4gMjAxMyAxOTo0Mzo0NCBHTVQ=
|
|
63
76
|
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
|
64
77
|
- !binary |-
|
|
65
78
|
Y2h1bmtlZA==
|
|
66
79
|
body:
|
|
67
80
|
encoding: US-ASCII
|
|
68
|
-
string: ! '{"status":"Downloading","progress":"
|
|
69
|
-
(
|
|
70
|
-
(
|
|
71
|
-
(
|
|
72
|
-
(
|
|
73
|
-
(
|
|
74
|
-
(
|
|
75
|
-
(
|
|
76
|
-
(100%)"}{}{"status":"
|
|
81
|
+
string: ! '{"status":"Downloading","progress":"4.104 kB/93.96 kB ( 4%)"}{"status":"Downloading","progress":"9.896
|
|
82
|
+
kB/93.96 kB (11%)"}{"status":"Downloading","progress":"17.14 kB/93.96 kB (18%)"}{"status":"Downloading","progress":"25.82
|
|
83
|
+
kB/93.96 kB (27%)"}{"status":"Downloading","progress":"31.62 kB/93.96 kB (34%)"}{"status":"Downloading","progress":"37.41
|
|
84
|
+
kB/93.96 kB (40%)"}{"status":"Downloading","progress":" 43.2 kB/93.96 kB (46%)"}{"status":"Downloading","progress":"48.99
|
|
85
|
+
kB/93.96 kB (52%)"}{"status":"Downloading","progress":"54.78 kB/93.96 kB (58%)"}{"status":"Downloading","progress":"59.13
|
|
86
|
+
kB/93.96 kB (63%)"}{"status":"Downloading","progress":"64.92 kB/93.96 kB (69%)"}{"status":"Downloading","progress":"70.71
|
|
87
|
+
kB/93.96 kB (75%)"}{"status":"Downloading","progress":"75.06 kB/93.96 kB (80%)"}{"status":"Downloading","progress":"80.85
|
|
88
|
+
kB/93.96 kB (86%)"}{"status":"Downloading","progress":"85.19 kB/93.96 kB (91%)"}{"status":"Downloading","progress":"90.98
|
|
89
|
+
kB/93.96 kB (97%)"}{"status":"Downloading","progress":"93.96 kB/93.96 kB (100%)"}{}{"status":"57cc3f241757e428ade3444a81364d5025f20d9da8dc37a306d84296f79480ff"}{"Id":"57cc3f241757"}'
|
|
77
90
|
http_version:
|
|
78
|
-
recorded_at:
|
|
91
|
+
recorded_at: Sun, 23 Jun 2013 19:43:45 GMT
|
|
79
92
|
- request:
|
|
80
93
|
method: post
|
|
81
94
|
uri: http://localhost:4243/containers/create
|
|
82
95
|
body:
|
|
83
96
|
encoding: UTF-8
|
|
84
|
-
string: ! '{"Image":"
|
|
97
|
+
string: ! '{"Image":"57cc3f241757","Cmd":["ls","/"]}'
|
|
85
98
|
headers:
|
|
86
99
|
Content-Type:
|
|
87
100
|
- text/plain
|
|
88
101
|
User-Agent:
|
|
89
|
-
- Docker-Client/
|
|
102
|
+
- Docker-Client/0.4.6
|
|
90
103
|
response:
|
|
91
104
|
status:
|
|
92
105
|
code: 201
|
|
@@ -100,21 +113,23 @@ http_interactions:
|
|
|
100
113
|
MjE=
|
|
101
114
|
!binary "RGF0ZQ==":
|
|
102
115
|
- !binary |-
|
|
103
|
-
|
|
116
|
+
U3VuLCAyMyBKdW4gMjAxMyAxOTo0Mzo0NSBHTVQ=
|
|
104
117
|
body:
|
|
105
118
|
encoding: US-ASCII
|
|
106
|
-
string: ! '{"Id":"
|
|
119
|
+
string: ! '{"Id":"41c5dc1c6ac9"}'
|
|
107
120
|
http_version:
|
|
108
|
-
recorded_at:
|
|
121
|
+
recorded_at: Sun, 23 Jun 2013 19:43:45 GMT
|
|
109
122
|
- request:
|
|
110
123
|
method: post
|
|
111
|
-
uri: http://localhost:4243/containers/
|
|
124
|
+
uri: http://localhost:4243/containers/41c5dc1c6ac9/start
|
|
112
125
|
body:
|
|
113
126
|
encoding: US-ASCII
|
|
114
127
|
string: ''
|
|
115
128
|
headers:
|
|
116
129
|
Content-Type:
|
|
117
|
-
-
|
|
130
|
+
- text/plain
|
|
131
|
+
User-Agent:
|
|
132
|
+
- Docker-Client/0.4.6
|
|
118
133
|
response:
|
|
119
134
|
status:
|
|
120
135
|
code: 204
|
|
@@ -128,19 +143,23 @@ http_interactions:
|
|
|
128
143
|
MA==
|
|
129
144
|
!binary "RGF0ZQ==":
|
|
130
145
|
- !binary |-
|
|
131
|
-
|
|
146
|
+
U3VuLCAyMyBKdW4gMjAxMyAxOTo0Mzo0NSBHTVQ=
|
|
132
147
|
body:
|
|
133
148
|
encoding: US-ASCII
|
|
134
149
|
string: ''
|
|
135
150
|
http_version:
|
|
136
|
-
recorded_at:
|
|
151
|
+
recorded_at: Sun, 23 Jun 2013 19:43:45 GMT
|
|
137
152
|
- request:
|
|
138
153
|
method: post
|
|
139
|
-
uri: http://localhost:4243/containers/
|
|
154
|
+
uri: http://localhost:4243/containers/41c5dc1c6ac9/attach?stdout=true&stream=true
|
|
140
155
|
body:
|
|
141
156
|
encoding: US-ASCII
|
|
142
157
|
string: ''
|
|
143
|
-
headers:
|
|
158
|
+
headers:
|
|
159
|
+
Content-Type:
|
|
160
|
+
- text/plain
|
|
161
|
+
User-Agent:
|
|
162
|
+
- Docker-Client/0.4.6
|
|
144
163
|
response:
|
|
145
164
|
status:
|
|
146
165
|
code: 200
|
|
@@ -195,5 +214,5 @@ http_interactions:
|
|
|
195
214
|
|
|
196
215
|
'
|
|
197
216
|
http_version:
|
|
198
|
-
recorded_at:
|
|
217
|
+
recorded_at: Sun, 23 Jun 2013 19:43:45 GMT
|
|
199
218
|
recorded_with: VCR 2.5.0
|