docker-api 1.7.6 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/docker.rb +9 -9
- data/lib/docker/connection.rb +1 -1
- data/lib/docker/container.rb +1 -2
- data/lib/docker/image.rb +7 -6
- data/lib/docker/version.rb +2 -2
- data/spec/docker/connection_spec.rb +2 -2
- data/spec/docker/container_spec.rb +12 -10
- data/spec/docker/image_spec.rb +13 -13
- data/spec/docker_spec.rb +5 -4
- data/spec/vcr/Docker/_authenticate_/with_valid_credentials/logs_in_and_sets_the_creds.yml +1 -1
- data/spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml +17 -15
- data/spec/vcr/Docker/_validate_version/when_nothing_is_raised/validate_version_/.yml +17 -15
- data/spec/vcr/Docker/_version/returns_the_version_as_a_Hash.yml +17 -15
- data/spec/vcr/Docker_Container/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml +96 -46
- data/spec/vcr/Docker_Container/_attach/with_normal_sized_chunks/yields_each_chunk.yml +35 -37
- data/spec/vcr/Docker_Container/_attach/with_very_small_chunks/yields_each_chunk.yml +35 -37
- data/spec/vcr/Docker_Container/_changes/returns_the_changes_as_an_array.yml +60 -58
- data/spec/vcr/Docker_Container/_commit/creates_a_new_Image_from_the_Container_s_changes.yml +46 -47
- data/spec/vcr/Docker_Container/_commit/if_run_is_passed_it_saves_the_command_in_the_image/saves_the_command.yml +78 -81
- data/spec/vcr/Docker_Container/_copy/when_the_file_does_not_exist/raises_an_error.yml +77 -80
- data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_directory/yields_each_chunk_of_the_tarred_directory.yml +91 -182
- data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_file/yields_each_chunk_of_the_tarred_file.yml +80 -273
- data/spec/vcr/Docker_Container/_create/when_creating_a_container_named_bob/should_have_name_set_to_bob.yml +20 -15
- data/spec/vcr/Docker_Container/_create/when_the_Container_does_not_yet_exist/when_the_HTTP_request_returns_a_200/sets_the_id.yml +16 -16
- data/spec/vcr/Docker_Container/_delete/deletes_the_container.yml +41 -43
- data/spec/vcr/Docker_Container/_export/yields_each_chunk.yml +82759 -46
- data/spec/vcr/Docker_Container/_get/when_the_HTTP_response_is_a_200/materializes_the_Container_into_a_Docker_Container.yml +29 -30
- data/spec/vcr/Docker_Container/_json/returns_the_description_as_a_Hash.yml +29 -30
- data/spec/vcr/Docker_Container/_kill/kills_the_container.yml +69 -71
- data/spec/vcr/Docker_Container/_restart/restarts_the_container.yml +98 -102
- data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_does_not_return_status_code_of_0/raises_an_error.yml +43 -44
- 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 +117 -122
- data/spec/vcr/Docker_Container/_start/starts_the_container.yml +58 -59
- data/spec/vcr/Docker_Container/_stop/stops_the_container.yml +81 -84
- data/spec/vcr/Docker_Container/_top/returns_the_top_commands_as_an_Array.yml +116 -87
- data/spec/vcr/Docker_Container/_wait/waits_for_the_command_to_finish.yml +43 -44
- data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/and_a_command_runs_for_too_long/raises_a_ServerError.yml +29 -30
- data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/sets_the_read_timeout_to_that_amount_of_time.yml +43 -44
- data/spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml +46 -32
- data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/with_a_block_capturing_build_output/calls_the_block_and_passes_build_output.yml +10 -9
- 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 +42 -31
- data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/without_query_parameters/builds_an_image.yml +16 -16
- data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml +17 -19
- 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 +9 -8
- data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_no_query_parameters/builds_the_image.yml +50 -52
- 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 +76 -66
- data/spec/vcr/Docker_Image/_create/when_the_Image_does_not_yet_exist_and_the_body_is_a_Hash/sets_the_id.yml +20 -18
- data/spec/vcr/Docker_Image/_get/when_the_image_does_exist/returns_the_new_image.yml +14 -15
- data/spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml +36 -32
- data/spec/vcr/Docker_Image/_insert/inserts_the_url_s_file_into_a_new_Image.yml +70 -86
- data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/creates_a_new_image.yml +69 -47
- data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/leave_no_intermediate_containers.yml +118 -47
- data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_exist/creates_a_new_Image_that_has_that_file.yml +68 -70
- data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_not_exist/raises_an_error.yml +16 -16
- data/spec/vcr/Docker_Image/_insert_local/when_there_are_multiple_files_passed/creates_a_new_Image_that_has_each_file.yml +70 -72
- data/spec/vcr/Docker_Image/_json/returns_additional_information_about_image_image.yml +33 -32
- data/spec/vcr/Docker_Image/_push/pushes_the_Image.yml +162 -105
- data/spec/vcr/Docker_Image/_remove/removes_the_Image.yml +53 -46
- data/spec/vcr/Docker_Image/_run/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml +54 -54
- data/spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml +54 -54
- data/spec/vcr/Docker_Image/_run/when_the_argument_is_nil/command_configured_in_image/should_normally_show_result_if_image_has_Cmd_configured.yml +46 -101
- 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 +35 -35
- data/spec/vcr/Docker_Image/_search/materializes_each_Image_into_a_Docker_Image.yml +94 -35
- data/spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml +32 -31
- metadata +29 -49
@@ -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.8/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.6
|
11
|
+
- Swipely/Docker-API 1.7.6
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
response:
|
@@ -16,29 +16,29 @@ http_interactions:
|
|
16
16
|
code: 201
|
17
17
|
message:
|
18
18
|
headers:
|
19
|
-
|
20
|
-
-
|
21
|
-
|
22
|
-
|
23
|
-
-
|
24
|
-
|
25
|
-
|
26
|
-
-
|
27
|
-
TW9uLCAyOCBPY3QgMjAxMyAxNDozNTozNiBHTVQ=
|
19
|
+
Content-Type:
|
20
|
+
- application/json
|
21
|
+
Date:
|
22
|
+
- Wed, 12 Feb 2014 17:05:55 GMT
|
23
|
+
Content-Length:
|
24
|
+
- '90'
|
25
|
+
Connection:
|
26
|
+
- close
|
28
27
|
body:
|
29
|
-
encoding:
|
30
|
-
string:
|
28
|
+
encoding: UTF-8
|
29
|
+
string: |
|
30
|
+
{"Id":"083d93f684c015450c2870ed3272f92f3eaf9488db088b6a0bb0527486c74480","Warnings":null}
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
32
|
+
recorded_at: Wed, 12 Feb 2014 17:05:55 GMT
|
33
33
|
- request:
|
34
34
|
method: get
|
35
|
-
uri: unix:///var/run/docker.sock/v1.
|
35
|
+
uri: unix:///var/run/docker.sock/v1.8/containers/083d93f684c015450c2870ed3272f92f3eaf9488db088b6a0bb0527486c74480/json
|
36
36
|
body:
|
37
37
|
encoding: US-ASCII
|
38
38
|
string: ''
|
39
39
|
headers:
|
40
40
|
User-Agent:
|
41
|
-
- Swipely/Docker-API 1.6
|
41
|
+
- Swipely/Docker-API 1.7.6
|
42
42
|
Content-Type:
|
43
43
|
- text/plain
|
44
44
|
response:
|
@@ -46,18 +46,17 @@ http_interactions:
|
|
46
46
|
code: 200
|
47
47
|
message:
|
48
48
|
headers:
|
49
|
-
|
50
|
-
-
|
51
|
-
|
52
|
-
|
53
|
-
-
|
54
|
-
|
55
|
-
|
56
|
-
-
|
57
|
-
TW9uLCAyOCBPY3QgMjAxMyAxNDozNTozNiBHTVQ=
|
49
|
+
Date:
|
50
|
+
- Wed, 12 Feb 2014 17:05:55 GMT
|
51
|
+
Content-Length:
|
52
|
+
- '1149'
|
53
|
+
Content-Type:
|
54
|
+
- text/plain; charset=utf-8
|
55
|
+
Connection:
|
56
|
+
- close
|
58
57
|
body:
|
59
|
-
encoding:
|
60
|
-
string:
|
61
|
-
","Created":1382970936,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0}'
|
58
|
+
encoding: UTF-8
|
59
|
+
string: "{\"ID\":\"083d93f684c015450c2870ed3272f92f3eaf9488db088b6a0bb0527486c74480\",\"Created\":\"2014-02-12T17:05:54.936838346Z\",\"Path\":\"ls\",\"Args\":[],\"Config\":{\"Hostname\":\"083d93f684c0\",\"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\"],\"Dns\":null,\"Image\":\"base\",\"Volumes\":null,\"VolumesFrom\":\"\",\"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\",\"Ghost\":false},\"Image\":\"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc\",\"NetworkSettings\":{\"IPAddress\":\"\",\"IPPrefixLen\":0,\"Gateway\":\"\",\"Bridge\":\"\",\"PortMapping\":null,\"Ports\":null},\"ResolvConfPath\":\"/etc/resolv.conf\",\"HostnamePath\":\"\",\"HostsPath\":\"\",\"Name\":\"/thirsty_ptolemy\",\"Driver\":\"devicemapper\",\"Volumes\":null,\"VolumesRW\":null,\"HostConfig\":{\"Binds\":null,\"ContainerIDFile\":\"\",\"LxcConf\":null,\"Privileged\":false,\"PortBindings\":null,\"Links\":null,\"PublishAllPorts\":false}}"
|
62
60
|
http_version:
|
63
|
-
recorded_at:
|
61
|
+
recorded_at: Wed, 12 Feb 2014 17:05:55 GMT
|
62
|
+
recorded_with: VCR 2.8.0
|
@@ -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.8/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.6
|
11
|
+
- Swipely/Docker-API 1.7.6
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
response:
|
@@ -16,29 +16,29 @@ http_interactions:
|
|
16
16
|
code: 201
|
17
17
|
message:
|
18
18
|
headers:
|
19
|
-
|
20
|
-
-
|
21
|
-
|
22
|
-
|
23
|
-
-
|
24
|
-
|
25
|
-
|
26
|
-
-
|
27
|
-
RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1MyBHTVQ=
|
19
|
+
Content-Type:
|
20
|
+
- application/json
|
21
|
+
Date:
|
22
|
+
- Wed, 12 Feb 2014 17:05:11 GMT
|
23
|
+
Content-Length:
|
24
|
+
- '90'
|
25
|
+
Connection:
|
26
|
+
- close
|
28
27
|
body:
|
29
|
-
encoding:
|
30
|
-
string:
|
28
|
+
encoding: UTF-8
|
29
|
+
string: |
|
30
|
+
{"Id":"84eaae34df6b150fb24ff9cb1a8f018a730da82f54bb96cef9875d3c7d443064","Warnings":null}
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
32
|
+
recorded_at: Wed, 12 Feb 2014 17:05:11 GMT
|
33
33
|
- request:
|
34
34
|
method: get
|
35
|
-
uri: unix:///var/run/docker.sock/v1.
|
35
|
+
uri: unix:///var/run/docker.sock/v1.8/containers/84eaae34df6b150fb24ff9cb1a8f018a730da82f54bb96cef9875d3c7d443064/json
|
36
36
|
body:
|
37
37
|
encoding: US-ASCII
|
38
38
|
string: ''
|
39
39
|
headers:
|
40
40
|
User-Agent:
|
41
|
-
- Swipely/Docker-API 1.6
|
41
|
+
- Swipely/Docker-API 1.7.6
|
42
42
|
Content-Type:
|
43
43
|
- text/plain
|
44
44
|
response:
|
@@ -46,18 +46,17 @@ http_interactions:
|
|
46
46
|
code: 200
|
47
47
|
message:
|
48
48
|
headers:
|
49
|
-
|
50
|
-
-
|
51
|
-
|
52
|
-
|
53
|
-
-
|
54
|
-
|
55
|
-
|
56
|
-
-
|
57
|
-
RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1MyBHTVQ=
|
49
|
+
Date:
|
50
|
+
- Wed, 12 Feb 2014 17:05:11 GMT
|
51
|
+
Content-Length:
|
52
|
+
- '1153'
|
53
|
+
Content-Type:
|
54
|
+
- text/plain; charset=utf-8
|
55
|
+
Connection:
|
56
|
+
- close
|
58
57
|
body:
|
59
|
-
encoding:
|
60
|
-
string:
|
58
|
+
encoding: UTF-8
|
59
|
+
string: "{\"ID\":\"84eaae34df6b150fb24ff9cb1a8f018a730da82f54bb96cef9875d3c7d443064\",\"Created\":\"2014-02-12T17:05:10.610917076Z\",\"Path\":\"true\",\"Args\":[],\"Config\":{\"Hostname\":\"84eaae34df6b\",\"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\"],\"Dns\":null,\"Image\":\"base\",\"Volumes\":null,\"VolumesFrom\":\"\",\"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\",\"Ghost\":false},\"Image\":\"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc\",\"NetworkSettings\":{\"IPAddress\":\"\",\"IPPrefixLen\":0,\"Gateway\":\"\",\"Bridge\":\"\",\"PortMapping\":null,\"Ports\":null},\"ResolvConfPath\":\"/etc/resolv.conf\",\"HostnamePath\":\"\",\"HostsPath\":\"\",\"Name\":\"/boring_brattain\",\"Driver\":\"devicemapper\",\"Volumes\":null,\"VolumesRW\":null,\"HostConfig\":{\"Binds\":null,\"ContainerIDFile\":\"\",\"LxcConf\":null,\"Privileged\":false,\"PortBindings\":null,\"Links\":null,\"PublishAllPorts\":false}}"
|
61
60
|
http_version:
|
62
|
-
recorded_at:
|
63
|
-
recorded_with: VCR 2.
|
61
|
+
recorded_at: Wed, 12 Feb 2014 17:05:11 GMT
|
62
|
+
recorded_with: VCR 2.8.0
|
@@ -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.8/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.6
|
11
|
+
- Swipely/Docker-API 1.7.6
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
response:
|
@@ -16,29 +16,29 @@ http_interactions:
|
|
16
16
|
code: 201
|
17
17
|
message:
|
18
18
|
headers:
|
19
|
-
|
20
|
-
-
|
21
|
-
|
22
|
-
|
23
|
-
-
|
24
|
-
|
25
|
-
|
26
|
-
-
|
27
|
-
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMiBHTVQ=
|
19
|
+
Content-Type:
|
20
|
+
- application/json
|
21
|
+
Date:
|
22
|
+
- Wed, 12 Feb 2014 17:05:31 GMT
|
23
|
+
Content-Length:
|
24
|
+
- '90'
|
25
|
+
Connection:
|
26
|
+
- close
|
28
27
|
body:
|
29
|
-
encoding:
|
30
|
-
string:
|
28
|
+
encoding: UTF-8
|
29
|
+
string: |
|
30
|
+
{"Id":"6a81da03ece735f7300105986839f522d3c0ca2015734f553307465199a67a74","Warnings":null}
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
32
|
+
recorded_at: Wed, 12 Feb 2014 17:05:31 GMT
|
33
33
|
- request:
|
34
34
|
method: post
|
35
|
-
uri: unix:///var/run/docker.sock/v1.
|
35
|
+
uri: unix:///var/run/docker.sock/v1.8/containers/6a81da03ece735f7300105986839f522d3c0ca2015734f553307465199a67a74/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.6
|
41
|
+
- Swipely/Docker-API 1.7.6
|
42
42
|
Content-Type:
|
43
43
|
- application/json
|
44
44
|
response:
|
@@ -46,29 +46,28 @@ http_interactions:
|
|
46
46
|
code: 204
|
47
47
|
message:
|
48
48
|
headers:
|
49
|
-
|
50
|
-
-
|
51
|
-
|
52
|
-
|
53
|
-
-
|
54
|
-
|
55
|
-
|
56
|
-
-
|
57
|
-
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMiBHTVQ=
|
49
|
+
Date:
|
50
|
+
- Wed, 12 Feb 2014 17:05:31 GMT
|
51
|
+
Content-Length:
|
52
|
+
- '0'
|
53
|
+
Content-Type:
|
54
|
+
- text/plain; charset=utf-8
|
55
|
+
Connection:
|
56
|
+
- close
|
58
57
|
body:
|
59
|
-
encoding:
|
58
|
+
encoding: UTF-8
|
60
59
|
string: ''
|
61
60
|
http_version:
|
62
|
-
recorded_at:
|
61
|
+
recorded_at: Wed, 12 Feb 2014 17:05:31 GMT
|
63
62
|
- request:
|
64
63
|
method: get
|
65
|
-
uri: unix:///var/run/docker.sock/v1.
|
64
|
+
uri: unix:///var/run/docker.sock/v1.8/containers/json
|
66
65
|
body:
|
67
66
|
encoding: US-ASCII
|
68
67
|
string: ''
|
69
68
|
headers:
|
70
69
|
User-Agent:
|
71
|
-
- Swipely/Docker-API 1.6
|
70
|
+
- Swipely/Docker-API 1.7.6
|
72
71
|
Content-Type:
|
73
72
|
- text/plain
|
74
73
|
response:
|
@@ -76,29 +75,28 @@ http_interactions:
|
|
76
75
|
code: 200
|
77
76
|
message:
|
78
77
|
headers:
|
79
|
-
|
80
|
-
-
|
81
|
-
|
82
|
-
|
83
|
-
-
|
84
|
-
|
85
|
-
|
86
|
-
-
|
87
|
-
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMiBHTVQ=
|
78
|
+
Date:
|
79
|
+
- Wed, 12 Feb 2014 17:05:31 GMT
|
80
|
+
Content-Length:
|
81
|
+
- '2'
|
82
|
+
Content-Type:
|
83
|
+
- text/plain; charset=utf-8
|
84
|
+
Connection:
|
85
|
+
- close
|
88
86
|
body:
|
89
|
-
encoding:
|
90
|
-
string:
|
87
|
+
encoding: UTF-8
|
88
|
+
string: "[]"
|
91
89
|
http_version:
|
92
|
-
recorded_at:
|
90
|
+
recorded_at: Wed, 12 Feb 2014 17:05:31 GMT
|
93
91
|
- request:
|
94
92
|
method: get
|
95
|
-
uri: unix:///var/run/docker.sock/v1.
|
93
|
+
uri: unix:///var/run/docker.sock/v1.8/containers/json?all=true
|
96
94
|
body:
|
97
95
|
encoding: US-ASCII
|
98
96
|
string: ''
|
99
97
|
headers:
|
100
98
|
User-Agent:
|
101
|
-
- Swipely/Docker-API 1.6
|
99
|
+
- Swipely/Docker-API 1.7.6
|
102
100
|
Content-Type:
|
103
101
|
- text/plain
|
104
102
|
response:
|
@@ -106,31 +104,31 @@ http_interactions:
|
|
106
104
|
code: 200
|
107
105
|
message:
|
108
106
|
headers:
|
109
|
-
|
110
|
-
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
-
|
117
|
-
Y2h1bmtlZA==
|
107
|
+
Date:
|
108
|
+
- Wed, 12 Feb 2014 17:05:31 GMT
|
109
|
+
Content-Type:
|
110
|
+
- text/plain; charset=utf-8
|
111
|
+
Connection:
|
112
|
+
- close
|
113
|
+
Transfer-Encoding:
|
114
|
+
- ''
|
118
115
|
body:
|
119
|
-
encoding:
|
120
|
-
string:
|
121
|
-
","Created":
|
122
|
-
","Created":
|
123
|
-
-d /foo","Created":
|
124
|
-
|
125
|
-
|
126
|
-
/test","Created":
|
127
|
-
/
|
128
|
-
/test","Created":
|
129
|
-
|
130
|
-
-
|
131
|
-
|
132
|
-
|
133
|
-
","Created":
|
116
|
+
encoding: UTF-8
|
117
|
+
string: |-
|
118
|
+
[{"Command":"ls ","Created":1392224731,"Id":"6a81da03ece735f7300105986839f522d3c0ca2015734f553307465199a67a74","Image":"base2:latest","Names":["/furious_darwin"],"Ports":[],"Status":"Exit 0"}
|
119
|
+
,{"Command":true,"Created":1392224730,"Id":"75e9d159b18c496eaefb8a9303a9e497515533ac804c1984593e423ccf361d8c","Image":"base2:latest","Names":["/hungry_pasteur"],"Ports":[],"Status":"Exit 2"}
|
120
|
+
,{"Command":"test -d /foo","Created":1392224730,"Id":"1d7ad40cf94fe20c7b72186afb550f742dba8d4e3c5712649202eacedc353610","Image":"base2:latest","Names":["/grave_brown"],"Ports":[],"Status":"Exit 0"}
|
121
|
+
,{"Command":"pwd ","Created":1392224729,"Id":"b97622bf74dc3bd4a47cfc1fcb00aad1a73b6c602dc2fbcb09fbbcb6e60ad547","Image":"base2:latest","Names":["/suspicious_euclid"],"Ports":[],"Status":"Exit 0"}
|
122
|
+
,{"Command":"pwd ","Created":1392224728,"Id":"aca0db5a8af5667cfb798ca4fa2650d5dc96265005b21f635755a4e7ae3c22a6","Image":"base2:latest","Names":["/furious_poincare"],"Ports":[],"Status":"Exit 0"}
|
123
|
+
,{"Command":"touch /test","Created":1392224727,"Id":"4abac1fa781baa731e67c8623ad09277fcab360e96727897a995d047b706d1b0","Image":"base2:latest","Names":["/evil_bardeen"],"Ports":[],"Status":"Exit 0"}
|
124
|
+
,{"Command":"rm -rf / --no-preserve-root","Created":1392224727,"Id":"68c652097593ef2d2469e0ec0a28ae07bb8cb6f6066e36bd2a689bdf1c75b67a","Image":"base2:latest","Names":["/trusting_lovelace"],"Ports":[],"Status":"Exit 1"}
|
125
|
+
,{"Command":"touch /test","Created":1392224725,"Id":"7fc5da303ee405d249c67fb17ff9806d358e031764002beef9a9030ee0e6150a","Image":"base2:latest","Names":["/loving_lovelace"],"Ports":[],"Status":"Exit 0"}
|
126
|
+
,{"Command":"/bin/sh -c printf '#! /bin/sh\\nwhile true\\ndo\\ntrue\\ndone\\n' \u003e /while \u0026\u0026 chmod +x /while","Created":1392224716,"Id":"cacaaf438ce9f95013b62be6121f0e024854326e28bb9daea0e10d73927b4d8e","Image":"base2:latest","Names":["/distracted_tesla"],"Ports":[],"Status":"Exit 0"}
|
127
|
+
,{"Command":"rm -rf /root","Created":1392224712,"Id":"8662d957c62499b15195a9c4b07d0a60284b13309cac13b3dcc438be317c3333","Image":"base2:latest","Names":["/stoic_turing"],"Ports":[],"Status":"Exit 0"}
|
128
|
+
,{"Command":true,"Created":1392224711,"Id":"956835aa46c1d76b349a08fa048e5422fa866e1a90b3ef833232b292e1e57a8d","Image":"base2:latest","Names":["/bob"],"Ports":[],"Status":"Exit 0"}
|
129
|
+
,{"Command":true,"Created":1392224710,"Id":"84eaae34df6b150fb24ff9cb1a8f018a730da82f54bb96cef9875d3c7d443064","Image":"base2:latest","Names":["/boring_brattain"],"Ports":[],"Status":"Exit 0"}
|
130
|
+
,{"Command":"sleep 5","Created":1392151930,"Id":"d51ef17bd97e56413bf82176cbc569d062a9f544ac412d406d83b5bc1e171fa0","Image":"base2:latest","Names":["/clever_mclean"],"Ports":[],"Status":"Exit 0"}
|
131
|
+
]
|
134
132
|
http_version:
|
135
|
-
recorded_at:
|
136
|
-
recorded_with: VCR 2.
|
133
|
+
recorded_at: Wed, 12 Feb 2014 17:05:31 GMT
|
134
|
+
recorded_with: VCR 2.8.0
|
@@ -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.8/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.6
|
11
|
+
- Swipely/Docker-API 1.7.6
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
response:
|
@@ -16,29 +16,29 @@ http_interactions:
|
|
16
16
|
code: 201
|
17
17
|
message:
|
18
18
|
headers:
|
19
|
-
|
20
|
-
-
|
21
|
-
|
22
|
-
|
23
|
-
-
|
24
|
-
|
25
|
-
|
26
|
-
-
|
27
|
-
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMiBHTVQ=
|
19
|
+
Content-Type:
|
20
|
+
- application/json
|
21
|
+
Date:
|
22
|
+
- Wed, 12 Feb 2014 17:05:33 GMT
|
23
|
+
Content-Length:
|
24
|
+
- '90'
|
25
|
+
Connection:
|
26
|
+
- close
|
28
27
|
body:
|
29
|
-
encoding:
|
30
|
-
string:
|
28
|
+
encoding: UTF-8
|
29
|
+
string: |
|
30
|
+
{"Id":"806cc3e41304703c5312c3aafe63bee14c90dec0eaee9e7acbcfc9d747c2acda","Warnings":null}
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
32
|
+
recorded_at: Wed, 12 Feb 2014 17:05:33 GMT
|
33
33
|
- request:
|
34
34
|
method: post
|
35
|
-
uri: unix:///var/run/docker.sock/v1.
|
35
|
+
uri: unix:///var/run/docker.sock/v1.8/containers/806cc3e41304703c5312c3aafe63bee14c90dec0eaee9e7acbcfc9d747c2acda/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.6
|
41
|
+
- Swipely/Docker-API 1.7.6
|
42
42
|
Content-Type:
|
43
43
|
- application/json
|
44
44
|
response:
|
@@ -46,29 +46,28 @@ http_interactions:
|
|
46
46
|
code: 204
|
47
47
|
message:
|
48
48
|
headers:
|
49
|
-
|
50
|
-
-
|
51
|
-
|
52
|
-
|
53
|
-
-
|
54
|
-
|
55
|
-
|
56
|
-
-
|
57
|
-
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMiBHTVQ=
|
49
|
+
Date:
|
50
|
+
- Wed, 12 Feb 2014 17:05:33 GMT
|
51
|
+
Content-Length:
|
52
|
+
- '0'
|
53
|
+
Content-Type:
|
54
|
+
- text/plain; charset=utf-8
|
55
|
+
Connection:
|
56
|
+
- close
|
58
57
|
body:
|
59
|
-
encoding:
|
58
|
+
encoding: UTF-8
|
60
59
|
string: ''
|
61
60
|
http_version:
|
62
|
-
recorded_at:
|
61
|
+
recorded_at: Wed, 12 Feb 2014 17:05:33 GMT
|
63
62
|
- request:
|
64
63
|
method: get
|
65
|
-
uri: unix:///var/run/docker.sock/v1.
|
64
|
+
uri: unix:///var/run/docker.sock/v1.8/containers/json
|
66
65
|
body:
|
67
66
|
encoding: US-ASCII
|
68
67
|
string: ''
|
69
68
|
headers:
|
70
69
|
User-Agent:
|
71
|
-
- Swipely/Docker-API 1.6
|
70
|
+
- Swipely/Docker-API 1.7.6
|
72
71
|
Content-Type:
|
73
72
|
- text/plain
|
74
73
|
response:
|
@@ -76,30 +75,30 @@ http_interactions:
|
|
76
75
|
code: 200
|
77
76
|
message:
|
78
77
|
headers:
|
79
|
-
|
80
|
-
-
|
81
|
-
|
82
|
-
|
83
|
-
-
|
84
|
-
|
85
|
-
|
86
|
-
-
|
87
|
-
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMiBHTVQ=
|
78
|
+
Date:
|
79
|
+
- Wed, 12 Feb 2014 17:05:33 GMT
|
80
|
+
Content-Length:
|
81
|
+
- '212'
|
82
|
+
Content-Type:
|
83
|
+
- text/plain; charset=utf-8
|
84
|
+
Connection:
|
85
|
+
- close
|
88
86
|
body:
|
89
|
-
encoding:
|
90
|
-
string:
|
91
|
-
50","Created":
|
87
|
+
encoding: UTF-8
|
88
|
+
string: |-
|
89
|
+
[{"Command":"sleep 50","Created":1392224733,"Id":"806cc3e41304703c5312c3aafe63bee14c90dec0eaee9e7acbcfc9d747c2acda","Image":"base2:latest","Names":["/drunk_babbage"],"Ports":[],"Status":"Up Less than a second"}
|
90
|
+
]
|
92
91
|
http_version:
|
93
|
-
recorded_at:
|
92
|
+
recorded_at: Wed, 12 Feb 2014 17:05:33 GMT
|
94
93
|
- request:
|
95
94
|
method: post
|
96
|
-
uri: unix:///var/run/docker.sock/v1.
|
95
|
+
uri: unix:///var/run/docker.sock/v1.8/containers/806cc3e41304703c5312c3aafe63bee14c90dec0eaee9e7acbcfc9d747c2acda/stop
|
97
96
|
body:
|
98
97
|
encoding: UTF-8
|
99
|
-
string:
|
98
|
+
string: "{}"
|
100
99
|
headers:
|
101
100
|
User-Agent:
|
102
|
-
- Swipely/Docker-API 1.6
|
101
|
+
- Swipely/Docker-API 1.7.6
|
103
102
|
Content-Type:
|
104
103
|
- application/json
|
105
104
|
response:
|
@@ -107,29 +106,28 @@ http_interactions:
|
|
107
106
|
code: 204
|
108
107
|
message:
|
109
108
|
headers:
|
110
|
-
|
111
|
-
-
|
112
|
-
|
113
|
-
|
114
|
-
-
|
115
|
-
|
116
|
-
|
117
|
-
-
|
118
|
-
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOToxMiBHTVQ=
|
109
|
+
Date:
|
110
|
+
- Wed, 12 Feb 2014 17:05:33 GMT
|
111
|
+
Content-Length:
|
112
|
+
- '0'
|
113
|
+
Content-Type:
|
114
|
+
- text/plain; charset=utf-8
|
115
|
+
Connection:
|
116
|
+
- close
|
119
117
|
body:
|
120
|
-
encoding:
|
118
|
+
encoding: UTF-8
|
121
119
|
string: ''
|
122
120
|
http_version:
|
123
|
-
recorded_at:
|
121
|
+
recorded_at: Wed, 12 Feb 2014 17:05:33 GMT
|
124
122
|
- request:
|
125
123
|
method: get
|
126
|
-
uri: unix:///var/run/docker.sock/v1.
|
124
|
+
uri: unix:///var/run/docker.sock/v1.8/containers/json
|
127
125
|
body:
|
128
126
|
encoding: US-ASCII
|
129
127
|
string: ''
|
130
128
|
headers:
|
131
129
|
User-Agent:
|
132
|
-
- Swipely/Docker-API 1.6
|
130
|
+
- Swipely/Docker-API 1.7.6
|
133
131
|
Content-Type:
|
134
132
|
- text/plain
|
135
133
|
response:
|
@@ -137,29 +135,28 @@ http_interactions:
|
|
137
135
|
code: 200
|
138
136
|
message:
|
139
137
|
headers:
|
140
|
-
|
141
|
-
-
|
142
|
-
|
143
|
-
|
144
|
-
-
|
145
|
-
|
146
|
-
|
147
|
-
-
|
148
|
-
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOToxMiBHTVQ=
|
138
|
+
Date:
|
139
|
+
- Wed, 12 Feb 2014 17:05:33 GMT
|
140
|
+
Content-Length:
|
141
|
+
- '2'
|
142
|
+
Content-Type:
|
143
|
+
- text/plain; charset=utf-8
|
144
|
+
Connection:
|
145
|
+
- close
|
149
146
|
body:
|
150
|
-
encoding:
|
151
|
-
string:
|
147
|
+
encoding: UTF-8
|
148
|
+
string: "[]"
|
152
149
|
http_version:
|
153
|
-
recorded_at:
|
150
|
+
recorded_at: Wed, 12 Feb 2014 17:05:33 GMT
|
154
151
|
- request:
|
155
152
|
method: post
|
156
|
-
uri: unix:///var/run/docker.sock/v1.
|
153
|
+
uri: unix:///var/run/docker.sock/v1.8/containers/806cc3e41304703c5312c3aafe63bee14c90dec0eaee9e7acbcfc9d747c2acda/restart
|
157
154
|
body:
|
158
155
|
encoding: UTF-8
|
159
|
-
string:
|
156
|
+
string: "{}"
|
160
157
|
headers:
|
161
158
|
User-Agent:
|
162
|
-
- Swipely/Docker-API 1.6
|
159
|
+
- Swipely/Docker-API 1.7.6
|
163
160
|
Content-Type:
|
164
161
|
- application/json
|
165
162
|
response:
|
@@ -167,29 +164,28 @@ http_interactions:
|
|
167
164
|
code: 204
|
168
165
|
message:
|
169
166
|
headers:
|
170
|
-
|
171
|
-
-
|
172
|
-
|
173
|
-
|
174
|
-
-
|
175
|
-
|
176
|
-
|
177
|
-
-
|
178
|
-
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOToxMiBHTVQ=
|
167
|
+
Date:
|
168
|
+
- Wed, 12 Feb 2014 17:05:33 GMT
|
169
|
+
Content-Length:
|
170
|
+
- '0'
|
171
|
+
Content-Type:
|
172
|
+
- text/plain; charset=utf-8
|
173
|
+
Connection:
|
174
|
+
- close
|
179
175
|
body:
|
180
|
-
encoding:
|
176
|
+
encoding: UTF-8
|
181
177
|
string: ''
|
182
178
|
http_version:
|
183
|
-
recorded_at:
|
179
|
+
recorded_at: Wed, 12 Feb 2014 17:05:33 GMT
|
184
180
|
- request:
|
185
181
|
method: get
|
186
|
-
uri: unix:///var/run/docker.sock/v1.
|
182
|
+
uri: unix:///var/run/docker.sock/v1.8/containers/json
|
187
183
|
body:
|
188
184
|
encoding: US-ASCII
|
189
185
|
string: ''
|
190
186
|
headers:
|
191
187
|
User-Agent:
|
192
|
-
- Swipely/Docker-API 1.6
|
188
|
+
- Swipely/Docker-API 1.7.6
|
193
189
|
Content-Type:
|
194
190
|
- text/plain
|
195
191
|
response:
|
@@ -197,19 +193,19 @@ http_interactions:
|
|
197
193
|
code: 200
|
198
194
|
message:
|
199
195
|
headers:
|
200
|
-
|
201
|
-
-
|
202
|
-
|
203
|
-
|
204
|
-
-
|
205
|
-
|
206
|
-
|
207
|
-
-
|
208
|
-
RnJpLCAyNSBPY3QgMjAxMyAxNjoyOToxMiBHTVQ=
|
196
|
+
Date:
|
197
|
+
- Wed, 12 Feb 2014 17:05:33 GMT
|
198
|
+
Content-Length:
|
199
|
+
- '212'
|
200
|
+
Content-Type:
|
201
|
+
- text/plain; charset=utf-8
|
202
|
+
Connection:
|
203
|
+
- close
|
209
204
|
body:
|
210
|
-
encoding:
|
211
|
-
string:
|
212
|
-
50","Created":
|
205
|
+
encoding: UTF-8
|
206
|
+
string: |-
|
207
|
+
[{"Command":"sleep 50","Created":1392224733,"Id":"806cc3e41304703c5312c3aafe63bee14c90dec0eaee9e7acbcfc9d747c2acda","Image":"base2:latest","Names":["/drunk_babbage"],"Ports":[],"Status":"Up Less than a second"}
|
208
|
+
]
|
213
209
|
http_version:
|
214
|
-
recorded_at:
|
215
|
-
recorded_with: VCR 2.
|
210
|
+
recorded_at: Wed, 12 Feb 2014 17:05:33 GMT
|
211
|
+
recorded_with: VCR 2.8.0
|