docker-api 1.12.0 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/docker/container.rb +15 -0
- data/lib/docker/image.rb +0 -10
- data/lib/docker/version.rb +2 -2
- data/spec/docker/container_spec.rb +26 -1
- data/spec/docker/image_spec.rb +0 -11
- data/spec/vcr/Docker/_authenticate_/with_valid_credentials/logs_in_and_sets_the_creds.yml +4 -4
- data/spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml +6 -6
- 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 +4 -4
- data/spec/vcr/Docker_Container/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml +127 -75
- data/spec/vcr/Docker_Container/_attach/with_normal_sized_chunks/yields_each_chunk.yml +12 -16
- data/spec/vcr/Docker_Container/_attach/with_very_small_chunks/yields_each_chunk.yml +12 -16
- data/spec/vcr/Docker_Container/_changes/returns_the_changes_as_an_array.yml +17 -21
- data/spec/vcr/Docker_Container/_commit/creates_a_new_Image_from_the_Container_s_changes.yml +14 -18
- data/spec/vcr/Docker_Container/_commit/if_run_is_passed_it_saves_the_command_in_the_image/saves_the_command.yml +9 -13
- data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_directory/yields_each_chunk_of_the_tarred_directory.yml +39 -43
- data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_file/yields_each_chunk_of_the_tarred_file.yml +22 -26
- data/spec/vcr/Docker_Container/_create/when_creating_a_container_named_bob/should_have_name_set_to_bob.yml +12 -11
- data/spec/vcr/Docker_Container/_create/when_the_Container_does_not_yet_exist/when_the_HTTP_request_returns_a_200/sets_the_id.yml +5 -5
- data/spec/vcr/Docker_Container/_delete/deletes_the_container.yml +15 -19
- data/spec/vcr/Docker_Container/_export/yields_each_chunk.yml +15 -453687
- data/spec/vcr/Docker_Container/_get/when_the_HTTP_response_is_a_200/materializes_the_Container_into_a_Docker_Container.yml +12 -11
- data/spec/vcr/Docker_Container/_json/returns_the_description_as_a_Hash.yml +12 -11
- data/spec/vcr/Docker_Container/_kill/kills_the_container.yml +64 -42
- data/spec/vcr/Docker_Container/_logs/when_not_selecting_any_stream/returns_the_error_message.yml +11 -11
- data/spec/vcr/Docker_Container/_logs/when_selecting_stdout/returns_blank_logs.yml +9 -9
- data/spec/vcr/Docker_Container/_pause/pauses_the_container.yml +121 -0
- data/spec/vcr/Docker_Container/_restart/restarts_the_container.yml +37 -49
- data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_does_not_return_status_code_of_0/raises_an_error.yml +13 -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 +36 -48
- data/spec/vcr/Docker_Container/_start/starts_the_container.yml +20 -24
- data/spec/vcr/Docker_Container/_stop/stops_the_container.yml +67 -49
- data/spec/vcr/Docker_Container/_top/returns_the_top_commands_as_an_Array.yml +23 -26
- data/spec/vcr/Docker_Container/_unpause/unpauses_the_container.yml +150 -0
- data/spec/vcr/Docker_Container/_wait/waits_for_the_command_to_finish.yml +13 -17
- data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/and_a_command_runs_for_too_long/raises_a_ServerError.yml +9 -13
- data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/sets_the_read_timeout_to_that_amount_of_time.yml +13 -17
- data/spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml +10 -11
- data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/with_a_block_capturing_build_output/calls_the_block_and_passes_build_output.yml +4 -4
- 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 +25 -24
- data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/without_query_parameters/builds_an_image.yml +4 -4
- data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml +4 -4
- data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_a_block_capturing_build_output/calls_the_block_and_passes_build_output.yml +8 -8
- data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_credentials_passed/sends_Docker_creds.yml +6 -6
- data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_no_query_parameters/builds_the_image.yml +21 -24
- 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 +39 -43
- data/spec/vcr/Docker_Image/_create/when_the_Image_does_not_yet_exist_and_the_body_is_a_Hash/sets_the_id_and_sends_Docker_creds.yml +68 -18
- data/spec/vcr/Docker_Image/_get/when_the_image_does_exist/returns_the_new_image.yml +7 -6
- data/spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml +10 -10
- data/spec/vcr/Docker_Image/_import/when_the_argument_is_a_URI/when_the_URI_is_invalid/raises_an_error.yml +18 -24
- data/spec/vcr/Docker_Image/_import/when_the_argument_is_a_URI/when_the_URI_is_valid/returns_an_Image.yml +9 -9
- data/spec/vcr/Docker_Image/_import/when_the_file_does_exist/creates_the_Image.yml +5 -5
- data/spec/vcr/Docker_Image/_insert_local/when_a_direcory_is_passed/inserts_the_directory.yml +23 -27
- data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/creates_a_new_image.yml +20 -20
- data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/leave_no_intermediate_containers.yml +18 -18
- data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_exist/creates_a_new_Image_that_has_that_file.yml +23 -27
- data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_not_exist/raises_an_error.yml +4 -4
- data/spec/vcr/Docker_Image/_insert_local/when_there_are_multiple_files_passed/creates_a_new_Image_that_has_each_file.yml +25 -28
- data/spec/vcr/Docker_Image/_json/returns_additional_information_about_image_image.yml +13 -12
- data/spec/vcr/Docker_Image/_push/pushes_the_Image.yml +32 -71
- data/spec/vcr/Docker_Image/_push/when_there_are_no_credentials/still_pushes.yml +28 -28
- data/spec/vcr/Docker_Image/_refresh_/updates_the_info_hash.yml +35 -34
- data/spec/vcr/Docker_Image/_remove/removes_the_Image.yml +50 -21
- data/spec/vcr/Docker_Image/_run/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml +16 -20
- data/spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml +16 -20
- 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 +10 -10
- data/spec/vcr/Docker_Image/_search/materializes_each_Image_into_a_Docker_Image.yml +66 -34
- data/spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml +8 -8
- metadata +8 -5
- data/spec/vcr/Docker_Image/_insert/inserts_the_url_s_file_into_a_new_Image.yml +0 -194
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: unix:///var/run/docker.sock/v1.
|
5
|
+
uri: unix:///var/run/docker.sock/v1.12/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.
|
11
|
+
- Swipely/Docker-API 1.11.2
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
response:
|
@@ -19,7 +19,7 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/json
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Thu, 26 Jun 2014 19:48:39 GMT
|
23
23
|
Content-Length:
|
24
24
|
- '90'
|
25
25
|
Connection:
|
@@ -27,18 +27,18 @@ http_interactions:
|
|
27
27
|
body:
|
28
28
|
encoding: UTF-8
|
29
29
|
string: |
|
30
|
-
{"Id":"
|
30
|
+
{"Id":"00006a432b5a0633df95a997d1c24ee77f83a53749bbb57ae0f000d3f3fe1a20","Warnings":null}
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
32
|
+
recorded_at: Thu, 26 Jun 2014 19:48:39 GMT
|
33
33
|
- request:
|
34
34
|
method: get
|
35
|
-
uri: unix:///var/run/docker.sock/v1.
|
35
|
+
uri: unix:///var/run/docker.sock/v1.12/containers/00006a432b5a0633df95a997d1c24ee77f83a53749bbb57ae0f000d3f3fe1a20/json
|
36
36
|
body:
|
37
37
|
encoding: US-ASCII
|
38
38
|
string: ''
|
39
39
|
headers:
|
40
40
|
User-Agent:
|
41
|
-
- Swipely/Docker-API 1.11.
|
41
|
+
- Swipely/Docker-API 1.11.2
|
42
42
|
Content-Type:
|
43
43
|
- text/plain
|
44
44
|
response:
|
@@ -49,14 +49,15 @@ http_interactions:
|
|
49
49
|
Content-Type:
|
50
50
|
- application/json
|
51
51
|
Date:
|
52
|
-
-
|
52
|
+
- Thu, 26 Jun 2014 19:48:39 GMT
|
53
53
|
Content-Length:
|
54
|
-
- '
|
54
|
+
- '1243'
|
55
55
|
Connection:
|
56
56
|
- close
|
57
57
|
body:
|
58
58
|
encoding: UTF-8
|
59
|
-
string:
|
59
|
+
string: |
|
60
|
+
{"Args":[],"Config":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":["ls"],"CpuShares":0,"Cpuset":"","Domainname":"","Entrypoint":null,"Env":null,"ExposedPorts":null,"Hostname":"00006a432b5a","Image":"base","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":null,"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Created":"2014-06-26T19:48:39.594334465Z","Driver":"devicemapper","ExecDriver":"native-0.2","HostConfig":{"Binds":null,"ContainerIDFile":"","Dns":null,"DnsSearch":null,"Links":null,"LxcConf":null,"NetworkMode":"","PortBindings":null,"Privileged":false,"PublishAllPorts":false,"VolumesFrom":null},"HostnamePath":"","HostsPath":"","Id":"00006a432b5a0633df95a997d1c24ee77f83a53749bbb57ae0f000d3f3fe1a20","Image":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","MountLabel":"","Name":"/focused_ritchie","NetworkSettings":{"Bridge":"","Gateway":"","IPAddress":"","IPPrefixLen":0,"PortMapping":null,"Ports":null},"Path":"ls","ProcessLabel":"","ResolvConfPath":"","State":{"ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","Paused":false,"Pid":0,"Running":false,"StartedAt":"0001-01-01T00:00:00Z"},"Volumes":null,"VolumesRW":null}
|
60
61
|
http_version:
|
61
|
-
recorded_at:
|
62
|
+
recorded_at: Thu, 26 Jun 2014 19:48:39 GMT
|
62
63
|
recorded_with: VCR 2.9.2
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: unix:///var/run/docker.sock/v1.
|
5
|
+
uri: unix:///var/run/docker.sock/v1.12/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.
|
11
|
+
- Swipely/Docker-API 1.11.2
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
response:
|
@@ -19,7 +19,7 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/json
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Thu, 26 Jun 2014 19:39:22 GMT
|
23
23
|
Content-Length:
|
24
24
|
- '90'
|
25
25
|
Connection:
|
@@ -27,18 +27,18 @@ http_interactions:
|
|
27
27
|
body:
|
28
28
|
encoding: UTF-8
|
29
29
|
string: |
|
30
|
-
{"Id":"
|
30
|
+
{"Id":"cf367fe2a4eaf9908dd1f6c6d988b6b7391cebfbe827435ee7204659fa2d6ec1","Warnings":null}
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
32
|
+
recorded_at: Thu, 26 Jun 2014 19:39:22 GMT
|
33
33
|
- request:
|
34
34
|
method: get
|
35
|
-
uri: unix:///var/run/docker.sock/v1.
|
35
|
+
uri: unix:///var/run/docker.sock/v1.12/containers/cf367fe2a4eaf9908dd1f6c6d988b6b7391cebfbe827435ee7204659fa2d6ec1/json
|
36
36
|
body:
|
37
37
|
encoding: US-ASCII
|
38
38
|
string: ''
|
39
39
|
headers:
|
40
40
|
User-Agent:
|
41
|
-
- Swipely/Docker-API 1.11.
|
41
|
+
- Swipely/Docker-API 1.11.2
|
42
42
|
Content-Type:
|
43
43
|
- text/plain
|
44
44
|
response:
|
@@ -49,14 +49,15 @@ http_interactions:
|
|
49
49
|
Content-Type:
|
50
50
|
- application/json
|
51
51
|
Date:
|
52
|
-
-
|
52
|
+
- Thu, 26 Jun 2014 19:39:22 GMT
|
53
53
|
Content-Length:
|
54
|
-
- '
|
54
|
+
- '1243'
|
55
55
|
Connection:
|
56
56
|
- close
|
57
57
|
body:
|
58
58
|
encoding: UTF-8
|
59
|
-
string:
|
59
|
+
string: |
|
60
|
+
{"Args":[],"Config":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":["true"],"CpuShares":0,"Cpuset":"","Domainname":"","Entrypoint":null,"Env":null,"ExposedPorts":null,"Hostname":"cf367fe2a4ea","Image":"base","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":null,"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Created":"2014-06-26T19:39:22.490034231Z","Driver":"devicemapper","ExecDriver":"native-0.2","HostConfig":{"Binds":null,"ContainerIDFile":"","Dns":null,"DnsSearch":null,"Links":null,"LxcConf":null,"NetworkMode":"","PortBindings":null,"Privileged":false,"PublishAllPorts":false,"VolumesFrom":null},"HostnamePath":"","HostsPath":"","Id":"cf367fe2a4eaf9908dd1f6c6d988b6b7391cebfbe827435ee7204659fa2d6ec1","Image":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","MountLabel":"","Name":"/thirsty_nobel","NetworkSettings":{"Bridge":"","Gateway":"","IPAddress":"","IPPrefixLen":0,"PortMapping":null,"Ports":null},"Path":true,"ProcessLabel":"","ResolvConfPath":"","State":{"ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","Paused":false,"Pid":0,"Running":false,"StartedAt":"0001-01-01T00:00:00Z"},"Volumes":null,"VolumesRW":null}
|
60
61
|
http_version:
|
61
|
-
recorded_at:
|
62
|
+
recorded_at: Thu, 26 Jun 2014 19:39:22 GMT
|
62
63
|
recorded_with: VCR 2.9.2
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: unix:///var/run/docker.sock/v1.
|
5
|
+
uri: unix:///var/run/docker.sock/v1.12/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.
|
11
|
+
- Swipely/Docker-API 1.11.2
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
response:
|
@@ -19,7 +19,7 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/json
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Thu, 26 Jun 2014 19:44:58 GMT
|
23
23
|
Content-Length:
|
24
24
|
- '90'
|
25
25
|
Connection:
|
@@ -27,18 +27,18 @@ http_interactions:
|
|
27
27
|
body:
|
28
28
|
encoding: UTF-8
|
29
29
|
string: |
|
30
|
-
{"Id":"
|
30
|
+
{"Id":"e2c48362ec04bb452fbad5c3b863cd7d36a02f609f79bd60c53f177156cb8d89","Warnings":null}
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
32
|
+
recorded_at: Thu, 26 Jun 2014 19:44:58 GMT
|
33
33
|
- request:
|
34
34
|
method: post
|
35
|
-
uri: unix:///var/run/docker.sock/v1.
|
35
|
+
uri: unix:///var/run/docker.sock/v1.12/containers/e2c48362ec04bb452fbad5c3b863cd7d36a02f609f79bd60c53f177156cb8d89/kill
|
36
36
|
body:
|
37
37
|
encoding: UTF-8
|
38
38
|
string: '{}'
|
39
39
|
headers:
|
40
40
|
User-Agent:
|
41
|
-
- Swipely/Docker-API 1.11.
|
41
|
+
- Swipely/Docker-API 1.11.2
|
42
42
|
Content-Type:
|
43
43
|
- application/json
|
44
44
|
response:
|
@@ -47,27 +47,23 @@ http_interactions:
|
|
47
47
|
message:
|
48
48
|
headers:
|
49
49
|
Date:
|
50
|
-
-
|
51
|
-
Content-Length:
|
52
|
-
- '0'
|
53
|
-
Content-Type:
|
54
|
-
- text/plain; charset=utf-8
|
50
|
+
- Thu, 26 Jun 2014 19:44:58 GMT
|
55
51
|
Connection:
|
56
52
|
- close
|
57
53
|
body:
|
58
54
|
encoding: UTF-8
|
59
55
|
string: ''
|
60
56
|
http_version:
|
61
|
-
recorded_at:
|
57
|
+
recorded_at: Thu, 26 Jun 2014 19:44:58 GMT
|
62
58
|
- request:
|
63
59
|
method: get
|
64
|
-
uri: unix:///var/run/docker.sock/v1.
|
60
|
+
uri: unix:///var/run/docker.sock/v1.12/containers/json
|
65
61
|
body:
|
66
62
|
encoding: US-ASCII
|
67
63
|
string: ''
|
68
64
|
headers:
|
69
65
|
User-Agent:
|
70
|
-
- Swipely/Docker-API 1.11.
|
66
|
+
- Swipely/Docker-API 1.11.2
|
71
67
|
Content-Type:
|
72
68
|
- text/plain
|
73
69
|
response:
|
@@ -78,27 +74,27 @@ http_interactions:
|
|
78
74
|
Content-Type:
|
79
75
|
- application/json
|
80
76
|
Date:
|
81
|
-
-
|
77
|
+
- Thu, 26 Jun 2014 19:44:58 GMT
|
82
78
|
Content-Length:
|
83
|
-
- '
|
79
|
+
- '206'
|
84
80
|
Connection:
|
85
81
|
- close
|
86
82
|
body:
|
87
83
|
encoding: UTF-8
|
88
84
|
string: |-
|
89
|
-
[{"Command":"/while","Created":
|
85
|
+
[{"Command":"/while","Created":1403811778,"Id":"e3ef53f0c6fc463801a85b9c8d9b2fe348600c2e529c59fa0592da739912224d","Image":"41b70f59d9b6","Names":["/sleepy_yonath"],"Ports":[],"Status":"Up About a minute"}
|
90
86
|
]
|
91
87
|
http_version:
|
92
|
-
recorded_at:
|
88
|
+
recorded_at: Thu, 26 Jun 2014 19:44:58 GMT
|
93
89
|
- request:
|
94
90
|
method: get
|
95
|
-
uri: unix:///var/run/docker.sock/v1.
|
91
|
+
uri: unix:///var/run/docker.sock/v1.12/containers/json?all=true
|
96
92
|
body:
|
97
93
|
encoding: US-ASCII
|
98
94
|
string: ''
|
99
95
|
headers:
|
100
96
|
User-Agent:
|
101
|
-
- Swipely/Docker-API 1.11.
|
97
|
+
- Swipely/Docker-API 1.11.2
|
102
98
|
Content-Type:
|
103
99
|
- text/plain
|
104
100
|
response:
|
@@ -109,7 +105,7 @@ http_interactions:
|
|
109
105
|
Content-Type:
|
110
106
|
- application/json
|
111
107
|
Date:
|
112
|
-
-
|
108
|
+
- Thu, 26 Jun 2014 19:44:58 GMT
|
113
109
|
Connection:
|
114
110
|
- close
|
115
111
|
Transfer-Encoding:
|
@@ -117,26 +113,52 @@ http_interactions:
|
|
117
113
|
body:
|
118
114
|
encoding: UTF-8
|
119
115
|
string: |-
|
120
|
-
[{"Command":"ls","Created":
|
121
|
-
,{"Command":"true","Created":
|
122
|
-
,{"Command":"test -d /foo","Created":
|
123
|
-
,{"Command":"pwd","Created":
|
124
|
-
,{"Command":"pwd","Created":
|
125
|
-
,{"Command":"rm -rf / --no-preserve-root","Created":
|
126
|
-
,{"Command":"/
|
127
|
-
,{"Command":"
|
128
|
-
,{"Command":"
|
129
|
-
,{"Command":"
|
130
|
-
,{"Command":"
|
131
|
-
,{"Command":"echo hello","Created":
|
132
|
-
,{"Command":"
|
133
|
-
,{"Command":"
|
134
|
-
,{"Command":"
|
135
|
-
,{"Command":"
|
136
|
-
,{"Command":"
|
137
|
-
,{"Command":"bash","Created":
|
138
|
-
,{"Command":"
|
116
|
+
[{"Command":"ls","Created":1403811898,"Id":"e2c48362ec04bb452fbad5c3b863cd7d36a02f609f79bd60c53f177156cb8d89","Image":"base:latest","Names":["/elegant_davinci"],"Ports":[],"Status":""}
|
117
|
+
,{"Command":"true","Created":1403811884,"Id":"51540acbefe569857cb71839e23cd88fe47b56fcc241bcb8af0c4ae7998ef12d","Image":"base:latest","Names":["/condescending_shockley"],"Ports":[],"Status":"Exited (2) 13 seconds ago"}
|
118
|
+
,{"Command":"test -d /foo","Created":1403811874,"Id":"8ca74b5b1eb86837a183544a09672418b8f94ffebfc2e4734b997cc444b90a84","Image":"base:latest","Names":["/sad_bohr"],"Ports":[],"Status":"Exited (0) 23 seconds ago"}
|
119
|
+
,{"Command":"pwd","Created":1403811850,"Id":"f67711bda71de43c2d9998990ee1442023e71ccd30775adcc5e115293351292f","Image":"base:latest","Names":["/distracted_darwin"],"Ports":[],"Status":"Exited (0) 46 seconds ago"}
|
120
|
+
,{"Command":"pwd","Created":1403811845,"Id":"91edd209b1419fd60a4da8e31b1d17d4b060400077b6b00cf855004e28e60cd1","Image":"base:latest","Names":["/naughty_hoover"],"Ports":[],"Status":"Exited (0) 52 seconds ago"}
|
121
|
+
,{"Command":"rm -rf / --no-preserve-root","Created":1403811822,"Id":"ac19ec0a08d3beb57e4eff6e978a6bea402ea2e6cdfd06dd2d8826e24fc1bc22","Image":"base:latest","Names":["/silly_leakey"],"Ports":[],"Status":"Exited (1) About a minute ago"}
|
122
|
+
,{"Command":"touch /test","Created":1403811805,"Id":"e94213e6d92bbc20ba9b4fb299902a0edb7e60e78f6183ed39d35c4d0b83f395","Image":"base:latest","Names":["/nostalgic_curie"],"Ports":[],"Status":"Exited (0) About a minute ago"}
|
123
|
+
,{"Command":"touch /test","Created":1403811798,"Id":"e36507d15801857e28153923c2968f77112a40aa5df02251ee7ef83d0db9097a","Image":"base:latest","Names":["/sad_shockley"],"Ports":[],"Status":"Exited (0) About a minute ago"}
|
124
|
+
,{"Command":"/while","Created":1403811778,"Id":"e3ef53f0c6fc463801a85b9c8d9b2fe348600c2e529c59fa0592da739912224d","Image":"41b70f59d9b6","Names":["/sleepy_yonath"],"Ports":[],"Status":"Up About a minute"}
|
125
|
+
,{"Command":"rm -rf /root","Created":1403811759,"Id":"6fc279ae9f0858a7d0fd877f6df7f81e6487848af95712ec9dd1f12e587d24ce","Image":"base:latest","Names":["/trusting_galileo"],"Ports":[],"Status":"Exited (0) 2 minutes ago"}
|
126
|
+
,{"Command":"true","Created":1403811740,"Id":"36912cef208b36a175e7f48dd3bffc5a698f7eb818b7bcbf56343209f8fc473b","Image":"base:latest","Names":["/bob"],"Ports":[],"Status":""}
|
127
|
+
,{"Command":"echo hello","Created":1403811721,"Id":"bcdc58f638d20be4172508fc80d191317628d55f48eeb274abc9de5f9c2761d0","Image":"base:latest","Names":["/grave_bartik"],"Ports":[],"Status":""}
|
128
|
+
,{"Command":"echo hello","Created":1403811717,"Id":"6968a8299df95ffad447a6b364d0cb9cfeb1bcc28d0ef09356f35bdeca57d953","Image":"base:latest","Names":["/goofy_fermat"],"Ports":[],"Status":""}
|
129
|
+
,{"Command":"true","Created":1403811562,"Id":"cf367fe2a4eaf9908dd1f6c6d988b6b7391cebfbe827435ee7204659fa2d6ec1","Image":"base:latest","Names":["/thirsty_nobel"],"Ports":[],"Status":""}
|
130
|
+
,{"Command":"/bin/sh -c 'exec docker-registry'","Created":1403809177,"Id":"5759e35c33773e7a1ecaee390fa7db4097f1030995282da972076979e345c709","Image":"localhost:5000/registry:test","Names":["/stupefied_meitner"],"Ports":[],"Status":"Exited (0) 15 minutes ago"}
|
131
|
+
,{"Command":"/bin/sh -c 'exec docker-registry'","Created":1403809143,"Id":"a36c555f919ec5ccc717cbaf50c655dcc4db776c5bcbb92a4bb05f7e80ca32a1","Image":"localhost:5000/registry:test","Names":["/sharp_turing"],"Ports":[],"Status":"Exited (0) 45 minutes ago"}
|
132
|
+
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402430887,"Id":"bb24a1dbb5fa6e7204101e9f0e47c11944d3400d68076c0df9dbec40daef9a5e","Image":"795d6b82162f","Names":["/stupefied_morse"],"Ports":[{"IP":"0.0.0.0","PrivatePort":8080,"PublicPort":8080,"Type":"tcp"}],"Status":"Exited (-1) 2 weeks ago"}
|
133
|
+
,{"Command":"bash","Created":1402430685,"Id":"6123f38072655a1587a67e4a7afc4cd4374a23e2dcc1e0f302ba67902ff2aa6c","Image":"795d6b82162f","Names":["/naughty_shockley"],"Ports":[{"IP":"0.0.0.0","PrivatePort":8080,"PublicPort":8080,"Type":"tcp"}],"Status":"Exited (130) 2 weeks ago"}
|
134
|
+
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402430595,"Id":"0cb45d8388407844b0e4c9fc4b691d5a81f27a6ed75ac69c26aa9ebf37d9ecae","Image":"795d6b82162f","Names":["/angry_heisenberg"],"Ports":[{"IP":"0.0.0.0","PrivatePort":8080,"PublicPort":8080,"Type":"tcp"}],"Status":"Exited (-1) 2 weeks ago"}
|
135
|
+
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402430547,"Id":"342f632dbf963b429e442b238a236ab3cf91885e71233d853dd2b405e32e4863","Image":"795d6b82162f","Names":["/jolly_heisenberg"],"Ports":[],"Status":"Exited (-1) 2 weeks ago"}
|
136
|
+
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402430293,"Id":"3164a68c936d209a2b1e2da323b52e1b043bc17fbd41f06ae8a356bd6c06152b","Image":"24b631358e16","Names":["/agitated_wright"],"Ports":[],"Status":"Exited (0) 2 weeks ago"}
|
137
|
+
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402430143,"Id":"33ccfbb00c9717cb24818072db9752401c1e099d7447cf413b9ee571e1bcd012","Image":"2e68e4667d3f","Names":["/determined_bardeen"],"Ports":[],"Status":"Exited (0) 2 weeks ago"}
|
138
|
+
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402429919,"Id":"cd063c45640ce588466f6d845e5a2fc25921f113a5ccbeefa9317fdcd8ee908a","Image":"76587bc93b7d","Names":["/boring_nobel"],"Ports":[],"Status":"Exited (0) 2 weeks ago"}
|
139
|
+
,{"Command":"/bin/bash","Created":1402429676,"Id":"bbc878209d4d7b98fe044e02ea13850f19d95ce56fb1428de1a81e426e74a735","Image":"76587bc93b7d","Names":["/tender_goldstine"],"Ports":[],"Status":"Exited (1) 2 weeks ago"}
|
140
|
+
,{"Command":"/bin/bash","Created":1402429664,"Id":"1d43aae6eb71e6b402f0df19509420fe15f8c1c097711dd97b9e41d55b6220c7","Image":"76587bc93b7d","Names":["/mad_tesla"],"Ports":[],"Status":"Exited (0) 2 weeks ago"}
|
141
|
+
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402429649,"Id":"2c6c24d1f0da0d3021c60a9dcd9e648daf6be4a40642ab8cce35480cf931e648","Image":"76587bc93b7d","Names":["/pensive_rosalind"],"Ports":[],"Status":"Exited (0) 2 weeks ago"}
|
142
|
+
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402429637,"Id":"cf21c9ae97e204c05748a596b3ebd2fc7e5793c33fd9ee787be78a2159d193fe","Image":"76587bc93b7d","Names":["/determined_ardinghelli"],"Ports":[{"IP":"0.0.0.0","PrivatePort":6379,"PublicPort":49160,"Type":"tcp"}],"Status":"Exited (0) 2 weeks ago"}
|
143
|
+
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402429619,"Id":"217b0f8aa6504f460de1ef2a559a8916c957a079adce597d3deb0c6046f2d7db","Image":"76587bc93b7d","Names":["/grave_torvalds"],"Ports":[{"IP":"0.0.0.0","PrivatePort":6379,"PublicPort":49159,"Type":"tcp"}],"Status":"Exited (0) 2 weeks ago"}
|
144
|
+
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402429610,"Id":"a7104142e02b3a64bf99e0489ed69eba92aaca2f1cb60ef8221bec7e90099263","Image":"76587bc93b7d","Names":["/thirsty_hoover"],"Ports":[{"IP":"127.0.0.1","PrivatePort":6379,"PublicPort":49158,"Type":"tcp"}],"Status":"Exited (0) 2 weeks ago"}
|
145
|
+
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402429596,"Id":"18c4d104ba348ae8af2a7f0ebbe1435011570dabcece81b10ba7f735bb52c142","Image":"76587bc93b7d","Names":["/backstabbing_mestorf"],"Ports":[],"Status":"Exited (0) 2 weeks ago"}
|
146
|
+
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402429583,"Id":"c9e54634fc5c8fb250c9137092e8cc047ab7496655b6d656a6a387b5994e4a3e","Image":"0cf0d2c9f3c9","Names":["/high_goodall"],"Ports":[],"Status":"Exited (0) 2 weeks ago"}
|
147
|
+
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402429574,"Id":"1900baf794a5734e406ca6226d5a5f62d85f2ad3db0a886654f15e692729741a","Image":"0cf0d2c9f3c9","Names":["/agitated_kirch"],"Ports":[{"IP":"127.0.0.1","PrivatePort":6379,"PublicPort":49157,"Type":"tcp"}],"Status":"Exited (0) 2 weeks ago"}
|
148
|
+
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402428859,"Id":"791283f719e9089e4c97ad5ea7096df317c5378db0255a7e9846830f326f11ad","Image":"0cf0d2c9f3c9","Names":["/romantic_fermi"],"Ports":[{"IP":"127.0.0.1","PrivatePort":6379,"PublicPort":49156,"Type":"tcp"}],"Status":"Exited (0) 2 weeks ago"}
|
149
|
+
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402427020,"Id":"b32593d5dfb04c83db55e798f52ecc89f57102b5d672cde4f0b55d5f4d3b856c","Image":"0cf0d2c9f3c9","Names":["/naughty_euclid"],"Ports":[{"IP":"127.0.0.1","PrivatePort":6379,"PublicPort":49155,"Type":"tcp"}],"Status":"Exited (0) 2 weeks ago"}
|
150
|
+
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402427017,"Id":"cdcab97cd8eeaeb8696024c92e28aedc182b2f3519e4e0445585f8fb501e44eb","Image":"0cf0d2c9f3c9","Names":["/high_lumiere"],"Ports":[],"Status":""}
|
151
|
+
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402426976,"Id":"1e095cd0c96b76a1131dd47dc0c54c153200320647ba1643c0b6e4efd397f1b5","Image":"0cf0d2c9f3c9","Names":["/goofy_wozniak"],"Ports":[],"Status":""}
|
152
|
+
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402426959,"Id":"53839f4d1e1c26db22b91db8e9ee2477822140c8397ebcdae627b5e4b4df27ce","Image":"0cf0d2c9f3c9","Names":["/drunk_ritchie"],"Ports":[],"Status":""}
|
153
|
+
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402426953,"Id":"5906226b2dd64485bc917d7c7296bfba04589b0954fdf793f122236e04d0b58c","Image":"0cf0d2c9f3c9","Names":["/jolly_fermi"],"Ports":[],"Status":""}
|
154
|
+
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402426945,"Id":"03ea0209a642de9adba85c2aea67802806eb23de7e9c3d886a9ab9cfcd708578","Image":"0cf0d2c9f3c9","Names":["/loving_wilson"],"Ports":[{"IP":"127.0.0.1","PrivatePort":6379,"PublicPort":49154,"Type":"tcp"}],"Status":"Exited (0) 2 weeks ago"}
|
155
|
+
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402426934,"Id":"428e6478f665780fe3300d316b3789c92575bbe728e196b1a33655096dfb9baa","Image":"0cf0d2c9f3c9","Names":["/angry_rosalind"],"Ports":[{"IP":"0.0.0.0","PrivatePort":6379,"PublicPort":49153,"Type":"tcp"}],"Status":"Exited (0) 2 weeks ago"}
|
156
|
+
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402426799,"Id":"fc77637ca9d934565017ebe326ed29263778443831b799977257c2fa4255e666","Image":"0cf0d2c9f3c9","Names":["/sharp_lovelace"],"Ports":[],"Status":"Exited (0) 2 weeks ago"}
|
157
|
+
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle install'","Created":1402425989,"Id":"dc372caeee6f2d1f797ca4986c1c917aef25285cf0a97f3453a9c8ee6de226ef","Image":"f39385fcb372","Names":["/cocky_galileo"],"Ports":[],"Status":"Exited (5) 2 weeks ago"}
|
158
|
+
,{"Command":"/bin/sh -c 'gem install atomic -v '1.1.10' --no-user-install'","Created":1402425859,"Id":"bff3f8dff516f8ec53890e52e30f07ea6a34887d12de2133e1ec2f03a47e7a33","Image":"e41a4fd75845","Names":["/thirsty_newton"],"Ports":[],"Status":"Exited (1) 2 weeks ago"}
|
159
|
+
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle install'","Created":1402425808,"Id":"c7f35941f9683ee1d6b78b25e323d6678ed02a8390b48f7609fd506b7e1dbfe9","Image":"4d1584ae379a","Names":["/stupefied_heisenberg"],"Ports":[],"Status":"Exited (5) 2 weeks ago"}
|
160
|
+
,{"Command":"/bin/sh -c 'gem install bundler --no-user-install'","Created":1402425760,"Id":"e1d25c1ddd9a471fdbc381b95820aba9f84b334efe9b815ffbf63cfca89399d7","Image":"e607630fc5e6","Names":["/insane_fermi"],"Ports":[],"Status":"Exited (0) 2 weeks ago"}
|
139
161
|
]
|
140
162
|
http_version:
|
141
|
-
recorded_at:
|
163
|
+
recorded_at: Thu, 26 Jun 2014 19:44:58 GMT
|
142
164
|
recorded_with: VCR 2.9.2
|
data/spec/vcr/Docker_Container/_logs/when_not_selecting_any_stream/returns_the_error_message.yml
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: unix:///var/run/docker.sock/v1.
|
5
|
+
uri: unix:///var/run/docker.sock/v1.12/containers/create
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"Cmd":"echo hello","Image":"base"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.11.
|
11
|
+
- Swipely/Docker-API 1.11.2
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
response:
|
@@ -19,7 +19,7 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/json
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Thu, 26 Jun 2014 19:41:57 GMT
|
23
23
|
Content-Length:
|
24
24
|
- '90'
|
25
25
|
Connection:
|
@@ -27,18 +27,18 @@ http_interactions:
|
|
27
27
|
body:
|
28
28
|
encoding: UTF-8
|
29
29
|
string: |
|
30
|
-
{"Id":"
|
30
|
+
{"Id":"6968a8299df95ffad447a6b364d0cb9cfeb1bcc28d0ef09356f35bdeca57d953","Warnings":null}
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
32
|
+
recorded_at: Thu, 26 Jun 2014 19:41:57 GMT
|
33
33
|
- request:
|
34
34
|
method: get
|
35
|
-
uri: unix:///var/run/docker.sock/v1.
|
35
|
+
uri: unix:///var/run/docker.sock/v1.12/containers/6968a8299df95ffad447a6b364d0cb9cfeb1bcc28d0ef09356f35bdeca57d953/logs
|
36
36
|
body:
|
37
37
|
encoding: US-ASCII
|
38
38
|
string: ''
|
39
39
|
headers:
|
40
40
|
User-Agent:
|
41
|
-
- Swipely/Docker-API 1.11.
|
41
|
+
- Swipely/Docker-API 1.11.2
|
42
42
|
Content-Type:
|
43
43
|
- text/plain
|
44
44
|
response:
|
@@ -47,7 +47,7 @@ http_interactions:
|
|
47
47
|
message:
|
48
48
|
headers:
|
49
49
|
Date:
|
50
|
-
-
|
50
|
+
- Thu, 26 Jun 2014 19:41:57 GMT
|
51
51
|
Content-Type:
|
52
52
|
- application/octet-stream
|
53
53
|
Connection:
|
@@ -58,8 +58,8 @@ http_interactions:
|
|
58
58
|
encoding: UTF-8
|
59
59
|
string: !binary |-
|
60
60
|
AgAAAAAAACRZb3UgbXVzdCBjaG9vc2UgYXQgbGVhc3Qgb25lIHN0cmVhbQoB
|
61
|
-
|
62
|
-
|
61
|
+
AAAAAAAAPEVycm9yIHJ1bm5pbmcgbG9ncyBqb2I6IFlvdSBtdXN0IGNob29z
|
62
|
+
ZSBhdCBsZWFzdCBvbmUgc3RyZWFtCg==
|
63
63
|
http_version:
|
64
|
-
recorded_at:
|
64
|
+
recorded_at: Thu, 26 Jun 2014 19:41:57 GMT
|
65
65
|
recorded_with: VCR 2.9.2
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: unix:///var/run/docker.sock/v1.
|
5
|
+
uri: unix:///var/run/docker.sock/v1.12/containers/create
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"Cmd":"echo hello","Image":"base"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.11.
|
11
|
+
- Swipely/Docker-API 1.11.2
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
response:
|
@@ -19,7 +19,7 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/json
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Thu, 26 Jun 2014 19:42:02 GMT
|
23
23
|
Content-Length:
|
24
24
|
- '90'
|
25
25
|
Connection:
|
@@ -27,18 +27,18 @@ http_interactions:
|
|
27
27
|
body:
|
28
28
|
encoding: UTF-8
|
29
29
|
string: |
|
30
|
-
{"Id":"
|
30
|
+
{"Id":"bcdc58f638d20be4172508fc80d191317628d55f48eeb274abc9de5f9c2761d0","Warnings":null}
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
32
|
+
recorded_at: Thu, 26 Jun 2014 19:42:02 GMT
|
33
33
|
- request:
|
34
34
|
method: get
|
35
|
-
uri: unix:///var/run/docker.sock/v1.
|
35
|
+
uri: unix:///var/run/docker.sock/v1.12/containers/bcdc58f638d20be4172508fc80d191317628d55f48eeb274abc9de5f9c2761d0/logs?stdout=1
|
36
36
|
body:
|
37
37
|
encoding: US-ASCII
|
38
38
|
string: ''
|
39
39
|
headers:
|
40
40
|
User-Agent:
|
41
|
-
- Swipely/Docker-API 1.11.
|
41
|
+
- Swipely/Docker-API 1.11.2
|
42
42
|
Content-Type:
|
43
43
|
- text/plain
|
44
44
|
response:
|
@@ -47,7 +47,7 @@ http_interactions:
|
|
47
47
|
message:
|
48
48
|
headers:
|
49
49
|
Date:
|
50
|
-
-
|
50
|
+
- Thu, 26 Jun 2014 19:42:02 GMT
|
51
51
|
Content-Length:
|
52
52
|
- '0'
|
53
53
|
Content-Type:
|
@@ -58,5 +58,5 @@ http_interactions:
|
|
58
58
|
encoding: UTF-8
|
59
59
|
string: ''
|
60
60
|
http_version:
|
61
|
-
recorded_at:
|
61
|
+
recorded_at: Thu, 26 Jun 2014 19:42:02 GMT
|
62
62
|
recorded_with: VCR 2.9.2
|