docker-api 1.15.0 → 1.16.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 +26 -1
- data/Rakefile +37 -0
- data/TESTING.md +61 -0
- data/lib/docker.rb +8 -1
- data/lib/docker/container.rb +44 -80
- data/lib/docker/exec.rb +98 -0
- data/lib/docker/image.rb +4 -3
- data/lib/docker/util.rb +79 -0
- data/lib/docker/version.rb +2 -2
- data/spec/docker/container_spec.rb +192 -56
- data/spec/docker/event_spec.rb +4 -4
- data/spec/docker/exec_spec.rb +197 -0
- data/spec/docker/image_spec.rb +131 -102
- data/spec/docker_spec.rb +37 -27
- data/spec/fixtures/build_from_dir/Dockerfile +2 -2
- data/spec/fixtures/export.tar +0 -0
- data/spec/fixtures/top/Dockerfile +2 -2
- data/spec/spec_helper.rb +10 -0
- data/spec/support/vcr.rb +5 -0
- data/spec/vcr/Docker/_authenticate_/with_valid_credentials/logs_in_and_sets_the_creds.yml +6 -8
- data/spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml +7 -9
- data/spec/vcr/Docker/_validate_version/when_nothing_is_raised/validate_version_/.yml +7 -9
- data/spec/vcr/Docker/_version/returns_the_version_as_a_Hash.yml +7 -9
- data/spec/vcr/Docker_Container/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml +46 -139
- data/spec/vcr/Docker_Container/_attach/with_normal_sized_chunks/yields_each_chunk.yml +62 -20
- data/spec/vcr/Docker_Container/_attach/with_very_small_chunks/yields_each_chunk.yml +62 -20
- data/spec/vcr/Docker_Container/_changes/returns_the_changes_as_an_array.yml +71 -28
- data/spec/vcr/Docker_Container/_commit/creates_a_new_Image_from_the_Container_s_changes.yml +69 -23
- data/spec/vcr/Docker_Container/_copy/when_the_file_does_not_exist/raises_an_error.yml +134 -0
- data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_directory/yields_each_chunk_of_the_tarred_directory.yml +73 -290
- data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_file/yields_each_chunk_of_the_tarred_file.yml +51 -211
- data/spec/vcr/Docker_Container/_create/when_creating_a_container_named_bob/should_have_name_set_to_bob.yml +36 -17
- data/spec/vcr/Docker_Container/_create/when_the_Container_does_not_yet_exist/when_the_HTTP_request_returns_a_200/sets_the_id.yml +30 -9
- data/spec/vcr/Docker_Container/_delete/deletes_the_container.yml +17 -23
- data/spec/vcr/Docker_Container/_exec/when_detach_is_true/returns_the_Docker_Exec_object.yml +151 -0
- data/spec/vcr/Docker_Container/_exec/when_passed_a_block/streams_the_stdout/stderr_messages.yml +153 -0
- data/spec/vcr/Docker_Container/_exec/when_passed_only_a_command/returns_the_stdout/stderr_messages.yml +153 -0
- data/spec/vcr/Docker_Container/_exec/when_stdin_object_is_passed/returns_the_stdout/stderr_messages.yml +100 -0
- data/spec/vcr/Docker_Container/_exec/when_tty_is_true/returns_the_raw_stdout/stderr_output.yml +152 -0
- data/spec/vcr/Docker_Container/_export/yields_each_chunk.yml +263 -28
- data/spec/vcr/Docker_Container/_get/when_the_HTTP_response_is_a_200/materializes_the_Container_into_a_Docker_Container.yml +36 -17
- data/spec/vcr/Docker_Container/_json/returns_the_description_as_a_Hash.yml +36 -17
- data/spec/vcr/Docker_Container/_kill/kills_the_container.yml +55 -53
- data/spec/vcr/Docker_Container/_kill/with_a_kill_signal/kills_the_container.yml +74 -96
- data/spec/vcr/Docker_Container/_logs/when_not_selecting_any_stream/raises_a_client_error.yml +84 -81
- data/spec/vcr/Docker_Container/_logs/when_selecting_stdout/returns_blank_logs.yml +34 -15
- data/spec/vcr/Docker_Container/_pause/pauses_the_container.yml +98 -45
- data/spec/vcr/Docker_Container/_restart/restarts_the_container.yml +88 -56
- data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_does_not_return_status_code_of_0/raises_an_error.yml +39 -22
- 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 +212 -60
- data/spec/vcr/Docker_Container/_start/starts_the_container.yml +45 -30
- data/spec/vcr/Docker_Container/_stop/stops_the_container.yml +54 -83
- data/spec/vcr/Docker_Container/_streaming_logs/when_not_selecting_any_stream/raises_a_client_error.yml +84 -81
- data/spec/vcr/Docker_Container/_streaming_logs/when_selecting_stdout/returns_blank_logs.yml +46 -30
- data/spec/vcr/Docker_Container/_top/returns_the_top_commands_as_an_Array.yml +103 -40
- data/spec/vcr/Docker_Container/_unpause/unpauses_the_container.yml +81 -57
- data/spec/vcr/Docker_Container/_wait/waits_for_the_command_to_finish.yml +39 -22
- data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/sets_the_read_timeout_to_that_amount_of_time.yml +39 -22
- data/spec/vcr/Docker_Exec/_create/when_the_HTTP_request_returns_a_201/sets_the_id.yml +128 -0
- data/spec/vcr/Docker_Exec/_resize/when_exec_instance_has_TTY_enabled/returns_a_200.yml +155 -0
- data/spec/vcr/Docker_Exec/_start_/when_detach_is_set_to_false/block_is_passed/attaches_to_the_stream.yml +152 -0
- data/spec/vcr/Docker_Exec/_start_/when_detach_is_set_to_false/returns_the_stdout_and_stderr_messages.yml +152 -0
- data/spec/vcr/Docker_Exec/_start_/when_detach_is_set_to_true/returns_empty_stdout_and_stderr_messages.yml +151 -0
- data/spec/vcr/Docker_Exec/_start_/when_the_HTTP_request_returns_a_201/starts_the_exec_instance.yml +151 -0
- data/spec/vcr/Docker_Exec/_start_/when_the_command_has_already_run/raises_an_error.yml +151 -0
- data/spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml +86 -200
- 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 -14
- 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 +147 -39
- data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/without_query_parameters/builds_an_image.yml +10 -14
- data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml +12 -14
- 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 +118 -16
- data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_credentials_passed/sends_X-Registry-Config_header.yml +118 -14
- data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_no_query_parameters/builds_the_image.yml +109 -37
- 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 +214 -60
- 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 +41 -2631
- data/spec/vcr/Docker_Image/_exist_/when_the_image_does_exist/returns_true.yml +12 -19
- data/spec/vcr/Docker_Image/_get/when_the_image_does_exist/returns_the_new_image.yml +7 -9
- data/spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml +17 -198
- data/spec/vcr/Docker_Image/_import/when_the_argument_is_a_URI/when_the_URI_is_invalid/raises_an_error.yml +26 -30
- data/spec/vcr/Docker_Image/_import/when_the_argument_is_a_URI/when_the_URI_is_valid/returns_an_Image.yml +246 -22
- data/spec/vcr/Docker_Image/_import/when_the_file_does_exist/creates_the_Image.yml +35 -10
- data/spec/vcr/Docker_Image/_insert_local/when_a_direcory_is_passed/inserts_the_directory.yml +1249 -74
- data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/creates_a_new_image.yml +84 -94
- data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/leave_no_intermediate_containers.yml +70 -92
- data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_exist/creates_a_new_Image_that_has_that_file.yml +125 -98
- data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_not_exist/raises_an_error.yml +13 -60
- data/spec/vcr/Docker_Image/_insert_local/when_there_are_multiple_files_passed/creates_a_new_Image_that_has_each_file.yml +190 -135
- data/spec/vcr/Docker_Image/_json/returns_additional_information_about_image_image.yml +15 -198
- data/spec/vcr/Docker_Image/_push/pushes_the_Image.yml +169 -264
- data/spec/vcr/Docker_Image/_push/when_there_are_no_credentials/still_pushes.yml +175 -4543
- data/spec/vcr/Docker_Image/_refresh_/updates_the_info_hash.yml +90 -206
- data/spec/vcr/Docker_Image/_remove/when_no_name_is_given/removes_the_Image.yml +300 -0
- data/spec/vcr/Docker_Image/_run/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml +77 -207
- data/spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml +77 -207
- 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 +160 -0
- 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 +16 -197
- data/spec/vcr/Docker_Image/_search/materializes_each_Image_into_a_Docker_Image.yml +151 -73
- data/spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml +42 -196
- metadata +67 -41
- data/spec/vcr/Docker_Container/_commit/if_run_is_passed_it_saves_the_command_in_the_image/saves_the_command.yml +0 -58
- data/spec/vcr/Docker_Container/_streaming_logs/when_not_selecting_any_stream/returns_the_error_message.yml +0 -163
- data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/and_a_command_runs_for_too_long/raises_a_ServerError.yml +0 -58
- data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_credentials_passed/sends_Docker_creds.yml +0 -41
- data/spec/vcr/Docker_Image/_remove/removes_the_Image.yml +0 -276
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: "<DOCKER_HOST>/v1.15/containers/create"
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"Cmd":["
|
8
|
+
string: '{"Cmd":["bash","-c","sleep 2; echo hello"],"Image":"debian:wheezy"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.
|
11
|
+
- Swipely/Docker-API 1.15.0
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
response:
|
@@ -19,26 +19,24 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/json
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Mon, 01 Dec 2014 18:07:47 GMT
|
23
23
|
Content-Length:
|
24
24
|
- '90'
|
25
|
-
Connection:
|
26
|
-
- close
|
27
25
|
body:
|
28
26
|
encoding: UTF-8
|
29
27
|
string: |
|
30
|
-
{"Id":"
|
28
|
+
{"Id":"9cb79a3c842b72844355bc86b0ec5adf5f7a66bdcbe43d48eb9b8b35da453acc","Warnings":null}
|
31
29
|
http_version:
|
32
|
-
recorded_at:
|
30
|
+
recorded_at: Mon, 01 Dec 2014 18:07:47 GMT
|
33
31
|
- request:
|
34
32
|
method: post
|
35
|
-
uri:
|
33
|
+
uri: "<DOCKER_HOST>/v1.15/containers/9cb79a3c842b72844355bc86b0ec5adf5f7a66bdcbe43d48eb9b8b35da453acc/start"
|
36
34
|
body:
|
37
35
|
encoding: UTF-8
|
38
|
-
string:
|
36
|
+
string: "{}"
|
39
37
|
headers:
|
40
38
|
User-Agent:
|
41
|
-
- Swipely/Docker-API 1.
|
39
|
+
- Swipely/Docker-API 1.15.0
|
42
40
|
Content-Type:
|
43
41
|
- application/json
|
44
42
|
response:
|
@@ -47,23 +45,21 @@ http_interactions:
|
|
47
45
|
message:
|
48
46
|
headers:
|
49
47
|
Date:
|
50
|
-
-
|
51
|
-
Connection:
|
52
|
-
- close
|
48
|
+
- Mon, 01 Dec 2014 18:07:48 GMT
|
53
49
|
body:
|
54
50
|
encoding: UTF-8
|
55
51
|
string: ''
|
56
52
|
http_version:
|
57
|
-
recorded_at:
|
53
|
+
recorded_at: Mon, 01 Dec 2014 18:07:48 GMT
|
58
54
|
- request:
|
59
55
|
method: post
|
60
|
-
uri:
|
56
|
+
uri: "<DOCKER_HOST>/v1.15/containers/9cb79a3c842b72844355bc86b0ec5adf5f7a66bdcbe43d48eb9b8b35da453acc/attach?stderr=true&stdout=true&stream=true"
|
61
57
|
body:
|
62
58
|
encoding: US-ASCII
|
63
59
|
string: ''
|
64
60
|
headers:
|
65
61
|
User-Agent:
|
66
|
-
- Swipely/Docker-API 1.
|
62
|
+
- Swipely/Docker-API 1.15.0
|
67
63
|
Content-Type:
|
68
64
|
- text/plain
|
69
65
|
response:
|
@@ -76,7 +72,53 @@ http_interactions:
|
|
76
72
|
body:
|
77
73
|
encoding: UTF-8
|
78
74
|
string: !binary |-
|
79
|
-
|
75
|
+
AQAAAAAAAAZoZWxsbwo=
|
80
76
|
http_version:
|
81
|
-
recorded_at:
|
82
|
-
|
77
|
+
recorded_at: Mon, 01 Dec 2014 18:07:50 GMT
|
78
|
+
- request:
|
79
|
+
method: post
|
80
|
+
uri: "<DOCKER_HOST>/v1.15/containers/9cb79a3c842b72844355bc86b0ec5adf5f7a66bdcbe43d48eb9b8b35da453acc/stop"
|
81
|
+
body:
|
82
|
+
encoding: UTF-8
|
83
|
+
string: "{}"
|
84
|
+
headers:
|
85
|
+
User-Agent:
|
86
|
+
- Swipely/Docker-API 1.15.0
|
87
|
+
Content-Type:
|
88
|
+
- application/json
|
89
|
+
response:
|
90
|
+
status:
|
91
|
+
code: 304
|
92
|
+
message:
|
93
|
+
headers:
|
94
|
+
Date:
|
95
|
+
- Mon, 01 Dec 2014 18:07:50 GMT
|
96
|
+
body:
|
97
|
+
encoding: UTF-8
|
98
|
+
string: ''
|
99
|
+
http_version:
|
100
|
+
recorded_at: Mon, 01 Dec 2014 18:07:50 GMT
|
101
|
+
- request:
|
102
|
+
method: delete
|
103
|
+
uri: "<DOCKER_HOST>/v1.15/containers/9cb79a3c842b72844355bc86b0ec5adf5f7a66bdcbe43d48eb9b8b35da453acc"
|
104
|
+
body:
|
105
|
+
encoding: US-ASCII
|
106
|
+
string: ''
|
107
|
+
headers:
|
108
|
+
User-Agent:
|
109
|
+
- Swipely/Docker-API 1.15.0
|
110
|
+
Content-Type:
|
111
|
+
- text/plain
|
112
|
+
response:
|
113
|
+
status:
|
114
|
+
code: 204
|
115
|
+
message:
|
116
|
+
headers:
|
117
|
+
Date:
|
118
|
+
- Mon, 01 Dec 2014 18:07:50 GMT
|
119
|
+
body:
|
120
|
+
encoding: UTF-8
|
121
|
+
string: ''
|
122
|
+
http_version:
|
123
|
+
recorded_at: Mon, 01 Dec 2014 18:07:50 GMT
|
124
|
+
recorded_with: VCR 2.9.3
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: "<DOCKER_HOST>/v1.15/containers/create"
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"Cmd":["
|
8
|
+
string: '{"Cmd":["bash","-c","sleep 2; echo hello"],"Image":"debian:wheezy"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.
|
11
|
+
- Swipely/Docker-API 1.15.0
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
response:
|
@@ -19,26 +19,24 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/json
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Mon, 01 Dec 2014 18:07:50 GMT
|
23
23
|
Content-Length:
|
24
24
|
- '90'
|
25
|
-
Connection:
|
26
|
-
- close
|
27
25
|
body:
|
28
26
|
encoding: UTF-8
|
29
27
|
string: |
|
30
|
-
{"Id":"
|
28
|
+
{"Id":"b17bd45cfd6a0c01de15955e2e6789560a1df387e8e55fd2b5f7c11d00c00d2e","Warnings":null}
|
31
29
|
http_version:
|
32
|
-
recorded_at:
|
30
|
+
recorded_at: Mon, 01 Dec 2014 18:07:50 GMT
|
33
31
|
- request:
|
34
32
|
method: post
|
35
|
-
uri:
|
33
|
+
uri: "<DOCKER_HOST>/v1.15/containers/b17bd45cfd6a0c01de15955e2e6789560a1df387e8e55fd2b5f7c11d00c00d2e/start"
|
36
34
|
body:
|
37
35
|
encoding: UTF-8
|
38
|
-
string:
|
36
|
+
string: "{}"
|
39
37
|
headers:
|
40
38
|
User-Agent:
|
41
|
-
- Swipely/Docker-API 1.
|
39
|
+
- Swipely/Docker-API 1.15.0
|
42
40
|
Content-Type:
|
43
41
|
- application/json
|
44
42
|
response:
|
@@ -47,23 +45,21 @@ http_interactions:
|
|
47
45
|
message:
|
48
46
|
headers:
|
49
47
|
Date:
|
50
|
-
-
|
51
|
-
Connection:
|
52
|
-
- close
|
48
|
+
- Mon, 01 Dec 2014 18:07:50 GMT
|
53
49
|
body:
|
54
50
|
encoding: UTF-8
|
55
51
|
string: ''
|
56
52
|
http_version:
|
57
|
-
recorded_at:
|
53
|
+
recorded_at: Mon, 01 Dec 2014 18:07:50 GMT
|
58
54
|
- request:
|
59
55
|
method: post
|
60
|
-
uri:
|
56
|
+
uri: "<DOCKER_HOST>/v1.15/containers/b17bd45cfd6a0c01de15955e2e6789560a1df387e8e55fd2b5f7c11d00c00d2e/attach?stderr=true&stdout=true&stream=true"
|
61
57
|
body:
|
62
58
|
encoding: US-ASCII
|
63
59
|
string: ''
|
64
60
|
headers:
|
65
61
|
User-Agent:
|
66
|
-
- Swipely/Docker-API 1.
|
62
|
+
- Swipely/Docker-API 1.15.0
|
67
63
|
Content-Type:
|
68
64
|
- text/plain
|
69
65
|
response:
|
@@ -76,7 +72,53 @@ http_interactions:
|
|
76
72
|
body:
|
77
73
|
encoding: UTF-8
|
78
74
|
string: !binary |-
|
79
|
-
|
75
|
+
AQAAAAAAAAZoZWxsbwo=
|
80
76
|
http_version:
|
81
|
-
recorded_at:
|
82
|
-
|
77
|
+
recorded_at: Mon, 01 Dec 2014 18:07:53 GMT
|
78
|
+
- request:
|
79
|
+
method: post
|
80
|
+
uri: "<DOCKER_HOST>/v1.15/containers/b17bd45cfd6a0c01de15955e2e6789560a1df387e8e55fd2b5f7c11d00c00d2e/stop"
|
81
|
+
body:
|
82
|
+
encoding: UTF-8
|
83
|
+
string: "{}"
|
84
|
+
headers:
|
85
|
+
User-Agent:
|
86
|
+
- Swipely/Docker-API 1.15.0
|
87
|
+
Content-Type:
|
88
|
+
- application/json
|
89
|
+
response:
|
90
|
+
status:
|
91
|
+
code: 304
|
92
|
+
message:
|
93
|
+
headers:
|
94
|
+
Date:
|
95
|
+
- Mon, 01 Dec 2014 18:07:53 GMT
|
96
|
+
body:
|
97
|
+
encoding: UTF-8
|
98
|
+
string: ''
|
99
|
+
http_version:
|
100
|
+
recorded_at: Mon, 01 Dec 2014 18:07:53 GMT
|
101
|
+
- request:
|
102
|
+
method: delete
|
103
|
+
uri: "<DOCKER_HOST>/v1.15/containers/b17bd45cfd6a0c01de15955e2e6789560a1df387e8e55fd2b5f7c11d00c00d2e"
|
104
|
+
body:
|
105
|
+
encoding: US-ASCII
|
106
|
+
string: ''
|
107
|
+
headers:
|
108
|
+
User-Agent:
|
109
|
+
- Swipely/Docker-API 1.15.0
|
110
|
+
Content-Type:
|
111
|
+
- text/plain
|
112
|
+
response:
|
113
|
+
status:
|
114
|
+
code: 204
|
115
|
+
message:
|
116
|
+
headers:
|
117
|
+
Date:
|
118
|
+
- Mon, 01 Dec 2014 18:07:53 GMT
|
119
|
+
body:
|
120
|
+
encoding: UTF-8
|
121
|
+
string: ''
|
122
|
+
http_version:
|
123
|
+
recorded_at: Mon, 01 Dec 2014 18:07:53 GMT
|
124
|
+
recorded_with: VCR 2.9.3
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: "<DOCKER_HOST>/v1.15/containers/create"
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"Cmd":["rm","-rf","/root"],"Image":"
|
8
|
+
string: '{"Cmd":["rm","-rf","/root"],"Image":"debian:wheezy"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.
|
11
|
+
- Swipely/Docker-API 1.15.0
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
response:
|
@@ -19,26 +19,24 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/json
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Mon, 01 Dec 2014 18:07:39 GMT
|
23
23
|
Content-Length:
|
24
24
|
- '90'
|
25
|
-
Connection:
|
26
|
-
- close
|
27
25
|
body:
|
28
26
|
encoding: UTF-8
|
29
27
|
string: |
|
30
|
-
{"Id":"
|
28
|
+
{"Id":"f206d30f87bbb4535daaf08c8f49b673bd09cd996b67a14669ce33af9ef81483","Warnings":null}
|
31
29
|
http_version:
|
32
|
-
recorded_at:
|
30
|
+
recorded_at: Mon, 01 Dec 2014 18:07:39 GMT
|
33
31
|
- request:
|
34
32
|
method: post
|
35
|
-
uri:
|
33
|
+
uri: "<DOCKER_HOST>/v1.15/containers/f206d30f87bbb4535daaf08c8f49b673bd09cd996b67a14669ce33af9ef81483/start"
|
36
34
|
body:
|
37
35
|
encoding: UTF-8
|
38
|
-
string:
|
36
|
+
string: "{}"
|
39
37
|
headers:
|
40
38
|
User-Agent:
|
41
|
-
- Swipely/Docker-API 1.
|
39
|
+
- Swipely/Docker-API 1.15.0
|
42
40
|
Content-Type:
|
43
41
|
- application/json
|
44
42
|
response:
|
@@ -47,23 +45,21 @@ http_interactions:
|
|
47
45
|
message:
|
48
46
|
headers:
|
49
47
|
Date:
|
50
|
-
-
|
51
|
-
Connection:
|
52
|
-
- close
|
48
|
+
- Mon, 01 Dec 2014 18:07:39 GMT
|
53
49
|
body:
|
54
50
|
encoding: UTF-8
|
55
51
|
string: ''
|
56
52
|
http_version:
|
57
|
-
recorded_at:
|
53
|
+
recorded_at: Mon, 01 Dec 2014 18:07:39 GMT
|
58
54
|
- request:
|
59
55
|
method: post
|
60
|
-
uri:
|
56
|
+
uri: "<DOCKER_HOST>/v1.15/containers/f206d30f87bbb4535daaf08c8f49b673bd09cd996b67a14669ce33af9ef81483/wait"
|
61
57
|
body:
|
62
58
|
encoding: US-ASCII
|
63
59
|
string: ''
|
64
60
|
headers:
|
65
61
|
User-Agent:
|
66
|
-
- Swipely/Docker-API 1.
|
62
|
+
- Swipely/Docker-API 1.15.0
|
67
63
|
Content-Type:
|
68
64
|
- text/plain
|
69
65
|
response:
|
@@ -74,26 +70,24 @@ http_interactions:
|
|
74
70
|
Content-Type:
|
75
71
|
- application/json
|
76
72
|
Date:
|
77
|
-
-
|
73
|
+
- Mon, 01 Dec 2014 18:07:40 GMT
|
78
74
|
Content-Length:
|
79
75
|
- '17'
|
80
|
-
Connection:
|
81
|
-
- close
|
82
76
|
body:
|
83
77
|
encoding: UTF-8
|
84
78
|
string: |
|
85
79
|
{"StatusCode":0}
|
86
80
|
http_version:
|
87
|
-
recorded_at:
|
81
|
+
recorded_at: Mon, 01 Dec 2014 18:07:40 GMT
|
88
82
|
- request:
|
89
83
|
method: get
|
90
|
-
uri:
|
84
|
+
uri: "<DOCKER_HOST>/v1.15/containers/f206d30f87bbb4535daaf08c8f49b673bd09cd996b67a14669ce33af9ef81483/changes"
|
91
85
|
body:
|
92
86
|
encoding: US-ASCII
|
93
87
|
string: ''
|
94
88
|
headers:
|
95
89
|
User-Agent:
|
96
|
-
- Swipely/Docker-API 1.
|
90
|
+
- Swipely/Docker-API 1.15.0
|
97
91
|
Content-Type:
|
98
92
|
- text/plain
|
99
93
|
response:
|
@@ -104,16 +98,65 @@ http_interactions:
|
|
104
98
|
Content-Type:
|
105
99
|
- application/json
|
106
100
|
Date:
|
107
|
-
-
|
101
|
+
- Mon, 01 Dec 2014 18:07:40 GMT
|
108
102
|
Content-Length:
|
109
103
|
- '28'
|
110
|
-
Connection:
|
111
|
-
- close
|
112
104
|
body:
|
113
105
|
encoding: UTF-8
|
114
106
|
string: |-
|
115
107
|
[{"Kind":2,"Path":"/root"}
|
116
108
|
]
|
117
109
|
http_version:
|
118
|
-
recorded_at:
|
119
|
-
|
110
|
+
recorded_at: Mon, 01 Dec 2014 18:07:40 GMT
|
111
|
+
- request:
|
112
|
+
method: post
|
113
|
+
uri: "<DOCKER_HOST>/v1.15/containers/f206d30f87bbb4535daaf08c8f49b673bd09cd996b67a14669ce33af9ef81483/wait"
|
114
|
+
body:
|
115
|
+
encoding: US-ASCII
|
116
|
+
string: ''
|
117
|
+
headers:
|
118
|
+
User-Agent:
|
119
|
+
- Swipely/Docker-API 1.15.0
|
120
|
+
Content-Type:
|
121
|
+
- text/plain
|
122
|
+
response:
|
123
|
+
status:
|
124
|
+
code: 200
|
125
|
+
message:
|
126
|
+
headers:
|
127
|
+
Content-Type:
|
128
|
+
- application/json
|
129
|
+
Date:
|
130
|
+
- Mon, 01 Dec 2014 18:07:40 GMT
|
131
|
+
Content-Length:
|
132
|
+
- '17'
|
133
|
+
body:
|
134
|
+
encoding: UTF-8
|
135
|
+
string: |
|
136
|
+
{"StatusCode":0}
|
137
|
+
http_version:
|
138
|
+
recorded_at: Mon, 01 Dec 2014 18:07:40 GMT
|
139
|
+
- request:
|
140
|
+
method: delete
|
141
|
+
uri: "<DOCKER_HOST>/v1.15/containers/f206d30f87bbb4535daaf08c8f49b673bd09cd996b67a14669ce33af9ef81483"
|
142
|
+
body:
|
143
|
+
encoding: US-ASCII
|
144
|
+
string: ''
|
145
|
+
headers:
|
146
|
+
User-Agent:
|
147
|
+
- Swipely/Docker-API 1.15.0
|
148
|
+
Content-Type:
|
149
|
+
- text/plain
|
150
|
+
response:
|
151
|
+
status:
|
152
|
+
code: 204
|
153
|
+
message:
|
154
|
+
headers:
|
155
|
+
Date:
|
156
|
+
- Mon, 01 Dec 2014 18:07:40 GMT
|
157
|
+
body:
|
158
|
+
encoding: UTF-8
|
159
|
+
string: ''
|
160
|
+
http_version:
|
161
|
+
recorded_at: Mon, 01 Dec 2014 18:07:40 GMT
|
162
|
+
recorded_with: VCR 2.9.3
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: "<DOCKER_HOST>/v1.15/containers/create"
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"Cmd":["true"],"Image":"
|
8
|
+
string: '{"Cmd":["true"],"Image":"debian:wheezy"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.
|
11
|
+
- Swipely/Docker-API 1.15.0
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
response:
|
@@ -19,26 +19,24 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/json
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Mon, 01 Dec 2014 18:08:20 GMT
|
23
23
|
Content-Length:
|
24
24
|
- '90'
|
25
|
-
Connection:
|
26
|
-
- close
|
27
25
|
body:
|
28
26
|
encoding: UTF-8
|
29
27
|
string: |
|
30
|
-
{"Id":"
|
28
|
+
{"Id":"ddb290600c9cc2d42c139008add0d1a36a63c0feec0995d98dc514d2009da82e","Warnings":null}
|
31
29
|
http_version:
|
32
|
-
recorded_at:
|
30
|
+
recorded_at: Mon, 01 Dec 2014 18:08:20 GMT
|
33
31
|
- request:
|
34
32
|
method: post
|
35
|
-
uri:
|
33
|
+
uri: "<DOCKER_HOST>/v1.15/containers/ddb290600c9cc2d42c139008add0d1a36a63c0feec0995d98dc514d2009da82e/start"
|
36
34
|
body:
|
37
35
|
encoding: UTF-8
|
38
|
-
string:
|
36
|
+
string: "{}"
|
39
37
|
headers:
|
40
38
|
User-Agent:
|
41
|
-
- Swipely/Docker-API 1.
|
39
|
+
- Swipely/Docker-API 1.15.0
|
42
40
|
Content-Type:
|
43
41
|
- application/json
|
44
42
|
response:
|
@@ -47,23 +45,21 @@ http_interactions:
|
|
47
45
|
message:
|
48
46
|
headers:
|
49
47
|
Date:
|
50
|
-
-
|
51
|
-
Connection:
|
52
|
-
- close
|
48
|
+
- Mon, 01 Dec 2014 18:08:20 GMT
|
53
49
|
body:
|
54
50
|
encoding: UTF-8
|
55
51
|
string: ''
|
56
52
|
http_version:
|
57
|
-
recorded_at:
|
53
|
+
recorded_at: Mon, 01 Dec 2014 18:08:20 GMT
|
58
54
|
- request:
|
59
55
|
method: post
|
60
|
-
uri:
|
56
|
+
uri: "<DOCKER_HOST>/v1.15/commit?container=ddb29060"
|
61
57
|
body:
|
62
58
|
encoding: UTF-8
|
63
59
|
string: 'null'
|
64
60
|
headers:
|
65
61
|
User-Agent:
|
66
|
-
- Swipely/Docker-API 1.
|
62
|
+
- Swipely/Docker-API 1.15.0
|
67
63
|
Content-Type:
|
68
64
|
- application/json
|
69
65
|
response:
|
@@ -74,15 +70,65 @@ http_interactions:
|
|
74
70
|
Content-Type:
|
75
71
|
- application/json
|
76
72
|
Date:
|
77
|
-
-
|
73
|
+
- Mon, 01 Dec 2014 18:08:20 GMT
|
78
74
|
Content-Length:
|
79
75
|
- '74'
|
80
|
-
Connection:
|
81
|
-
- close
|
82
76
|
body:
|
83
77
|
encoding: UTF-8
|
84
78
|
string: |
|
85
|
-
{"Id":"
|
79
|
+
{"Id":"4021e5edd97e2f7d42a3e7073154aeb7137d5d8d7f7c3cee3f61eadbf591fce7"}
|
86
80
|
http_version:
|
87
|
-
recorded_at:
|
88
|
-
|
81
|
+
recorded_at: Mon, 01 Dec 2014 18:08:20 GMT
|
82
|
+
- request:
|
83
|
+
method: delete
|
84
|
+
uri: "<DOCKER_HOST>/v1.15/containers/ddb290600c9cc2d42c139008add0d1a36a63c0feec0995d98dc514d2009da82e"
|
85
|
+
body:
|
86
|
+
encoding: US-ASCII
|
87
|
+
string: ''
|
88
|
+
headers:
|
89
|
+
User-Agent:
|
90
|
+
- Swipely/Docker-API 1.15.0
|
91
|
+
Content-Type:
|
92
|
+
- text/plain
|
93
|
+
response:
|
94
|
+
status:
|
95
|
+
code: 204
|
96
|
+
message:
|
97
|
+
headers:
|
98
|
+
Date:
|
99
|
+
- Mon, 01 Dec 2014 18:08:20 GMT
|
100
|
+
body:
|
101
|
+
encoding: UTF-8
|
102
|
+
string: ''
|
103
|
+
http_version:
|
104
|
+
recorded_at: Mon, 01 Dec 2014 18:08:20 GMT
|
105
|
+
- request:
|
106
|
+
method: delete
|
107
|
+
uri: "<DOCKER_HOST>/v1.15/images/4021e5edd97e2f7d42a3e7073154aeb7137d5d8d7f7c3cee3f61eadbf591fce7"
|
108
|
+
body:
|
109
|
+
encoding: US-ASCII
|
110
|
+
string: ''
|
111
|
+
headers:
|
112
|
+
User-Agent:
|
113
|
+
- Swipely/Docker-API 1.15.0
|
114
|
+
Content-Type:
|
115
|
+
- text/plain
|
116
|
+
response:
|
117
|
+
status:
|
118
|
+
code: 200
|
119
|
+
message:
|
120
|
+
headers:
|
121
|
+
Content-Type:
|
122
|
+
- application/json
|
123
|
+
Date:
|
124
|
+
- Mon, 01 Dec 2014 18:08:20 GMT
|
125
|
+
Content-Length:
|
126
|
+
- '81'
|
127
|
+
body:
|
128
|
+
encoding: UTF-8
|
129
|
+
string: |-
|
130
|
+
[{"Deleted":"4021e5edd97e2f7d42a3e7073154aeb7137d5d8d7f7c3cee3f61eadbf591fce7"}
|
131
|
+
]
|
132
|
+
http_version:
|
133
|
+
recorded_at: Mon, 01 Dec 2014 18:08:20 GMT
|
134
|
+
recorded_with: VCR 2.9.3
|