docker-api 1.11.2 → 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/docker/image.rb +10 -10
- data/lib/docker/version.rb +2 -2
- data/spec/docker/container_spec.rb +0 -8
- data/spec/docker/image_spec.rb +3 -3
- data/spec/docker_spec.rb +6 -4
- data/spec/vcr/Docker/_authenticate_/with_valid_credentials/logs_in_and_sets_the_creds.yml +6 -6
- data/spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml +7 -7
- data/spec/vcr/Docker/_validate_version/when_nothing_is_raised/validate_version_/.yml +7 -7
- data/spec/vcr/Docker/_version/returns_the_version_as_a_Hash.yml +7 -7
- data/spec/vcr/Docker_Container/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml +77 -65
- data/spec/vcr/Docker_Container/_attach/with_normal_sized_chunks/yields_each_chunk.yml +15 -15
- data/spec/vcr/Docker_Container/_attach/with_very_small_chunks/yields_each_chunk.yml +15 -15
- data/spec/vcr/Docker_Container/_changes/returns_the_changes_as_an_array.yml +22 -24
- data/spec/vcr/Docker_Container/_commit/creates_a_new_Image_from_the_Container_s_changes.yml +17 -17
- data/spec/vcr/Docker_Container/_commit/if_run_is_passed_it_saves_the_command_in_the_image/saves_the_command.yml +12 -12
- data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_directory/yields_each_chunk_of_the_tarred_directory.yml +41 -41
- data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_file/yields_each_chunk_of_the_tarred_file.yml +26 -26
- data/spec/vcr/Docker_Container/_create/when_creating_a_container_named_bob/should_have_name_set_to_bob.yml +13 -13
- data/spec/vcr/Docker_Container/_create/when_the_Container_does_not_yet_exist/when_the_HTTP_request_returns_a_200/sets_the_id.yml +7 -7
- data/spec/vcr/Docker_Container/_delete/deletes_the_container.yml +17 -17
- data/spec/vcr/Docker_Container/_export/yields_each_chunk.yml +453693 -17
- data/spec/vcr/Docker_Container/_get/when_the_HTTP_response_is_a_200/materializes_the_Container_into_a_Docker_Container.yml +13 -13
- data/spec/vcr/Docker_Container/_json/returns_the_description_as_a_Hash.yml +13 -13
- data/spec/vcr/Docker_Container/_kill/kills_the_container.yml +41 -35
- 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 +11 -11
- data/spec/vcr/Docker_Container/_restart/restarts_the_container.yml +42 -42
- data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_does_not_return_status_code_of_0/raises_an_error.yml +16 -16
- 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 +46 -47
- data/spec/vcr/Docker_Container/_start/starts_the_container.yml +23 -23
- data/spec/vcr/Docker_Container/_stop/stops_the_container.yml +45 -39
- data/spec/vcr/Docker_Container/_top/returns_the_top_commands_as_an_Array.yml +27 -23
- data/spec/vcr/Docker_Container/_wait/waits_for_the_command_to_finish.yml +16 -16
- data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/and_a_command_runs_for_too_long/raises_a_ServerError.yml +12 -12
- data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/sets_the_read_timeout_to_that_amount_of_time.yml +16 -16
- data/spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml +13 -33
- data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/with_a_block_capturing_build_output/calls_the_block_and_passes_build_output.yml +6 -6
- 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 -27
- data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/without_query_parameters/builds_an_image.yml +6 -6
- data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml +6 -6
- 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 +11 -7
- data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_credentials_passed/sends_Docker_creds.yml +8 -196
- data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_no_query_parameters/builds_the_image.yml +24 -20
- 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 +46 -30
- 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 +21 -669
- data/spec/vcr/Docker_Image/_get/when_the_image_does_exist/returns_the_new_image.yml +7 -7
- data/spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml +9 -9
- data/spec/vcr/Docker_Image/_import/when_the_argument_is_a_URI/when_the_URI_is_invalid/raises_an_error.yml +27 -25
- data/spec/vcr/Docker_Image/_import/when_the_argument_is_a_URI/when_the_URI_is_valid/returns_an_Image.yml +12 -12
- data/spec/vcr/Docker_Image/_import/when_the_file_does_exist/creates_the_Image.yml +6 -6
- data/spec/vcr/Docker_Image/_insert/inserts_the_url_s_file_into_a_new_Image.yml +27 -33
- data/spec/vcr/Docker_Image/_insert_local/when_a_direcory_is_passed/inserts_the_directory.yml +29 -878
- data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/creates_a_new_image.yml +29 -45
- data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/leave_no_intermediate_containers.yml +29 -51
- data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_exist/creates_a_new_Image_that_has_that_file.yml +29 -28
- data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_not_exist/raises_an_error.yml +6 -6
- data/spec/vcr/Docker_Image/_insert_local/when_there_are_multiple_files_passed/creates_a_new_Image_that_has_each_file.yml +32 -31
- data/spec/vcr/Docker_Image/_json/returns_additional_information_about_image_image.yml +11 -11
- data/spec/vcr/Docker_Image/_push/pushes_the_Image.yml +67 -227
- data/spec/vcr/Docker_Image/_push/when_there_are_no_credentials/still_pushes.yml +61 -43
- data/spec/vcr/Docker_Image/_refresh_/updates_the_info_hash.yml +40 -203
- data/spec/vcr/Docker_Image/_remove/removes_the_Image.yml +22 -23
- data/spec/vcr/Docker_Image/_run/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml +19 -19
- data/spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml +19 -19
- 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 +77 -72
- data/spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml +9 -9
- metadata +3 -3
@@ -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.11/containers/create
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: '{"Cmd":["ls"],"Image":"base"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.
|
11
|
+
- Swipely/Docker-API 1.11.1
|
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
|
+
- Fri, 06 Jun 2014 13:37:00 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":"864a3251d9c7a5a06d7bb64ed24bb790e1b3bcce9f91094d1d788b395821346e","Warnings":null}
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
32
|
+
recorded_at: Fri, 06 Jun 2014 13:37:00 GMT
|
33
33
|
- request:
|
34
34
|
method: get
|
35
|
-
uri: unix:///var/run/docker.sock/v1.
|
35
|
+
uri: unix:///var/run/docker.sock/v1.11/containers/864a3251d9c7a5a06d7bb64ed24bb790e1b3bcce9f91094d1d788b395821346e/json
|
36
36
|
body:
|
37
37
|
encoding: US-ASCII
|
38
38
|
string: ''
|
39
39
|
headers:
|
40
40
|
User-Agent:
|
41
|
-
- Swipely/Docker-API 1.
|
41
|
+
- Swipely/Docker-API 1.11.1
|
42
42
|
Content-Type:
|
43
43
|
- text/plain
|
44
44
|
response:
|
@@ -49,14 +49,14 @@ http_interactions:
|
|
49
49
|
Content-Type:
|
50
50
|
- application/json
|
51
51
|
Date:
|
52
|
-
-
|
52
|
+
- Fri, 06 Jun 2014 13:37:00 GMT
|
53
53
|
Content-Length:
|
54
|
-
- '
|
54
|
+
- '1213'
|
55
55
|
Connection:
|
56
56
|
- close
|
57
57
|
body:
|
58
58
|
encoding: UTF-8
|
59
|
-
string:
|
59
|
+
string: '{"ID":"864a3251d9c7a5a06d7bb64ed24bb790e1b3bcce9f91094d1d788b395821346e","Created":"2014-06-06T13:36:59.900221999Z","Path":"ls","Args":[],"Config":{"Hostname":"864a3251d9c7","Domainname":"","User":"","Memory":0,"MemorySwap":0,"CpuShares":0,"AttachStdin":false,"AttachStdout":false,"AttachStderr":false,"PortSpecs":null,"ExposedPorts":null,"Tty":false,"OpenStdin":false,"StdinOnce":false,"Env":null,"Cmd":["ls"],"Image":"base","Volumes":null,"WorkingDir":"","Entrypoint":null,"NetworkDisabled":false,"OnBuild":null},"State":{"Running":false,"Pid":0,"ExitCode":0,"StartedAt":"0001-01-01T00:00:00Z","FinishedAt":"0001-01-01T00:00:00Z"},"Image":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","NetworkSettings":{"IPAddress":"","IPPrefixLen":0,"Gateway":"","Bridge":"","PortMapping":null,"Ports":null},"ResolvConfPath":"","HostnamePath":"","HostsPath":"","Name":"/clever_colden","Driver":"devicemapper","ExecDriver":"native-0.2","MountLabel":"","ProcessLabel":"","Volumes":null,"VolumesRW":null,"HostConfig":{"Binds":null,"ContainerIDFile":"","LxcConf":null,"Privileged":false,"PortBindings":null,"Links":null,"PublishAllPorts":false,"Dns":null,"DnsSearch":null,"VolumesFrom":null,"NetworkMode":""}}'
|
60
60
|
http_version:
|
61
|
-
recorded_at:
|
62
|
-
recorded_with: VCR 2.
|
61
|
+
recorded_at: Fri, 06 Jun 2014 13:37:00 GMT
|
62
|
+
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.11/containers/create
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: '{"Cmd":["true"],"Image":"base"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.
|
11
|
+
- Swipely/Docker-API 1.11.1
|
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
|
+
- Fri, 06 Jun 2014 13:36:32 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":"9f7808dd7512fa74bd22f748b04c02694ac13f9fdb3936ddf73858cdfc667627","Warnings":null}
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
32
|
+
recorded_at: Fri, 06 Jun 2014 13:36:32 GMT
|
33
33
|
- request:
|
34
34
|
method: get
|
35
|
-
uri: unix:///var/run/docker.sock/v1.
|
35
|
+
uri: unix:///var/run/docker.sock/v1.11/containers/9f7808dd7512fa74bd22f748b04c02694ac13f9fdb3936ddf73858cdfc667627/json
|
36
36
|
body:
|
37
37
|
encoding: US-ASCII
|
38
38
|
string: ''
|
39
39
|
headers:
|
40
40
|
User-Agent:
|
41
|
-
- Swipely/Docker-API 1.
|
41
|
+
- Swipely/Docker-API 1.11.1
|
42
42
|
Content-Type:
|
43
43
|
- text/plain
|
44
44
|
response:
|
@@ -49,14 +49,14 @@ http_interactions:
|
|
49
49
|
Content-Type:
|
50
50
|
- application/json
|
51
51
|
Date:
|
52
|
-
-
|
52
|
+
- Fri, 06 Jun 2014 13:36:32 GMT
|
53
53
|
Content-Length:
|
54
|
-
- '
|
54
|
+
- '1221'
|
55
55
|
Connection:
|
56
56
|
- close
|
57
57
|
body:
|
58
58
|
encoding: UTF-8
|
59
|
-
string:
|
59
|
+
string: '{"ID":"9f7808dd7512fa74bd22f748b04c02694ac13f9fdb3936ddf73858cdfc667627","Created":"2014-06-06T13:36:31.878727014Z","Path":"true","Args":[],"Config":{"Hostname":"9f7808dd7512","Domainname":"","User":"","Memory":0,"MemorySwap":0,"CpuShares":0,"AttachStdin":false,"AttachStdout":false,"AttachStderr":false,"PortSpecs":null,"ExposedPorts":null,"Tty":false,"OpenStdin":false,"StdinOnce":false,"Env":null,"Cmd":["true"],"Image":"base","Volumes":null,"WorkingDir":"","Entrypoint":null,"NetworkDisabled":false,"OnBuild":null},"State":{"Running":false,"Pid":0,"ExitCode":0,"StartedAt":"0001-01-01T00:00:00Z","FinishedAt":"0001-01-01T00:00:00Z"},"Image":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","NetworkSettings":{"IPAddress":"","IPPrefixLen":0,"Gateway":"","Bridge":"","PortMapping":null,"Ports":null},"ResolvConfPath":"","HostnamePath":"","HostsPath":"","Name":"/berserk_albattani","Driver":"devicemapper","ExecDriver":"native-0.2","MountLabel":"","ProcessLabel":"","Volumes":null,"VolumesRW":null,"HostConfig":{"Binds":null,"ContainerIDFile":"","LxcConf":null,"Privileged":false,"PortBindings":null,"Links":null,"PublishAllPorts":false,"Dns":null,"DnsSearch":null,"VolumesFrom":null,"NetworkMode":""}}'
|
60
60
|
http_version:
|
61
|
-
recorded_at:
|
62
|
-
recorded_with: VCR 2.
|
61
|
+
recorded_at: Fri, 06 Jun 2014 13:36:32 GMT
|
62
|
+
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.11/containers/create
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: '{"Cmd":["ls"],"Image":"base"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.
|
11
|
+
- Swipely/Docker-API 1.11.1
|
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
|
+
- Fri, 06 Jun 2014 13:36:45 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":"c843e3cc949ba97facdf6ce574af1e19abaed630a7a5118000f2baac202daf3f","Warnings":null}
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
32
|
+
recorded_at: Fri, 06 Jun 2014 13:36:45 GMT
|
33
33
|
- request:
|
34
34
|
method: post
|
35
|
-
uri: unix:///var/run/docker.sock/v1.
|
35
|
+
uri: unix:///var/run/docker.sock/v1.11/containers/c843e3cc949ba97facdf6ce574af1e19abaed630a7a5118000f2baac202daf3f/kill
|
36
36
|
body:
|
37
37
|
encoding: UTF-8
|
38
|
-
string:
|
38
|
+
string: '{}'
|
39
39
|
headers:
|
40
40
|
User-Agent:
|
41
|
-
- Swipely/Docker-API 1.
|
41
|
+
- Swipely/Docker-API 1.11.1
|
42
42
|
Content-Type:
|
43
43
|
- application/json
|
44
44
|
response:
|
@@ -47,7 +47,7 @@ http_interactions:
|
|
47
47
|
message:
|
48
48
|
headers:
|
49
49
|
Date:
|
50
|
-
-
|
50
|
+
- Fri, 06 Jun 2014 13:36:45 GMT
|
51
51
|
Content-Length:
|
52
52
|
- '0'
|
53
53
|
Content-Type:
|
@@ -58,16 +58,16 @@ http_interactions:
|
|
58
58
|
encoding: UTF-8
|
59
59
|
string: ''
|
60
60
|
http_version:
|
61
|
-
recorded_at:
|
61
|
+
recorded_at: Fri, 06 Jun 2014 13:36:45 GMT
|
62
62
|
- request:
|
63
63
|
method: get
|
64
|
-
uri: unix:///var/run/docker.sock/v1.
|
64
|
+
uri: unix:///var/run/docker.sock/v1.11/containers/json
|
65
65
|
body:
|
66
66
|
encoding: US-ASCII
|
67
67
|
string: ''
|
68
68
|
headers:
|
69
69
|
User-Agent:
|
70
|
-
- Swipely/Docker-API 1.
|
70
|
+
- Swipely/Docker-API 1.11.1
|
71
71
|
Content-Type:
|
72
72
|
- text/plain
|
73
73
|
response:
|
@@ -78,27 +78,27 @@ http_interactions:
|
|
78
78
|
Content-Type:
|
79
79
|
- application/json
|
80
80
|
Date:
|
81
|
-
-
|
81
|
+
- Fri, 06 Jun 2014 13:36:45 GMT
|
82
82
|
Content-Length:
|
83
|
-
- '
|
83
|
+
- '199'
|
84
84
|
Connection:
|
85
85
|
- close
|
86
86
|
body:
|
87
87
|
encoding: UTF-8
|
88
88
|
string: |-
|
89
|
-
[{"Command":"/while","Created":
|
89
|
+
[{"Command":"/while","Created":1402061799,"Id":"74553200d912dda35c0f8641028d3e42faaf6e41b4337a4e202328414bb2da5e","Image":"5964d75bfbd2","Names":["/angry_brown"],"Ports":[],"Status":"Up 5 seconds"}
|
90
90
|
]
|
91
91
|
http_version:
|
92
|
-
recorded_at:
|
92
|
+
recorded_at: Fri, 06 Jun 2014 13:36:45 GMT
|
93
93
|
- request:
|
94
94
|
method: get
|
95
|
-
uri: unix:///var/run/docker.sock/v1.
|
95
|
+
uri: unix:///var/run/docker.sock/v1.11/containers/json?all=true
|
96
96
|
body:
|
97
97
|
encoding: US-ASCII
|
98
98
|
string: ''
|
99
99
|
headers:
|
100
100
|
User-Agent:
|
101
|
-
- Swipely/Docker-API 1.
|
101
|
+
- Swipely/Docker-API 1.11.1
|
102
102
|
Content-Type:
|
103
103
|
- text/plain
|
104
104
|
response:
|
@@ -109,7 +109,7 @@ http_interactions:
|
|
109
109
|
Content-Type:
|
110
110
|
- application/json
|
111
111
|
Date:
|
112
|
-
-
|
112
|
+
- Fri, 06 Jun 2014 13:36:45 GMT
|
113
113
|
Connection:
|
114
114
|
- close
|
115
115
|
Transfer-Encoding:
|
@@ -117,20 +117,26 @@ http_interactions:
|
|
117
117
|
body:
|
118
118
|
encoding: UTF-8
|
119
119
|
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":"
|
132
|
-
,{"Command":"true","Created":
|
120
|
+
[{"Command":"ls","Created":1402061805,"Id":"c843e3cc949ba97facdf6ce574af1e19abaed630a7a5118000f2baac202daf3f","Image":"base:latest","Names":["/pensive_hopper"],"Ports":[],"Status":""}
|
121
|
+
,{"Command":"true","Created":1402061804,"Id":"443df8d63a3a3072d0bf8d556f798702446bb58240a20c7209943c4fd673cbb6","Image":"base:latest","Names":["/lonely_lumiere"],"Ports":[],"Status":"Exited (2) Less than a second ago"}
|
122
|
+
,{"Command":"test -d /foo","Created":1402061803,"Id":"931f5a5a5c2b4fad7b87e7348d08278321467f83bacf32c8c8a397f08c51646d","Image":"base:latest","Names":["/cranky_curie"],"Ports":[],"Status":"Exited (0) Less than a second ago"}
|
123
|
+
,{"Command":"pwd","Created":1402061803,"Id":"ca222127cb8b1cfd32b49f7bce67a65551ca95c06a39df9d533e526cdd6b3012","Image":"base:latest","Names":["/determined_bartik"],"Ports":[],"Status":"Exited (0) 1 seconds ago"}
|
124
|
+
,{"Command":"pwd","Created":1402061802,"Id":"1cbce47c914fad3c7d384c91cae92c025e3ef68293fcc96cb100e6f88c9a2ef2","Image":"base:latest","Names":["/berserk_sammet"],"Ports":[],"Status":"Exited (0) 2 seconds ago"}
|
125
|
+
,{"Command":"rm -rf / --no-preserve-root","Created":1402061800,"Id":"46a466141579783967dcbc035bc6399649bd43b7f4408ce4e709d233aac5ef14","Image":"base:latest","Names":["/grave_poincare"],"Ports":[],"Status":"Exited (1) 3 seconds ago"}
|
126
|
+
,{"Command":"/while","Created":1402061799,"Id":"74553200d912dda35c0f8641028d3e42faaf6e41b4337a4e202328414bb2da5e","Image":"5964d75bfbd2","Names":["/angry_brown"],"Ports":[],"Status":"Up 5 seconds"}
|
127
|
+
,{"Command":"/bin/sh -c 'printf '#! /bin/sh\nwhile true\ndo\ntrue\ndone\n' \u003e /while \u0026\u0026 chmod +x /while'","Created":1402061795,"Id":"9bae4f8c6a162a4751230b334d7a1883fc05898c5a8674fb2e5f74d13b5fd535","Image":"base:latest","Names":["/stupefied_darwin"],"Ports":[],"Status":"Exited (0) 9 seconds ago"}
|
128
|
+
,{"Command":"rm -rf /root","Created":1402061793,"Id":"e2aa3bf983f31a26fa4ea31f915f33dbb800210fe5155f3e5ec2b7ef2f6f011a","Image":"base:latest","Names":["/agitated_lumiere"],"Ports":[],"Status":"Exited (0) 11 seconds ago"}
|
129
|
+
,{"Command":"true","Created":1402061792,"Id":"b2fffac62786c5b22eebc6e89dcc6146f6d5c7c2d1c87f4047c224594f9fd626","Image":"base:latest","Names":["/bob"],"Ports":[],"Status":""}
|
130
|
+
,{"Command":"echo hello","Created":1402061792,"Id":"43a9245ac3f67d2150845dbe4bb014d1b33f6fe7755f53c0795b793abec025e6","Image":"base:latest","Names":["/nostalgic_brattain"],"Ports":[],"Status":""}
|
131
|
+
,{"Command":"echo hello","Created":1402061792,"Id":"3b94c2244b65ee461a8de220f689efc4f5139952c3acfbcc62b54754fc2d42af","Image":"base:latest","Names":["/loving_mccarthy"],"Ports":[],"Status":""}
|
132
|
+
,{"Command":"true","Created":1402061791,"Id":"9f7808dd7512fa74bd22f748b04c02694ac13f9fdb3936ddf73858cdfc667627","Image":"base:latest","Names":["/berserk_albattani"],"Ports":[],"Status":""}
|
133
|
+
,{"Command":"bash","Created":1401993112,"Id":"a4a956e5908713eeeeacd438d9b1af76aee3a2d2cfd286509879d66688a51a96","Image":"base:latest","Names":["/distracted_davinci"],"Ports":[],"Status":"Exited (0) 19 hours ago"}
|
134
|
+
,{"Command":"pwd","Created":1401992998,"Id":"84417dce0437109b3da550a5e9b26c53cd3c470a10f140665f50936c4cbc6e5c","Image":"cd20e353a62d","Names":["/nostalgic_sinoussi"],"Ports":[],"Status":"Exited (0) 19 hours ago"}
|
135
|
+
,{"Command":"bash","Created":1401992997,"Id":"3fa30cf9b82e719a9e599350e25321ead36454995621c18da0873991911b5dcf","Image":"base:latest","Names":["/jolly_leakey"],"Ports":[],"Status":"Exited (0) 19 hours ago"}
|
136
|
+
,{"Command":"true","Created":1401992995,"Id":"75b8e7c8f01a5ce68062a91fa05b7aea1a6c71a030207ae1ad266633a6cdd4cc","Image":"base:latest","Names":["/sad_wright"],"Ports":[],"Status":""}
|
137
|
+
,{"Command":"bash","Created":1401992994,"Id":"a39a9b9e48ea2a4e0e7448ce2e895284911dad63e1e4a5cf0f4ee23ea11f62a6","Image":"base:latest","Names":["/distracted_yonath"],"Ports":[],"Status":"Exited (0) 19 hours ago"}
|
138
|
+
,{"Command":"touch /test","Created":1401992992,"Id":"bbe024cccc9898f753a96119eb761d447e4d5d750b45c833a573aec71cc2392e","Image":"base:latest","Names":["/prickly_heisenberg"],"Ports":[],"Status":"Exited (0) 19 hours ago"}
|
133
139
|
]
|
134
140
|
http_version:
|
135
|
-
recorded_at:
|
136
|
-
recorded_with: VCR 2.
|
141
|
+
recorded_at: Fri, 06 Jun 2014 13:36:45 GMT
|
142
|
+
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.11/containers/create
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: '{"Cmd":"echo hello","Image":"base"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.
|
11
|
+
- Swipely/Docker-API 1.11.1
|
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
|
-
- Fri,
|
22
|
+
- Fri, 06 Jun 2014 13:36:32 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":"3b94c2244b65ee461a8de220f689efc4f5139952c3acfbcc62b54754fc2d42af","Warnings":null}
|
31
31
|
http_version:
|
32
|
-
recorded_at: Fri,
|
32
|
+
recorded_at: Fri, 06 Jun 2014 13:36:32 GMT
|
33
33
|
- request:
|
34
34
|
method: get
|
35
|
-
uri: unix:///var/run/docker.sock/v1.
|
35
|
+
uri: unix:///var/run/docker.sock/v1.11/containers/3b94c2244b65ee461a8de220f689efc4f5139952c3acfbcc62b54754fc2d42af/logs
|
36
36
|
body:
|
37
37
|
encoding: US-ASCII
|
38
38
|
string: ''
|
39
39
|
headers:
|
40
40
|
User-Agent:
|
41
|
-
- Swipely/Docker-API 1.
|
41
|
+
- Swipely/Docker-API 1.11.1
|
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
|
-
- Fri,
|
50
|
+
- Fri, 06 Jun 2014 13:36:32 GMT
|
51
51
|
Content-Type:
|
52
52
|
- application/octet-stream
|
53
53
|
Connection:
|
@@ -61,5 +61,5 @@ http_interactions:
|
|
61
61
|
AAAAAAAAK0Vycm9yOiBZb3UgbXVzdCBjaG9vc2UgYXQgbGVhc3Qgb25lIHN0
|
62
62
|
cmVhbQo=
|
63
63
|
http_version:
|
64
|
-
recorded_at: Fri,
|
65
|
-
recorded_with: VCR 2.9.
|
64
|
+
recorded_at: Fri, 06 Jun 2014 13:36:32 GMT
|
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.11/containers/create
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: '{"Cmd":"echo hello","Image":"base"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.
|
11
|
+
- Swipely/Docker-API 1.11.1
|
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
|
-
- Fri,
|
22
|
+
- Fri, 06 Jun 2014 13:36:32 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":"43a9245ac3f67d2150845dbe4bb014d1b33f6fe7755f53c0795b793abec025e6","Warnings":null}
|
31
31
|
http_version:
|
32
|
-
recorded_at: Fri,
|
32
|
+
recorded_at: Fri, 06 Jun 2014 13:36:32 GMT
|
33
33
|
- request:
|
34
34
|
method: get
|
35
|
-
uri: unix:///var/run/docker.sock/v1.
|
35
|
+
uri: unix:///var/run/docker.sock/v1.11/containers/43a9245ac3f67d2150845dbe4bb014d1b33f6fe7755f53c0795b793abec025e6/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.
|
41
|
+
- Swipely/Docker-API 1.11.1
|
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
|
-
- Fri,
|
50
|
+
- Fri, 06 Jun 2014 13:36:32 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: Fri,
|
62
|
-
recorded_with: VCR 2.9.
|
61
|
+
recorded_at: Fri, 06 Jun 2014 13:36:32 GMT
|
62
|
+
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.11/containers/create
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: '{"Cmd":["sleep","50"],"Image":"base"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.
|
11
|
+
- Swipely/Docker-API 1.11.1
|
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
|
+
- Fri, 06 Jun 2014 13:36:46 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":"8f21d51b034b2312381b6fecb6f64daf4e27d9383adde881f293ba76a41b13e1","Warnings":null}
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
32
|
+
recorded_at: Fri, 06 Jun 2014 13:36:46 GMT
|
33
33
|
- request:
|
34
34
|
method: post
|
35
|
-
uri: unix:///var/run/docker.sock/v1.
|
35
|
+
uri: unix:///var/run/docker.sock/v1.11/containers/8f21d51b034b2312381b6fecb6f64daf4e27d9383adde881f293ba76a41b13e1/start
|
36
36
|
body:
|
37
37
|
encoding: UTF-8
|
38
|
-
string:
|
38
|
+
string: '{}'
|
39
39
|
headers:
|
40
40
|
User-Agent:
|
41
|
-
- Swipely/Docker-API 1.
|
41
|
+
- Swipely/Docker-API 1.11.1
|
42
42
|
Content-Type:
|
43
43
|
- application/json
|
44
44
|
response:
|
@@ -47,7 +47,7 @@ http_interactions:
|
|
47
47
|
message:
|
48
48
|
headers:
|
49
49
|
Date:
|
50
|
-
-
|
50
|
+
- Fri, 06 Jun 2014 13:36:46 GMT
|
51
51
|
Content-Length:
|
52
52
|
- '0'
|
53
53
|
Content-Type:
|
@@ -58,16 +58,16 @@ http_interactions:
|
|
58
58
|
encoding: UTF-8
|
59
59
|
string: ''
|
60
60
|
http_version:
|
61
|
-
recorded_at:
|
61
|
+
recorded_at: Fri, 06 Jun 2014 13:36:46 GMT
|
62
62
|
- request:
|
63
63
|
method: get
|
64
|
-
uri: unix:///var/run/docker.sock/v1.
|
64
|
+
uri: unix:///var/run/docker.sock/v1.11/containers/json
|
65
65
|
body:
|
66
66
|
encoding: US-ASCII
|
67
67
|
string: ''
|
68
68
|
headers:
|
69
69
|
User-Agent:
|
70
|
-
- Swipely/Docker-API 1.
|
70
|
+
- Swipely/Docker-API 1.11.1
|
71
71
|
Content-Type:
|
72
72
|
- text/plain
|
73
73
|
response:
|
@@ -78,28 +78,28 @@ http_interactions:
|
|
78
78
|
Content-Type:
|
79
79
|
- application/json
|
80
80
|
Date:
|
81
|
-
-
|
81
|
+
- Fri, 06 Jun 2014 13:36:46 GMT
|
82
82
|
Content-Length:
|
83
|
-
- '
|
83
|
+
- '409'
|
84
84
|
Connection:
|
85
85
|
- close
|
86
86
|
body:
|
87
87
|
encoding: UTF-8
|
88
88
|
string: |-
|
89
|
-
[{"Command":"sleep 50","Created":
|
90
|
-
,{"Command":"/while","Created":
|
89
|
+
[{"Command":"sleep 50","Created":1402061806,"Id":"8f21d51b034b2312381b6fecb6f64daf4e27d9383adde881f293ba76a41b13e1","Image":"base:latest","Names":["/sharp_lalande"],"Ports":[],"Status":"Up Less than a second"}
|
90
|
+
,{"Command":"/while","Created":1402061799,"Id":"74553200d912dda35c0f8641028d3e42faaf6e41b4337a4e202328414bb2da5e","Image":"5964d75bfbd2","Names":["/angry_brown"],"Ports":[],"Status":"Up 7 seconds"}
|
91
91
|
]
|
92
92
|
http_version:
|
93
|
-
recorded_at:
|
93
|
+
recorded_at: Fri, 06 Jun 2014 13:36:46 GMT
|
94
94
|
- request:
|
95
95
|
method: post
|
96
|
-
uri: unix:///var/run/docker.sock/v1.
|
96
|
+
uri: unix:///var/run/docker.sock/v1.11/containers/8f21d51b034b2312381b6fecb6f64daf4e27d9383adde881f293ba76a41b13e1/stop
|
97
97
|
body:
|
98
98
|
encoding: UTF-8
|
99
|
-
string:
|
99
|
+
string: '{}'
|
100
100
|
headers:
|
101
101
|
User-Agent:
|
102
|
-
- Swipely/Docker-API 1.
|
102
|
+
- Swipely/Docker-API 1.11.1
|
103
103
|
Content-Type:
|
104
104
|
- application/json
|
105
105
|
response:
|
@@ -108,7 +108,7 @@ http_interactions:
|
|
108
108
|
message:
|
109
109
|
headers:
|
110
110
|
Date:
|
111
|
-
-
|
111
|
+
- Fri, 06 Jun 2014 13:36:47 GMT
|
112
112
|
Content-Length:
|
113
113
|
- '0'
|
114
114
|
Content-Type:
|
@@ -119,16 +119,16 @@ http_interactions:
|
|
119
119
|
encoding: UTF-8
|
120
120
|
string: ''
|
121
121
|
http_version:
|
122
|
-
recorded_at:
|
122
|
+
recorded_at: Fri, 06 Jun 2014 13:36:47 GMT
|
123
123
|
- request:
|
124
124
|
method: get
|
125
|
-
uri: unix:///var/run/docker.sock/v1.
|
125
|
+
uri: unix:///var/run/docker.sock/v1.11/containers/json
|
126
126
|
body:
|
127
127
|
encoding: US-ASCII
|
128
128
|
string: ''
|
129
129
|
headers:
|
130
130
|
User-Agent:
|
131
|
-
- Swipely/Docker-API 1.
|
131
|
+
- Swipely/Docker-API 1.11.1
|
132
132
|
Content-Type:
|
133
133
|
- text/plain
|
134
134
|
response:
|
@@ -139,27 +139,27 @@ http_interactions:
|
|
139
139
|
Content-Type:
|
140
140
|
- application/json
|
141
141
|
Date:
|
142
|
-
-
|
142
|
+
- Fri, 06 Jun 2014 13:36:47 GMT
|
143
143
|
Content-Length:
|
144
|
-
- '
|
144
|
+
- '199'
|
145
145
|
Connection:
|
146
146
|
- close
|
147
147
|
body:
|
148
148
|
encoding: UTF-8
|
149
149
|
string: |-
|
150
|
-
[{"Command":"/while","Created":
|
150
|
+
[{"Command":"/while","Created":1402061799,"Id":"74553200d912dda35c0f8641028d3e42faaf6e41b4337a4e202328414bb2da5e","Image":"5964d75bfbd2","Names":["/angry_brown"],"Ports":[],"Status":"Up 7 seconds"}
|
151
151
|
]
|
152
152
|
http_version:
|
153
|
-
recorded_at:
|
153
|
+
recorded_at: Fri, 06 Jun 2014 13:36:47 GMT
|
154
154
|
- request:
|
155
155
|
method: post
|
156
|
-
uri: unix:///var/run/docker.sock/v1.
|
156
|
+
uri: unix:///var/run/docker.sock/v1.11/containers/8f21d51b034b2312381b6fecb6f64daf4e27d9383adde881f293ba76a41b13e1/restart?t=10
|
157
157
|
body:
|
158
158
|
encoding: UTF-8
|
159
|
-
string:
|
159
|
+
string: '{}'
|
160
160
|
headers:
|
161
161
|
User-Agent:
|
162
|
-
- Swipely/Docker-API 1.
|
162
|
+
- Swipely/Docker-API 1.11.1
|
163
163
|
Content-Type:
|
164
164
|
- application/json
|
165
165
|
response:
|
@@ -168,7 +168,7 @@ http_interactions:
|
|
168
168
|
message:
|
169
169
|
headers:
|
170
170
|
Date:
|
171
|
-
-
|
171
|
+
- Fri, 06 Jun 2014 13:36:47 GMT
|
172
172
|
Content-Length:
|
173
173
|
- '0'
|
174
174
|
Content-Type:
|
@@ -179,16 +179,16 @@ http_interactions:
|
|
179
179
|
encoding: UTF-8
|
180
180
|
string: ''
|
181
181
|
http_version:
|
182
|
-
recorded_at:
|
182
|
+
recorded_at: Fri, 06 Jun 2014 13:36:47 GMT
|
183
183
|
- request:
|
184
184
|
method: get
|
185
|
-
uri: unix:///var/run/docker.sock/v1.
|
185
|
+
uri: unix:///var/run/docker.sock/v1.11/containers/json
|
186
186
|
body:
|
187
187
|
encoding: US-ASCII
|
188
188
|
string: ''
|
189
189
|
headers:
|
190
190
|
User-Agent:
|
191
|
-
- Swipely/Docker-API 1.
|
191
|
+
- Swipely/Docker-API 1.11.1
|
192
192
|
Content-Type:
|
193
193
|
- text/plain
|
194
194
|
response:
|
@@ -199,17 +199,17 @@ http_interactions:
|
|
199
199
|
Content-Type:
|
200
200
|
- application/json
|
201
201
|
Date:
|
202
|
-
-
|
202
|
+
- Fri, 06 Jun 2014 13:36:47 GMT
|
203
203
|
Content-Length:
|
204
|
-
- '
|
204
|
+
- '409'
|
205
205
|
Connection:
|
206
206
|
- close
|
207
207
|
body:
|
208
208
|
encoding: UTF-8
|
209
209
|
string: |-
|
210
|
-
[{"Command":"sleep 50","Created":
|
211
|
-
,{"Command":"/while","Created":
|
210
|
+
[{"Command":"sleep 50","Created":1402061806,"Id":"8f21d51b034b2312381b6fecb6f64daf4e27d9383adde881f293ba76a41b13e1","Image":"base:latest","Names":["/sharp_lalande"],"Ports":[],"Status":"Up Less than a second"}
|
211
|
+
,{"Command":"/while","Created":1402061799,"Id":"74553200d912dda35c0f8641028d3e42faaf6e41b4337a4e202328414bb2da5e","Image":"5964d75bfbd2","Names":["/angry_brown"],"Ports":[],"Status":"Up 8 seconds"}
|
212
212
|
]
|
213
213
|
http_version:
|
214
|
-
recorded_at:
|
215
|
-
recorded_with: VCR 2.
|
214
|
+
recorded_at: Fri, 06 Jun 2014 13:36:47 GMT
|
215
|
+
recorded_with: VCR 2.9.2
|