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,57 +2,65 @@
|
|
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
|
+
User-Agent:
|
11
|
+
- Swipely/Docker-API 1.5.4
|
10
12
|
Content-Type:
|
11
13
|
- text/plain
|
12
|
-
User-Agent:
|
13
|
-
- Swipely/Docker-API 1.3.1
|
14
14
|
response:
|
15
15
|
status:
|
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
|
+
TW9uLCAwNyBPY3QgMjAxMyAxNDo1NjozOCBHTVQ=
|
25
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
26
|
+
- !binary |-
|
27
|
+
Y2h1bmtlZA==
|
25
28
|
body:
|
26
|
-
encoding:
|
27
|
-
string: '{"status":"Pulling repository base"}{"status":"Pulling
|
28
|
-
(ubuntu-quantl) from base"}
|
29
|
+
encoding: US-ASCII
|
30
|
+
string: ! '{"status":"Pulling repository base"}{"status":"Pulling","progress":"image
|
31
|
+
(ubuntu-quantl) from base","id":"b750fe79269d"}{"status":"Pulling","progress":"image
|
32
|
+
(ubuntu-quantl) from base, endpoint: https://cdn-registry-1.docker.io/v1/","id":"b750fe79269d"}{"status":"Pulling","progress":"dependend
|
33
|
+
layers","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"27cf78414709"}{"status":"Download","progress":"complete","id":"b750fe79269d"}'
|
29
34
|
http_version:
|
30
|
-
recorded_at:
|
35
|
+
recorded_at: Mon, 07 Oct 2013 14:56:39 GMT
|
31
36
|
- request:
|
32
37
|
method: get
|
33
|
-
uri: http://
|
38
|
+
uri: http://unix/v1.4/images/json?all=true
|
34
39
|
body:
|
35
40
|
encoding: US-ASCII
|
36
41
|
string: ''
|
37
42
|
headers:
|
43
|
+
User-Agent:
|
44
|
+
- Swipely/Docker-API 1.5.4
|
38
45
|
Content-Type:
|
39
46
|
- text/plain
|
40
|
-
User-Agent:
|
41
|
-
- Swipely/Docker-API 1.3.1
|
42
47
|
response:
|
43
48
|
status:
|
44
49
|
code: 200
|
45
50
|
message: ''
|
46
51
|
headers:
|
47
|
-
|
48
|
-
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
52
|
+
!binary "Q29udGVudC1UeXBl":
|
53
|
+
- !binary |-
|
54
|
+
YXBwbGljYXRpb24vanNvbg==
|
55
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
56
|
+
- !binary |-
|
57
|
+
Nzc4
|
58
|
+
!binary "RGF0ZQ==":
|
59
|
+
- !binary |-
|
60
|
+
TW9uLCAwNyBPY3QgMjAxMyAxNDo1NjozOSBHTVQ=
|
53
61
|
body:
|
54
|
-
encoding:
|
55
|
-
string: '[{"Repository":"base","Tag":"latest","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":24653,"VirtualSize":180116135},{"Repository":"base","Tag":"ubuntu-12.10","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":24653,"VirtualSize":180116135},{"Repository":"base","Tag":"ubuntu-quantal","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":24653,"VirtualSize":180116135},{"Repository":"base","Tag":"ubuntu-quantl","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":24653,"VirtualSize":180116135},{"
|
62
|
+
encoding: US-ASCII
|
63
|
+
string: ! '[{"Repository":"base","Tag":"latest","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":24653,"VirtualSize":180116135},{"Repository":"base","Tag":"ubuntu-12.10","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":24653,"VirtualSize":180116135},{"Repository":"base","Tag":"ubuntu-quantal","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":24653,"VirtualSize":180116135},{"Repository":"base","Tag":"ubuntu-quantl","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":24653,"VirtualSize":180116135},{"Id":"27cf784147099545","Created":1364068391,"Size":180091482,"VirtualSize":180091482}]'
|
56
64
|
http_version:
|
57
|
-
recorded_at:
|
58
|
-
recorded_with: VCR 2.
|
65
|
+
recorded_at: Mon, 07 Oct 2013 14:56:39 GMT
|
66
|
+
recorded_with: VCR 2.6.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://
|
5
|
+
uri: http://unix/v1.4/build
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: !binary |-
|
@@ -53,27 +53,27 @@ http_interactions:
|
|
53
53
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
54
54
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
|
55
55
|
headers:
|
56
|
-
Content-Type:
|
57
|
-
- text/plain
|
58
56
|
User-Agent:
|
59
|
-
- Swipely/Docker-API 1.
|
57
|
+
- Swipely/Docker-API 1.5.4
|
58
|
+
Content-Type:
|
59
|
+
- application/json
|
60
60
|
response:
|
61
61
|
status:
|
62
62
|
code: 200
|
63
63
|
message: ''
|
64
64
|
headers:
|
65
|
-
|
66
|
-
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
65
|
+
!binary "Q29udGVudC1UeXBl":
|
66
|
+
- !binary |-
|
67
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
68
|
+
!binary "RGF0ZQ==":
|
69
|
+
- !binary |-
|
70
|
+
TW9uLCAwNyBPY3QgMjAxMyAwMDo0ODowMiBHTVQ=
|
71
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
72
|
+
- !binary |-
|
73
|
+
Y2h1bmtlZA==
|
71
74
|
body:
|
72
|
-
encoding:
|
73
|
-
string:
|
74
|
-
Step 1 : FROM base
|
75
|
-
---> b750fe79269d
|
76
|
-
Successfully built b750fe79269d
|
75
|
+
encoding: US-ASCII
|
76
|
+
string: ! "Step 1 : FROM base\n ---> b750fe79269d\nSuccessfully built b750fe79269d\n"
|
77
77
|
http_version:
|
78
|
-
recorded_at:
|
79
|
-
recorded_with: VCR 2.
|
78
|
+
recorded_at: Mon, 07 Oct 2013 00:48:02 GMT
|
79
|
+
recorded_with: VCR 2.6.0
|
data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://
|
5
|
+
uri: http://unix/v1.4/build
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: !binary |-
|
@@ -53,26 +53,31 @@ http_interactions:
|
|
53
53
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
54
54
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
|
55
55
|
headers:
|
56
|
-
Content-Type:
|
57
|
-
- text/plain
|
58
56
|
User-Agent:
|
59
|
-
- Swipely/Docker-API 1.
|
57
|
+
- Swipely/Docker-API 1.5.4
|
58
|
+
Content-Type:
|
59
|
+
- application/json
|
60
60
|
response:
|
61
61
|
status:
|
62
62
|
code: 200
|
63
63
|
message: ''
|
64
64
|
headers:
|
65
|
-
|
66
|
-
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
65
|
+
!binary "Q29udGVudC1UeXBl":
|
66
|
+
- !binary |-
|
67
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
68
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
69
|
+
- !binary |-
|
70
|
+
NjU=
|
71
|
+
!binary "RGF0ZQ==":
|
72
|
+
- !binary |-
|
73
|
+
TW9uLCAwNyBPY3QgMjAxMyAwMDo0ODowMiBHTVQ=
|
71
74
|
body:
|
72
|
-
encoding:
|
73
|
-
string:
|
74
|
-
|
75
|
+
encoding: US-ASCII
|
76
|
+
string: ! 'Error build: Invalid Dockerfile format
|
77
|
+
|
75
78
|
Invalid Dockerfile format
|
79
|
+
|
80
|
+
'
|
76
81
|
http_version:
|
77
|
-
recorded_at:
|
78
|
-
recorded_with: VCR 2.
|
82
|
+
recorded_at: Mon, 07 Oct 2013 00:48:02 GMT
|
83
|
+
recorded_with: VCR 2.6.0
|
@@ -2,30 +2,35 @@
|
|
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
|
+
User-Agent:
|
11
|
+
- Swipely/Docker-API 1.5.4
|
10
12
|
Content-Type:
|
11
13
|
- text/plain
|
12
|
-
User-Agent:
|
13
|
-
- Swipely/Docker-API 1.3.1
|
14
14
|
response:
|
15
15
|
status:
|
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
|
+
TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo1NyBHTVQ=
|
25
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
26
|
+
- !binary |-
|
27
|
+
Y2h1bmtlZA==
|
25
28
|
body:
|
26
|
-
encoding:
|
27
|
-
string: '{"status":"Pulling repository base"}{"status":"Pulling
|
28
|
-
(ubuntu-quantl) from base"}
|
29
|
+
encoding: US-ASCII
|
30
|
+
string: ! '{"status":"Pulling repository base"}{"status":"Pulling","progress":"image
|
31
|
+
(ubuntu-quantl) from base","id":"b750fe79269d"}{"status":"Pulling","progress":"image
|
32
|
+
(ubuntu-quantl) from base, endpoint: https://cdn-registry-1.docker.io/v1/","id":"b750fe79269d"}{"status":"Pulling","progress":"dependend
|
33
|
+
layers","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"27cf78414709"}{"status":"Download","progress":"complete","id":"b750fe79269d"}'
|
29
34
|
http_version:
|
30
|
-
recorded_at:
|
31
|
-
recorded_with: VCR 2.
|
35
|
+
recorded_at: Mon, 07 Oct 2013 00:47:59 GMT
|
36
|
+
recorded_with: VCR 2.6.0
|
@@ -2,57 +2,65 @@
|
|
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
|
+
User-Agent:
|
11
|
+
- Swipely/Docker-API 1.5.4
|
10
12
|
Content-Type:
|
11
13
|
- text/plain
|
12
|
-
User-Agent:
|
13
|
-
- Swipely/Docker-API 1.3.1
|
14
14
|
response:
|
15
15
|
status:
|
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
|
+
TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo1MSBHTVQ=
|
25
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
26
|
+
- !binary |-
|
27
|
+
Y2h1bmtlZA==
|
25
28
|
body:
|
26
|
-
encoding:
|
27
|
-
string: '{"status":"Pulling repository base"}{"status":"Pulling
|
28
|
-
(ubuntu-quantl) from base"}
|
29
|
+
encoding: US-ASCII
|
30
|
+
string: ! '{"status":"Pulling repository base"}{"status":"Pulling","progress":"image
|
31
|
+
(ubuntu-quantl) from base","id":"b750fe79269d"}{"status":"Pulling","progress":"image
|
32
|
+
(ubuntu-quantl) from base, endpoint: https://cdn-registry-1.docker.io/v1/","id":"b750fe79269d"}{"status":"Pulling","progress":"dependend
|
33
|
+
layers","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"27cf78414709"}{"status":"Download","progress":"complete","id":"b750fe79269d"}'
|
29
34
|
http_version:
|
30
|
-
recorded_at:
|
35
|
+
recorded_at: Mon, 07 Oct 2013 00:47:53 GMT
|
31
36
|
- request:
|
32
37
|
method: get
|
33
|
-
uri: http://
|
38
|
+
uri: http://unix/v1.4/images/base/history
|
34
39
|
body:
|
35
40
|
encoding: US-ASCII
|
36
41
|
string: ''
|
37
42
|
headers:
|
43
|
+
User-Agent:
|
44
|
+
- Swipely/Docker-API 1.5.4
|
38
45
|
Content-Type:
|
39
46
|
- text/plain
|
40
|
-
User-Agent:
|
41
|
-
- Swipely/Docker-API 1.3.1
|
42
47
|
response:
|
43
48
|
status:
|
44
49
|
code: 200
|
45
50
|
message: ''
|
46
51
|
headers:
|
47
|
-
|
48
|
-
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
52
|
+
!binary "Q29udGVudC1UeXBl":
|
53
|
+
- !binary |-
|
54
|
+
YXBwbGljYXRpb24vanNvbg==
|
55
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
56
|
+
- !binary |-
|
57
|
+
MjEy
|
58
|
+
!binary "RGF0ZQ==":
|
59
|
+
- !binary |-
|
60
|
+
TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo1MyBHTVQ=
|
53
61
|
body:
|
54
|
-
encoding:
|
55
|
-
string: '[{"Id":"b750fe79269d","Tags":["base:latest","base:ubuntu-12.10","base:ubuntu-quantal","base:ubuntu-quantl","base2:latest"],"Created":1364102658,"CreatedBy":"/bin/bash"},{"Id":"27cf78414709","Created":1364068391}]'
|
62
|
+
encoding: US-ASCII
|
63
|
+
string: ! '[{"Id":"b750fe79269d","Tags":["base:latest","base:ubuntu-12.10","base:ubuntu-quantal","base:ubuntu-quantl","base2:latest"],"Created":1364102658,"CreatedBy":"/bin/bash"},{"Id":"27cf78414709","Created":1364068391}]'
|
56
64
|
http_version:
|
57
|
-
recorded_at:
|
58
|
-
recorded_with: VCR 2.
|
65
|
+
recorded_at: Mon, 07 Oct 2013 00:47:53 GMT
|
66
|
+
recorded_with: VCR 2.6.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://
|
5
|
+
uri: http://unix/v1.4/build
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: !binary |-
|
@@ -53,181 +53,220 @@ http_interactions:
|
|
53
53
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
54
54
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
|
55
55
|
headers:
|
56
|
-
Content-Type:
|
57
|
-
- text/plain
|
58
56
|
User-Agent:
|
59
|
-
- Swipely/Docker-API 1.
|
57
|
+
- Swipely/Docker-API 1.5.4
|
58
|
+
Content-Type:
|
59
|
+
- application/json
|
60
60
|
response:
|
61
61
|
status:
|
62
62
|
code: 200
|
63
63
|
message: ''
|
64
64
|
headers:
|
65
|
-
|
66
|
-
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
65
|
+
!binary "Q29udGVudC1UeXBl":
|
66
|
+
- !binary |-
|
67
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
68
|
+
!binary "RGF0ZQ==":
|
69
|
+
- !binary |-
|
70
|
+
TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo0MiBHTVQ=
|
71
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
72
|
+
- !binary |-
|
73
|
+
Y2h1bmtlZA==
|
71
74
|
body:
|
72
|
-
encoding:
|
73
|
-
string: "Step 1 : FROM base\nPulling repository base\r\nPulling image
|
74
|
-
(ubuntu-quantl) from base
|
75
|
+
encoding: US-ASCII
|
76
|
+
string: ! "Step 1 : FROM base\nPulling repository base\r\nPulling image (ubuntu-quantl)
|
77
|
+
from base\rPulling image (ubuntu-quantl) from base, endpoint: https://cdn-registry-1.docker.io/v1/\rPulling
|
78
|
+
dependend layers\rPulling metadata\rPulling fs layer\rDownloading 4.096 kB/10.24
|
79
|
+
kB (40%)\rDownloading 10.13 kB/10.24 kB (99%)\rDownloading 10.24 kB/10.24
|
80
|
+
kB (100%)\rDownloading 10.24 kB/10.24 kB (100%)\rDownload complete\rDownload
|
81
|
+
complete\rDownload complete\r ---> b750fe79269d\nSuccessfully built b750fe79269d\n"
|
75
82
|
http_version:
|
76
|
-
recorded_at:
|
83
|
+
recorded_at: Mon, 07 Oct 2013 00:47:45 GMT
|
77
84
|
- request:
|
78
85
|
method: post
|
79
|
-
uri: http://
|
86
|
+
uri: http://unix/v1.4/images/b750fe79269d/insert?path=/stallman&url=http://stallman.org
|
80
87
|
body:
|
81
88
|
encoding: US-ASCII
|
82
89
|
string: ''
|
83
90
|
headers:
|
91
|
+
User-Agent:
|
92
|
+
- Swipely/Docker-API 1.5.4
|
84
93
|
Content-Type:
|
85
94
|
- text/plain
|
86
|
-
User-Agent:
|
87
|
-
- Swipely/Docker-API 1.3.1
|
88
95
|
response:
|
89
96
|
status:
|
90
97
|
code: 200
|
91
98
|
message: ''
|
92
99
|
headers:
|
93
|
-
|
94
|
-
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
100
|
+
!binary "Q29udGVudC1UeXBl":
|
101
|
+
- !binary |-
|
102
|
+
YXBwbGljYXRpb24vanNvbg==
|
103
|
+
!binary "RGF0ZQ==":
|
104
|
+
- !binary |-
|
105
|
+
TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo0NiBHTVQ=
|
106
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
107
|
+
- !binary |-
|
108
|
+
Y2h1bmtlZA==
|
99
109
|
body:
|
100
|
-
encoding:
|
101
|
-
string: '{"status":"Downloading","progress":"
|
102
|
-
kB/93.
|
103
|
-
kB/93.
|
104
|
-
kB/93.
|
105
|
-
kB/93.
|
106
|
-
kB/93.
|
107
|
-
kB/93.
|
108
|
-
kB/93.
|
109
|
-
kB/93.
|
110
|
-
kB/93.
|
111
|
-
kB/93.
|
112
|
-
kB/93.
|
113
|
-
|
114
|
-
kB (
|
115
|
-
kB/93.
|
116
|
-
kB/93.
|
117
|
-
kB/93.
|
118
|
-
kB/93.
|
119
|
-
kB/93.
|
120
|
-
kB/93.
|
121
|
-
kB/93.
|
122
|
-
kB/93.
|
123
|
-
kB/93.
|
124
|
-
kB/93.
|
125
|
-
kB/93.
|
126
|
-
kB/93.
|
127
|
-
kB/93.
|
128
|
-
kB
|
129
|
-
kB/93.
|
130
|
-
kB/93.
|
131
|
-
kB/93.
|
132
|
-
(
|
110
|
+
encoding: US-ASCII
|
111
|
+
string: ! '{"status":"Downloading","progress":"1.208 kB/93.22 kB (1%)"}{"status":"Downloading","progress":"4.104
|
112
|
+
kB/93.22 kB (4%)"}{"status":"Downloading","progress":"5.552 kB/93.22 kB (6%)"}{"status":"Downloading","progress":" 7
|
113
|
+
kB/93.22 kB (8%)"}{"status":"Downloading","progress":"8.448 kB/93.22 kB (9%)"}{"status":"Downloading","progress":"9.896
|
114
|
+
kB/93.22 kB (11%)"}{"status":"Downloading","progress":"11.34 kB/93.22 kB (12%)"}{"status":"Downloading","progress":"12.79
|
115
|
+
kB/93.22 kB (14%)"}{"status":"Downloading","progress":"14.24 kB/93.22 kB (15%)"}{"status":"Downloading","progress":"15.69
|
116
|
+
kB/93.22 kB (17%)"}{"status":"Downloading","progress":"17.14 kB/93.22 kB (18%)"}{"status":"Downloading","progress":"18.58
|
117
|
+
kB/93.22 kB (20%)"}{"status":"Downloading","progress":"20.03 kB/93.22 kB (21%)"}{"status":"Downloading","progress":"21.48
|
118
|
+
kB/93.22 kB (23%)"}{"status":"Downloading","progress":"22.93 kB/93.22 kB (25%)"}{"status":"Downloading","progress":"24.38
|
119
|
+
kB/93.22 kB (26%)"}{"status":"Downloading","progress":"25.82 kB/93.22 kB (28%)"}{"status":"Downloading","progress":"27.27
|
120
|
+
kB/93.22 kB (29%)"}{"status":"Downloading","progress":"28.72 kB/93.22 kB (31%)"}{"status":"Downloading","progress":"30.17
|
121
|
+
kB/93.22 kB (32%)"}{"status":"Downloading","progress":"31.62 kB/93.22 kB (34%)"}{"status":"Downloading","progress":"33.06
|
122
|
+
kB/93.22 kB (35%)"}{"status":"Downloading","progress":"34.51 kB/93.22 kB (37%)"}{"status":"Downloading","progress":"35.96
|
123
|
+
kB/93.22 kB (39%)"}{"status":"Downloading","progress":"37.41 kB/93.22 kB (40%)"}{"status":"Downloading","progress":"38.86
|
124
|
+
kB/93.22 kB (42%)"}{"status":"Downloading","progress":" 40.3 kB/93.22 kB (43%)"}{"status":"Downloading","progress":"41.75
|
125
|
+
kB/93.22 kB (45%)"}{"status":"Downloading","progress":" 43.2 kB/93.22 kB (46%)"}{"status":"Downloading","progress":"44.65
|
126
|
+
kB/93.22 kB (48%)"}{"status":"Downloading","progress":" 46.1 kB/93.22 kB (49%)"}{"status":"Downloading","progress":"47.54
|
127
|
+
kB/93.22 kB (51%)"}{"status":"Downloading","progress":"48.99 kB/93.22 kB (53%)"}{"status":"Downloading","progress":"50.44
|
128
|
+
kB/93.22 kB (54%)"}{"status":"Downloading","progress":"51.89 kB/93.22 kB (56%)"}{"status":"Downloading","progress":"53.34
|
129
|
+
kB/93.22 kB (57%)"}{"status":"Downloading","progress":"54.78 kB/93.22 kB (59%)"}{"status":"Downloading","progress":"56.23
|
130
|
+
kB/93.22 kB (60%)"}{"status":"Downloading","progress":"57.68 kB/93.22 kB (62%)"}{"status":"Downloading","progress":"59.13
|
131
|
+
kB/93.22 kB (63%)"}{"status":"Downloading","progress":"60.58 kB/93.22 kB (65%)"}{"status":"Downloading","progress":"62.02
|
132
|
+
kB/93.22 kB (67%)"}{"status":"Downloading","progress":"63.47 kB/93.22 kB (68%)"}{"status":"Downloading","progress":"64.92
|
133
|
+
kB/93.22 kB (70%)"}{"status":"Downloading","progress":"66.37 kB/93.22 kB (71%)"}{"status":"Downloading","progress":"67.82
|
134
|
+
kB/93.22 kB (73%)"}{"status":"Downloading","progress":"69.26 kB/93.22 kB (74%)"}{"status":"Downloading","progress":"70.71
|
135
|
+
kB/93.22 kB (76%)"}{"status":"Downloading","progress":"72.16 kB/93.22 kB (77%)"}{"status":"Downloading","progress":"73.61
|
136
|
+
kB/93.22 kB (79%)"}{"status":"Downloading","progress":"75.06 kB/93.22 kB (81%)"}{"status":"Downloading","progress":"
|
137
|
+
76.5 kB/93.22 kB (82%)"}{"status":"Downloading","progress":"77.95 kB/93.22
|
138
|
+
kB (84%)"}{"status":"Downloading","progress":" 79.4 kB/93.22 kB (85%)"}{"status":"Downloading","progress":"80.85
|
139
|
+
kB/93.22 kB (87%)"}{"status":"Downloading","progress":" 82.3 kB/93.22 kB (88%)"}{"status":"Downloading","progress":"83.74
|
140
|
+
kB/93.22 kB (90%)"}{"status":"Downloading","progress":"85.19 kB/93.22 kB (91%)"}{"status":"Downloading","progress":"86.64
|
141
|
+
kB/93.22 kB (93%)"}{"status":"Downloading","progress":"88.09 kB/93.22 kB (94%)"}{"status":"Downloading","progress":"89.54
|
142
|
+
kB/93.22 kB (96%)"}{"status":"Downloading","progress":"90.98 kB/93.22 kB (98%)"}{"status":"Downloading","progress":"92.43
|
143
|
+
kB/93.22 kB (99%)"}{"status":"Downloading","progress":"93.22 kB/93.22 kB (100%)"}{}{"status":"f6d3f4d8ef4ea2e27f81444c38bc242414e32ab1c5dc62640db0a824108ac2eb"}{"Id":"f6d3f4d8ef4e"}'
|
133
144
|
http_version:
|
134
|
-
recorded_at:
|
145
|
+
recorded_at: Mon, 07 Oct 2013 00:47:46 GMT
|
135
146
|
- request:
|
136
147
|
method: post
|
137
|
-
uri: http://
|
148
|
+
uri: http://unix/v1.4/containers/create
|
138
149
|
body:
|
139
150
|
encoding: UTF-8
|
140
|
-
string: '{"Image":"
|
151
|
+
string: ! '{"Image":"f6d3f4d8ef4e","Cmd":["ls","/"]}'
|
141
152
|
headers:
|
142
|
-
Content-Type:
|
143
|
-
- text/plain
|
144
153
|
User-Agent:
|
145
|
-
- Swipely/Docker-API 1.
|
154
|
+
- Swipely/Docker-API 1.5.4
|
155
|
+
Content-Type:
|
156
|
+
- application/json
|
146
157
|
response:
|
147
158
|
status:
|
148
159
|
code: 201
|
149
160
|
message: ''
|
150
161
|
headers:
|
151
|
-
|
152
|
-
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
162
|
+
!binary "Q29udGVudC1UeXBl":
|
163
|
+
- !binary |-
|
164
|
+
YXBwbGljYXRpb24vanNvbg==
|
165
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
166
|
+
- !binary |-
|
167
|
+
NjU=
|
168
|
+
!binary "RGF0ZQ==":
|
169
|
+
- !binary |-
|
170
|
+
TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo0NiBHTVQ=
|
157
171
|
body:
|
158
|
-
encoding:
|
159
|
-
string: '{"Id":"
|
172
|
+
encoding: US-ASCII
|
173
|
+
string: ! '{"Id":"88492144a1ec","Warnings":["IPv4 forwarding is disabled."]}'
|
160
174
|
http_version:
|
161
|
-
recorded_at:
|
175
|
+
recorded_at: Mon, 07 Oct 2013 00:47:46 GMT
|
162
176
|
- request:
|
163
177
|
method: post
|
164
|
-
uri: http://
|
178
|
+
uri: http://unix/v1.4/containers/88492144a1ec/start
|
165
179
|
body:
|
166
|
-
encoding:
|
167
|
-
string: ''
|
180
|
+
encoding: UTF-8
|
181
|
+
string: ! '{}'
|
168
182
|
headers:
|
169
|
-
Content-Type:
|
170
|
-
- text/plain
|
171
183
|
User-Agent:
|
172
|
-
- Swipely/Docker-API 1.
|
184
|
+
- Swipely/Docker-API 1.5.4
|
185
|
+
Content-Type:
|
186
|
+
- application/json
|
173
187
|
response:
|
174
188
|
status:
|
175
189
|
code: 204
|
176
190
|
message: ''
|
177
191
|
headers:
|
178
|
-
|
179
|
-
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
192
|
+
!binary "Q29udGVudC1UeXBl":
|
193
|
+
- !binary |-
|
194
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
195
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
196
|
+
- !binary |-
|
197
|
+
MA==
|
198
|
+
!binary "RGF0ZQ==":
|
199
|
+
- !binary |-
|
200
|
+
TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo0NiBHTVQ=
|
184
201
|
body:
|
185
|
-
encoding:
|
202
|
+
encoding: US-ASCII
|
186
203
|
string: ''
|
187
204
|
http_version:
|
188
|
-
recorded_at:
|
205
|
+
recorded_at: Mon, 07 Oct 2013 00:47:46 GMT
|
189
206
|
- request:
|
190
207
|
method: post
|
191
|
-
uri: http://
|
208
|
+
uri: http://unix/v1.4/containers/88492144a1ec/attach?stdout=true&stream=true
|
192
209
|
body:
|
193
210
|
encoding: US-ASCII
|
194
211
|
string: ''
|
195
212
|
headers:
|
213
|
+
User-Agent:
|
214
|
+
- Swipely/Docker-API 1.5.4
|
196
215
|
Content-Type:
|
197
216
|
- text/plain
|
198
|
-
User-Agent:
|
199
|
-
- Swipely/Docker-API 1.3.1
|
200
217
|
response:
|
201
218
|
status:
|
202
219
|
code: 200
|
203
220
|
message: ''
|
204
221
|
headers:
|
205
|
-
|
206
|
-
-
|
222
|
+
!binary "Q29udGVudC1UeXBl":
|
223
|
+
- !binary |-
|
224
|
+
YXBwbGljYXRpb24vdm5kLmRvY2tlci5yYXctc3RyZWFt
|
207
225
|
body:
|
208
|
-
encoding:
|
209
|
-
string:
|
210
|
-
|
226
|
+
encoding: US-ASCII
|
227
|
+
string: ! 'bin
|
228
|
+
|
211
229
|
boot
|
230
|
+
|
212
231
|
dev
|
232
|
+
|
213
233
|
etc
|
234
|
+
|
214
235
|
home
|
236
|
+
|
215
237
|
lib
|
238
|
+
|
216
239
|
lib64
|
240
|
+
|
217
241
|
media
|
242
|
+
|
218
243
|
mnt
|
244
|
+
|
219
245
|
opt
|
246
|
+
|
220
247
|
proc
|
248
|
+
|
221
249
|
root
|
250
|
+
|
222
251
|
run
|
252
|
+
|
223
253
|
sbin
|
254
|
+
|
224
255
|
selinux
|
256
|
+
|
225
257
|
srv
|
258
|
+
|
226
259
|
stallman
|
260
|
+
|
227
261
|
sys
|
262
|
+
|
228
263
|
tmp
|
264
|
+
|
229
265
|
usr
|
266
|
+
|
230
267
|
var
|
268
|
+
|
269
|
+
'
|
231
270
|
http_version:
|
232
|
-
recorded_at:
|
233
|
-
recorded_with: VCR 2.
|
271
|
+
recorded_at: Mon, 07 Oct 2013 00:47:47 GMT
|
272
|
+
recorded_with: VCR 2.6.0
|