docker-api 1.18.0 → 1.19.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 +7 -7
- data/lib/docker/exec.rb +8 -2
- data/lib/docker/util.rb +11 -1
- data/lib/docker/version.rb +2 -2
- data/spec/docker/container_spec.rb +6 -5
- data/spec/docker/exec_spec.rb +29 -61
- data/spec/docker/image_spec.rb +8 -4
- data/spec/docker_spec.rb +4 -3
- data/spec/fixtures/build_from_dir/Dockerfile +1 -1
- data/spec/vcr/Docker/_authenticate_/with_valid_credentials/logs_in_and_sets_the_creds.yml +10 -9
- data/spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml +15 -9
- data/spec/vcr/Docker/_validate_version/when_nothing_is_raised/validate_version_/.yml +15 -9
- data/spec/vcr/Docker/_version/returns_the_version_as_a_Hash.yml +10 -9
- data/spec/vcr/Docker_Container/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml +45 -34
- data/spec/vcr/Docker_Container/_attach/with_normal_sized_chunks/yields_each_chunk.yml +31 -30
- data/spec/vcr/Docker_Container/_attach/with_very_small_chunks/yields_each_chunk.yml +31 -30
- data/spec/vcr/Docker_Container/_changes/returns_the_changes_as_an_array.yml +45 -42
- data/spec/vcr/Docker_Container/_commit/creates_a_new_Image_from_the_Container_s_changes.yml +66 -35
- data/spec/vcr/Docker_Container/_copy/when_the_file_does_not_exist/raises_an_error.yml +37 -35
- data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_directory/yields_each_chunk_of_the_tarred_directory.yml +45 -43
- data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_file/yields_each_chunk_of_the_tarred_file.yml +44 -42
- data/spec/vcr/Docker_Container/_create/when_creating_a_container_named_bob/should_have_name_set_to_bob.yml +24 -22
- data/spec/vcr/Docker_Container/_create/when_the_Container_does_not_yet_exist/when_the_HTTP_request_returns_a_200/sets_the_id.yml +15 -14
- data/spec/vcr/Docker_Container/_delete/deletes_the_container.yml +24 -22
- data/spec/vcr/Docker_Container/_exec/when_detach_is_true/returns_the_Docker_Exec_object.yml +68 -39
- data/spec/vcr/Docker_Container/_exec/when_passed_a_block/streams_the_stdout/stderr_messages.yml +68 -38
- data/spec/vcr/Docker_Container/_exec/when_passed_only_a_command/returns_the_stdout/stderr_messages_and_exit_code.yml +183 -0
- data/spec/vcr/Docker_Container/_exec/when_stdin_object_is_passed/returns_the_stdout/stderr_messages.yml +26 -25
- data/spec/vcr/Docker_Container/_exec/when_tty_is_true/returns_the_raw_stdout/stderr_output.yml +68 -38
- data/spec/vcr/Docker_Container/_export/yields_each_chunk.yml +85 -92
- data/spec/vcr/Docker_Container/_get/when_the_HTTP_response_is_a_200/materializes_the_Container_into_a_Docker_Container.yml +24 -22
- data/spec/vcr/Docker_Container/_json/returns_the_description_as_a_Hash.yml +24 -22
- data/spec/vcr/Docker_Container/_kill/kills_the_container.yml +48 -43
- data/spec/vcr/Docker_Container/_kill/with_a_kill_signal/kills_the_container.yml +83 -69
- data/spec/vcr/Docker_Container/_logs/when_not_selecting_any_stream/raises_a_client_error.yml +47 -42
- data/spec/vcr/Docker_Container/_logs/when_selecting_stdout/returns_blank_logs.yml +20 -19
- data/spec/vcr/Docker_Container/_pause/pauses_the_container.yml +45 -43
- data/spec/vcr/Docker_Container/_restart/restarts_the_container.yml +73 -65
- data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_does_not_return_status_code_of_0/raises_an_error.yml +29 -27
- 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 +114 -102
- data/spec/vcr/Docker_Container/_start/starts_the_container.yml +42 -37
- data/spec/vcr/Docker_Container/_stop/stops_the_container.yml +49 -44
- data/spec/vcr/Docker_Container/_streaming_logs/when_not_selecting_any_stream/raises_a_client_error.yml +47 -42
- data/spec/vcr/Docker_Container/_streaming_logs/when_selecting_stdout/returns_blank_logs.yml +20 -19
- data/spec/vcr/Docker_Container/_top/returns_the_top_commands_as_an_Array.yml +54 -51
- data/spec/vcr/Docker_Container/_unpause/unpauses_the_container.yml +45 -43
- data/spec/vcr/Docker_Container/_wait/waits_for_the_command_to_finish.yml +29 -27
- data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/sets_the_read_timeout_to_that_amount_of_time.yml +29 -27
- data/spec/vcr/Docker_Exec/_create/when_the_HTTP_request_returns_a_201/sets_the_id.yml +35 -33
- data/spec/vcr/Docker_Exec/_json/returns_the_description_as_a_Hash.yml +207 -0
- data/spec/vcr/Docker_Exec/_start_/when_detach_is_set_to_false/block_is_passed/attaches_to_the_stream.yml +68 -38
- data/spec/vcr/Docker_Exec/_start_/when_detach_is_set_to_false/returns_the_stdout_and_stderr_messages.yml +68 -38
- data/spec/vcr/Docker_Exec/_start_/when_detach_is_set_to_true/returns_empty_stdout/stderr_messages_with_exitcode.yml +180 -0
- data/spec/vcr/Docker_Exec/_start_/when_the_HTTP_request_returns_a_201/starts_the_exec_instance.yml +67 -38
- data/spec/vcr/Docker_Exec/_start_/when_the_command_has_already_run/raises_an_error.yml +67 -38
- data/spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml +67 -87
- data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/with_a_block_capturing_build_output/calls_the_block_and_passes_build_output.yml +9 -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 +92 -107
- data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/without_query_parameters/builds_an_image.yml +9 -9
- data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml +11 -9
- 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 +89 -38
- data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_credentials_passed/sends_X-Registry-Config_header.yml +89 -38
- data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_no_query_parameters/builds_the_image.yml +421 -51
- 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 +422 -140
- 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 +16 -16
- data/spec/vcr/Docker_Image/_create/with_a_block_capturing_create_output/calls_the_block_and_passes_build_output.yml +9 -7
- data/spec/vcr/Docker_Image/_exist_/when_the_image_does_exist/returns_true.yml +11 -9
- data/spec/vcr/Docker_Image/_get/when_the_image_does_exist/returns_the_new_image.yml +11 -9
- data/spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml +21 -18
- data/spec/vcr/Docker_Image/_import/when_the_argument_is_a_URI/when_the_URI_is_invalid/raises_an_error.yml +164 -35
- data/spec/vcr/Docker_Image/_import/when_the_argument_is_a_URI/when_the_URI_is_valid/returns_an_Image.yml +21 -23
- data/spec/vcr/Docker_Image/_import/when_the_file_does_exist/creates_the_Image.yml +15 -15
- data/spec/vcr/Docker_Image/_insert_local/when_a_direcory_is_passed/inserts_the_directory.yml +887 -840
- data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/creates_a_new_image.yml +76 -65
- data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/leave_no_intermediate_containers.yml +56 -48
- data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_exist/creates_a_new_Image_that_has_that_file.yml +63 -61
- data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_not_exist/raises_an_error.yml +9 -9
- data/spec/vcr/Docker_Image/_insert_local/when_there_are_multiple_files_passed/creates_a_new_Image_that_has_each_file.yml +69 -66
- data/spec/vcr/Docker_Image/_json/returns_additional_information_about_image_image.yml +19 -17
- data/spec/vcr/Docker_Image/_push/pushes_the_Image.yml +99 -113
- data/spec/vcr/Docker_Image/_push/streams_output_from_push.yml +100 -391
- data/spec/vcr/Docker_Image/_push/when_the_image_was_retrived_by_get/when_no_tag_is_specified/looks_up_the_first_repo_tag.yml +174 -708
- data/spec/vcr/Docker_Image/_push/when_there_are_no_credentials/still_pushes.yml +115 -110
- data/spec/vcr/Docker_Image/_refresh_/updates_the_info_hash.yml +77 -93
- data/spec/vcr/Docker_Image/_refresh_/with_an_explicit_connection/updates_using_the_provided_connection.yml +19 -17
- data/spec/vcr/Docker_Image/_remove/when_no_name_is_given/removes_the_Image.yml +581 -229
- data/spec/vcr/Docker_Image/_run/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml +52 -50
- data/spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml +42 -40
- 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 +52 -50
- 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 -15
- data/spec/vcr/Docker_Image/_save/calls_the_class_method.yml +42 -39
- data/spec/vcr/Docker_Image/_save/when_a_filename_is_specified/exports_tarball_of_image_to_specified_file.yml +51 -63
- data/spec/vcr/Docker_Image/_save/when_no_filename_is_specified/returns_raw_binary_data_as_string.yml +51 -63
- data/spec/vcr/Docker_Image/_search/materializes_each_Image_into_a_Docker_Image.yml +48 -209
- data/spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml +22 -22
- metadata +8 -8
- data/spec/vcr/Docker_Container/_exec/when_passed_only_a_command/returns_the_stdout/stderr_messages.yml +0 -153
- data/spec/vcr/Docker_Exec/_resize/when_exec_instance_has_TTY_enabled/returns_a_200.yml +0 -155
- data/spec/vcr/Docker_Exec/_start_/when_detach_is_set_to_true/returns_empty_stdout_and_stderr_messages.yml +0 -151
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: <DOCKER_HOST>/v1.16/containers/create
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"Cmd":["true"],"Image":"debian:wheezy"}'
|
8
|
+
string: ! '{"Cmd":["true"],"Image":"debian:wheezy"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.
|
11
|
+
- Swipely/Docker-API 1.18.0
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
response:
|
@@ -19,24 +19,25 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/json
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Thu, 12 Feb 2015 00:53:23 GMT
|
23
23
|
Content-Length:
|
24
24
|
- '90'
|
25
25
|
body:
|
26
|
-
encoding:
|
27
|
-
string:
|
28
|
-
|
26
|
+
encoding: US-ASCII
|
27
|
+
string: ! '{"Id":"0331d7c8f9e7f04b543cd66eff3345c971ec046a9572a360d1677886f1d39df0","Warnings":null}
|
28
|
+
|
29
|
+
'
|
29
30
|
http_version:
|
30
|
-
recorded_at:
|
31
|
+
recorded_at: Thu, 12 Feb 2015 00:53:23 GMT
|
31
32
|
- request:
|
32
33
|
method: get
|
33
|
-
uri:
|
34
|
+
uri: <DOCKER_HOST>/v1.16/containers/0331d7c8f9e7f04b543cd66eff3345c971ec046a9572a360d1677886f1d39df0/json
|
34
35
|
body:
|
35
36
|
encoding: US-ASCII
|
36
37
|
string: ''
|
37
38
|
headers:
|
38
39
|
User-Agent:
|
39
|
-
- Swipely/Docker-API 1.
|
40
|
+
- Swipely/Docker-API 1.18.0
|
40
41
|
Content-Type:
|
41
42
|
- text/plain
|
42
43
|
response:
|
@@ -47,24 +48,25 @@ http_interactions:
|
|
47
48
|
Content-Type:
|
48
49
|
- application/json
|
49
50
|
Date:
|
50
|
-
-
|
51
|
+
- Thu, 12 Feb 2015 00:53:23 GMT
|
51
52
|
Content-Length:
|
52
|
-
- '
|
53
|
+
- '1559'
|
53
54
|
body:
|
54
|
-
encoding:
|
55
|
-
string:
|
56
|
-
|
55
|
+
encoding: US-ASCII
|
56
|
+
string: ! '{"AppArmorProfile":"","Args":[],"Config":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":["true"],"CpuShares":0,"Cpuset":"","Domainname":"","Entrypoint":null,"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"],"ExposedPorts":null,"Hostname":"0331d7c8f9e7","Image":"debian:wheezy","MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":null,"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Created":"2015-02-12T00:53:23.350436105Z","Driver":"devicemapper","ExecDriver":"native-0.2","HostConfig":{"Binds":null,"CapAdd":null,"CapDrop":null,"ContainerIDFile":"","Devices":null,"Dns":null,"DnsSearch":null,"ExtraHosts":null,"IpcMode":"","Links":null,"LxcConf":null,"NetworkMode":"","PortBindings":null,"Privileged":false,"PublishAllPorts":false,"RestartPolicy":{"MaximumRetryCount":0,"Name":""},"SecurityOpt":null,"VolumesFrom":null},"HostnamePath":"","HostsPath":"","Id":"0331d7c8f9e7f04b543cd66eff3345c971ec046a9572a360d1677886f1d39df0","Image":"c90d655b99b2ec5b7e94d38c87f92dce015c17a313caeaae0e980d9b9bed8444","MountLabel":"","Name":"/jovial_fermi","NetworkSettings":{"Bridge":"","Gateway":"","IPAddress":"","IPPrefixLen":0,"MacAddress":"","PortMapping":null,"Ports":null},"Path":"true","ProcessLabel":"","ResolvConfPath":"","State":{"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":0,"Restarting":false,"Running":false,"StartedAt":"0001-01-01T00:00:00Z"},"Volumes":{},"VolumesRW":{}}
|
57
|
+
|
58
|
+
'
|
57
59
|
http_version:
|
58
|
-
recorded_at:
|
60
|
+
recorded_at: Thu, 12 Feb 2015 00:53:23 GMT
|
59
61
|
- request:
|
60
62
|
method: delete
|
61
|
-
uri:
|
63
|
+
uri: <DOCKER_HOST>/v1.16/containers/0331d7c8f9e7f04b543cd66eff3345c971ec046a9572a360d1677886f1d39df0
|
62
64
|
body:
|
63
65
|
encoding: US-ASCII
|
64
66
|
string: ''
|
65
67
|
headers:
|
66
68
|
User-Agent:
|
67
|
-
- Swipely/Docker-API 1.
|
69
|
+
- Swipely/Docker-API 1.18.0
|
68
70
|
Content-Type:
|
69
71
|
- text/plain
|
70
72
|
response:
|
@@ -73,10 +75,10 @@ http_interactions:
|
|
73
75
|
message:
|
74
76
|
headers:
|
75
77
|
Date:
|
76
|
-
-
|
78
|
+
- Thu, 12 Feb 2015 00:53:24 GMT
|
77
79
|
body:
|
78
|
-
encoding:
|
80
|
+
encoding: US-ASCII
|
79
81
|
string: ''
|
80
82
|
http_version:
|
81
|
-
recorded_at:
|
82
|
-
recorded_with: VCR 2.9.
|
83
|
+
recorded_at: Thu, 12 Feb 2015 00:53:24 GMT
|
84
|
+
recorded_with: VCR 2.9.2
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: <DOCKER_HOST>/v1.16/containers/create
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"Cmd":["/bin/bash","-c","while [ 1 ]; do echo hello; done"],"Image":"debian:wheezy"}'
|
8
|
+
string: ! '{"Cmd":["/bin/bash","-c","while [ 1 ]; do echo hello; done"],"Image":"debian:wheezy"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.
|
11
|
+
- Swipely/Docker-API 1.18.0
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
response:
|
@@ -19,24 +19,25 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/json
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Thu, 12 Feb 2015 00:54:05 GMT
|
23
23
|
Content-Length:
|
24
24
|
- '90'
|
25
25
|
body:
|
26
|
-
encoding:
|
27
|
-
string:
|
28
|
-
|
26
|
+
encoding: US-ASCII
|
27
|
+
string: ! '{"Id":"41e184c570d0064e399a6da040a32c83ac80d8e7aa69d4d854386ed44c7f1af2","Warnings":null}
|
28
|
+
|
29
|
+
'
|
29
30
|
http_version:
|
30
|
-
recorded_at:
|
31
|
+
recorded_at: Thu, 12 Feb 2015 00:54:05 GMT
|
31
32
|
- request:
|
32
33
|
method: post
|
33
|
-
uri:
|
34
|
+
uri: <DOCKER_HOST>/v1.16/containers/41e184c570d0064e399a6da040a32c83ac80d8e7aa69d4d854386ed44c7f1af2/start
|
34
35
|
body:
|
35
36
|
encoding: UTF-8
|
36
|
-
string:
|
37
|
+
string: ! '{}'
|
37
38
|
headers:
|
38
39
|
User-Agent:
|
39
|
-
- Swipely/Docker-API 1.
|
40
|
+
- Swipely/Docker-API 1.18.0
|
40
41
|
Content-Type:
|
41
42
|
- application/json
|
42
43
|
response:
|
@@ -45,21 +46,21 @@ http_interactions:
|
|
45
46
|
message:
|
46
47
|
headers:
|
47
48
|
Date:
|
48
|
-
-
|
49
|
+
- Thu, 12 Feb 2015 00:54:05 GMT
|
49
50
|
body:
|
50
|
-
encoding:
|
51
|
+
encoding: US-ASCII
|
51
52
|
string: ''
|
52
53
|
http_version:
|
53
|
-
recorded_at:
|
54
|
+
recorded_at: Thu, 12 Feb 2015 00:54:05 GMT
|
54
55
|
- request:
|
55
56
|
method: post
|
56
|
-
uri:
|
57
|
+
uri: <DOCKER_HOST>/v1.16/containers/41e184c570d0064e399a6da040a32c83ac80d8e7aa69d4d854386ed44c7f1af2/kill
|
57
58
|
body:
|
58
59
|
encoding: US-ASCII
|
59
60
|
string: ''
|
60
61
|
headers:
|
61
62
|
User-Agent:
|
62
|
-
- Swipely/Docker-API 1.
|
63
|
+
- Swipely/Docker-API 1.18.0
|
63
64
|
Content-Type:
|
64
65
|
- text/plain
|
65
66
|
response:
|
@@ -68,21 +69,21 @@ http_interactions:
|
|
68
69
|
message:
|
69
70
|
headers:
|
70
71
|
Date:
|
71
|
-
-
|
72
|
+
- Thu, 12 Feb 2015 00:54:05 GMT
|
72
73
|
body:
|
73
|
-
encoding:
|
74
|
+
encoding: US-ASCII
|
74
75
|
string: ''
|
75
76
|
http_version:
|
76
|
-
recorded_at:
|
77
|
+
recorded_at: Thu, 12 Feb 2015 00:54:05 GMT
|
77
78
|
- request:
|
78
79
|
method: get
|
79
|
-
uri:
|
80
|
+
uri: <DOCKER_HOST>/v1.16/containers/json
|
80
81
|
body:
|
81
82
|
encoding: US-ASCII
|
82
83
|
string: ''
|
83
84
|
headers:
|
84
85
|
User-Agent:
|
85
|
-
- Swipely/Docker-API 1.
|
86
|
+
- Swipely/Docker-API 1.18.0
|
86
87
|
Content-Type:
|
87
88
|
- text/plain
|
88
89
|
response:
|
@@ -93,25 +94,26 @@ http_interactions:
|
|
93
94
|
Content-Type:
|
94
95
|
- application/json
|
95
96
|
Date:
|
96
|
-
-
|
97
|
+
- Thu, 12 Feb 2015 00:54:05 GMT
|
97
98
|
Content-Length:
|
98
99
|
- '275'
|
99
100
|
body:
|
100
|
-
encoding:
|
101
|
-
string:
|
102
|
-
|
103
|
-
|
101
|
+
encoding: US-ASCII
|
102
|
+
string: ! '[{"Command":"docker-registry","Created":1423702401,"Id":"7495fa1e6c231934f42eb34525f24a052af2a7a43ae9c85051636428a62a40ba","Image":"registry:latest","Names":["/registry"],"Ports":[{"IP":"0.0.0.0","PrivatePort":5000,"PublicPort":5000,"Type":"tcp"}],"Status":"Up
|
103
|
+
43 seconds"}
|
104
|
+
|
105
|
+
]'
|
104
106
|
http_version:
|
105
|
-
recorded_at:
|
107
|
+
recorded_at: Thu, 12 Feb 2015 00:54:05 GMT
|
106
108
|
- request:
|
107
109
|
method: get
|
108
|
-
uri:
|
110
|
+
uri: <DOCKER_HOST>/v1.16/containers/json?all=true
|
109
111
|
body:
|
110
112
|
encoding: US-ASCII
|
111
113
|
string: ''
|
112
114
|
headers:
|
113
115
|
User-Agent:
|
114
|
-
- Swipely/Docker-API 1.
|
116
|
+
- Swipely/Docker-API 1.18.0
|
115
117
|
Content-Type:
|
116
118
|
- text/plain
|
117
119
|
response:
|
@@ -122,26 +124,29 @@ http_interactions:
|
|
122
124
|
Content-Type:
|
123
125
|
- application/json
|
124
126
|
Date:
|
125
|
-
-
|
127
|
+
- Thu, 12 Feb 2015 00:54:05 GMT
|
126
128
|
Content-Length:
|
127
|
-
- '
|
129
|
+
- '541'
|
128
130
|
body:
|
129
|
-
encoding:
|
130
|
-
string:
|
131
|
-
|
132
|
-
|
133
|
-
]
|
131
|
+
encoding: US-ASCII
|
132
|
+
string: ! '[{"Command":"/bin/bash -c ''while [ 1 ]; do echo hello; done''","Created":1423702444,"Id":"41e184c570d0064e399a6da040a32c83ac80d8e7aa69d4d854386ed44c7f1af2","Image":"debian:wheezy","Names":["/naughty_hawking"],"Ports":[],"Status":"Exited
|
133
|
+
(-1) Less than a second ago"}
|
134
|
+
|
135
|
+
,{"Command":"docker-registry","Created":1423702401,"Id":"7495fa1e6c231934f42eb34525f24a052af2a7a43ae9c85051636428a62a40ba","Image":"registry:latest","Names":["/registry"],"Ports":[{"IP":"0.0.0.0","PrivatePort":5000,"PublicPort":5000,"Type":"tcp"}],"Status":"Up
|
136
|
+
43 seconds"}
|
137
|
+
|
138
|
+
]'
|
134
139
|
http_version:
|
135
|
-
recorded_at:
|
140
|
+
recorded_at: Thu, 12 Feb 2015 00:54:05 GMT
|
136
141
|
- request:
|
137
142
|
method: delete
|
138
|
-
uri:
|
143
|
+
uri: <DOCKER_HOST>/v1.16/containers/41e184c570d0064e399a6da040a32c83ac80d8e7aa69d4d854386ed44c7f1af2
|
139
144
|
body:
|
140
145
|
encoding: US-ASCII
|
141
146
|
string: ''
|
142
147
|
headers:
|
143
148
|
User-Agent:
|
144
|
-
- Swipely/Docker-API 1.
|
149
|
+
- Swipely/Docker-API 1.18.0
|
145
150
|
Content-Type:
|
146
151
|
- text/plain
|
147
152
|
response:
|
@@ -150,10 +155,10 @@ http_interactions:
|
|
150
155
|
message:
|
151
156
|
headers:
|
152
157
|
Date:
|
153
|
-
-
|
158
|
+
- Thu, 12 Feb 2015 00:54:06 GMT
|
154
159
|
body:
|
155
|
-
encoding:
|
160
|
+
encoding: US-ASCII
|
156
161
|
string: ''
|
157
162
|
http_version:
|
158
|
-
recorded_at:
|
159
|
-
recorded_with: VCR 2.9.
|
163
|
+
recorded_at: Thu, 12 Feb 2015 00:54:06 GMT
|
164
|
+
recorded_with: VCR 2.9.2
|
@@ -2,14 +2,14 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri:
|
5
|
+
uri: <DOCKER_HOST>/v1.16/containers/create
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"Cmd":["/bin/bash","-c","trap echo SIGTERM; while [ 1 ]; do echo
|
9
|
-
done"],"Image":"debian:wheezy"}'
|
8
|
+
string: ! '{"Cmd":["/bin/bash","-c","trap echo SIGTERM; while [ 1 ]; do echo
|
9
|
+
hello; done"],"Image":"debian:wheezy"}'
|
10
10
|
headers:
|
11
11
|
User-Agent:
|
12
|
-
- Swipely/Docker-API 1.
|
12
|
+
- Swipely/Docker-API 1.18.0
|
13
13
|
Content-Type:
|
14
14
|
- application/json
|
15
15
|
response:
|
@@ -20,24 +20,25 @@ http_interactions:
|
|
20
20
|
Content-Type:
|
21
21
|
- application/json
|
22
22
|
Date:
|
23
|
-
-
|
23
|
+
- Thu, 12 Feb 2015 00:54:06 GMT
|
24
24
|
Content-Length:
|
25
25
|
- '90'
|
26
26
|
body:
|
27
|
-
encoding:
|
28
|
-
string:
|
29
|
-
|
27
|
+
encoding: US-ASCII
|
28
|
+
string: ! '{"Id":"8a5545b47ac45c07736c2a843ed0bad1815e45afa19111f70926ed5f8aa1b972","Warnings":null}
|
29
|
+
|
30
|
+
'
|
30
31
|
http_version:
|
31
|
-
recorded_at:
|
32
|
+
recorded_at: Thu, 12 Feb 2015 00:54:06 GMT
|
32
33
|
- request:
|
33
34
|
method: post
|
34
|
-
uri:
|
35
|
+
uri: <DOCKER_HOST>/v1.16/containers/8a5545b47ac45c07736c2a843ed0bad1815e45afa19111f70926ed5f8aa1b972/start
|
35
36
|
body:
|
36
37
|
encoding: UTF-8
|
37
|
-
string:
|
38
|
+
string: ! '{}'
|
38
39
|
headers:
|
39
40
|
User-Agent:
|
40
|
-
- Swipely/Docker-API 1.
|
41
|
+
- Swipely/Docker-API 1.18.0
|
41
42
|
Content-Type:
|
42
43
|
- application/json
|
43
44
|
response:
|
@@ -46,21 +47,21 @@ http_interactions:
|
|
46
47
|
message:
|
47
48
|
headers:
|
48
49
|
Date:
|
49
|
-
-
|
50
|
+
- Thu, 12 Feb 2015 00:54:06 GMT
|
50
51
|
body:
|
51
|
-
encoding:
|
52
|
+
encoding: US-ASCII
|
52
53
|
string: ''
|
53
54
|
http_version:
|
54
|
-
recorded_at:
|
55
|
+
recorded_at: Thu, 12 Feb 2015 00:54:06 GMT
|
55
56
|
- request:
|
56
57
|
method: post
|
57
|
-
uri:
|
58
|
+
uri: <DOCKER_HOST>/v1.16/containers/8a5545b47ac45c07736c2a843ed0bad1815e45afa19111f70926ed5f8aa1b972/kill?signal=SIGTERM
|
58
59
|
body:
|
59
60
|
encoding: US-ASCII
|
60
61
|
string: ''
|
61
62
|
headers:
|
62
63
|
User-Agent:
|
63
|
-
- Swipely/Docker-API 1.
|
64
|
+
- Swipely/Docker-API 1.18.0
|
64
65
|
Content-Type:
|
65
66
|
- text/plain
|
66
67
|
response:
|
@@ -69,21 +70,21 @@ http_interactions:
|
|
69
70
|
message:
|
70
71
|
headers:
|
71
72
|
Date:
|
72
|
-
-
|
73
|
+
- Thu, 12 Feb 2015 00:54:06 GMT
|
73
74
|
body:
|
74
|
-
encoding:
|
75
|
+
encoding: US-ASCII
|
75
76
|
string: ''
|
76
77
|
http_version:
|
77
|
-
recorded_at:
|
78
|
+
recorded_at: Thu, 12 Feb 2015 00:54:06 GMT
|
78
79
|
- request:
|
79
80
|
method: get
|
80
|
-
uri:
|
81
|
+
uri: <DOCKER_HOST>/v1.16/containers/json
|
81
82
|
body:
|
82
83
|
encoding: US-ASCII
|
83
84
|
string: ''
|
84
85
|
headers:
|
85
86
|
User-Agent:
|
86
|
-
- Swipely/Docker-API 1.
|
87
|
+
- Swipely/Docker-API 1.18.0
|
87
88
|
Content-Type:
|
88
89
|
- text/plain
|
89
90
|
response:
|
@@ -94,26 +95,30 @@ http_interactions:
|
|
94
95
|
Content-Type:
|
95
96
|
- application/json
|
96
97
|
Date:
|
97
|
-
-
|
98
|
+
- Thu, 12 Feb 2015 00:54:06 GMT
|
98
99
|
Content-Length:
|
99
|
-
- '
|
100
|
+
- '548'
|
100
101
|
body:
|
101
|
-
encoding:
|
102
|
-
string:
|
103
|
-
|
104
|
-
|
105
|
-
|
102
|
+
encoding: US-ASCII
|
103
|
+
string: ! '[{"Command":"/bin/bash -c ''trap echo SIGTERM; while [ 1 ]; do echo
|
104
|
+
hello; done''","Created":1423702446,"Id":"8a5545b47ac45c07736c2a843ed0bad1815e45afa19111f70926ed5f8aa1b972","Image":"debian:wheezy","Names":["/distracted_jones"],"Ports":[],"Status":"Up
|
105
|
+
Less than a second"}
|
106
|
+
|
107
|
+
,{"Command":"docker-registry","Created":1423702401,"Id":"7495fa1e6c231934f42eb34525f24a052af2a7a43ae9c85051636428a62a40ba","Image":"registry:latest","Names":["/registry"],"Ports":[{"IP":"0.0.0.0","PrivatePort":5000,"PublicPort":5000,"Type":"tcp"}],"Status":"Up
|
108
|
+
44 seconds"}
|
109
|
+
|
110
|
+
]'
|
106
111
|
http_version:
|
107
|
-
recorded_at:
|
112
|
+
recorded_at: Thu, 12 Feb 2015 00:54:06 GMT
|
108
113
|
- request:
|
109
114
|
method: get
|
110
|
-
uri:
|
115
|
+
uri: <DOCKER_HOST>/v1.16/containers/json?all=true
|
111
116
|
body:
|
112
117
|
encoding: US-ASCII
|
113
118
|
string: ''
|
114
119
|
headers:
|
115
120
|
User-Agent:
|
116
|
-
- Swipely/Docker-API 1.
|
121
|
+
- Swipely/Docker-API 1.18.0
|
117
122
|
Content-Type:
|
118
123
|
- text/plain
|
119
124
|
response:
|
@@ -124,26 +129,30 @@ http_interactions:
|
|
124
129
|
Content-Type:
|
125
130
|
- application/json
|
126
131
|
Date:
|
127
|
-
-
|
132
|
+
- Thu, 12 Feb 2015 00:54:06 GMT
|
128
133
|
Content-Length:
|
129
|
-
- '
|
134
|
+
- '548'
|
130
135
|
body:
|
131
|
-
encoding:
|
132
|
-
string:
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
+
encoding: US-ASCII
|
137
|
+
string: ! '[{"Command":"/bin/bash -c ''trap echo SIGTERM; while [ 1 ]; do echo
|
138
|
+
hello; done''","Created":1423702446,"Id":"8a5545b47ac45c07736c2a843ed0bad1815e45afa19111f70926ed5f8aa1b972","Image":"debian:wheezy","Names":["/distracted_jones"],"Ports":[],"Status":"Up
|
139
|
+
Less than a second"}
|
140
|
+
|
141
|
+
,{"Command":"docker-registry","Created":1423702401,"Id":"7495fa1e6c231934f42eb34525f24a052af2a7a43ae9c85051636428a62a40ba","Image":"registry:latest","Names":["/registry"],"Ports":[{"IP":"0.0.0.0","PrivatePort":5000,"PublicPort":5000,"Type":"tcp"}],"Status":"Up
|
142
|
+
44 seconds"}
|
143
|
+
|
144
|
+
]'
|
136
145
|
http_version:
|
137
|
-
recorded_at:
|
146
|
+
recorded_at: Thu, 12 Feb 2015 00:54:06 GMT
|
138
147
|
- request:
|
139
148
|
method: post
|
140
|
-
uri:
|
149
|
+
uri: <DOCKER_HOST>/v1.16/containers/8a5545b47ac45c07736c2a843ed0bad1815e45afa19111f70926ed5f8aa1b972/kill?signal=SIGKILL
|
141
150
|
body:
|
142
151
|
encoding: US-ASCII
|
143
152
|
string: ''
|
144
153
|
headers:
|
145
154
|
User-Agent:
|
146
|
-
- Swipely/Docker-API 1.
|
155
|
+
- Swipely/Docker-API 1.18.0
|
147
156
|
Content-Type:
|
148
157
|
- text/plain
|
149
158
|
response:
|
@@ -152,21 +161,21 @@ http_interactions:
|
|
152
161
|
message:
|
153
162
|
headers:
|
154
163
|
Date:
|
155
|
-
-
|
164
|
+
- Thu, 12 Feb 2015 00:54:06 GMT
|
156
165
|
body:
|
157
|
-
encoding:
|
166
|
+
encoding: US-ASCII
|
158
167
|
string: ''
|
159
168
|
http_version:
|
160
|
-
recorded_at:
|
169
|
+
recorded_at: Thu, 12 Feb 2015 00:54:06 GMT
|
161
170
|
- request:
|
162
171
|
method: get
|
163
|
-
uri:
|
172
|
+
uri: <DOCKER_HOST>/v1.16/containers/json
|
164
173
|
body:
|
165
174
|
encoding: US-ASCII
|
166
175
|
string: ''
|
167
176
|
headers:
|
168
177
|
User-Agent:
|
169
|
-
- Swipely/Docker-API 1.
|
178
|
+
- Swipely/Docker-API 1.18.0
|
170
179
|
Content-Type:
|
171
180
|
- text/plain
|
172
181
|
response:
|
@@ -177,25 +186,26 @@ http_interactions:
|
|
177
186
|
Content-Type:
|
178
187
|
- application/json
|
179
188
|
Date:
|
180
|
-
-
|
189
|
+
- Thu, 12 Feb 2015 00:54:06 GMT
|
181
190
|
Content-Length:
|
182
191
|
- '275'
|
183
192
|
body:
|
184
|
-
encoding:
|
185
|
-
string:
|
186
|
-
|
187
|
-
|
193
|
+
encoding: US-ASCII
|
194
|
+
string: ! '[{"Command":"docker-registry","Created":1423702401,"Id":"7495fa1e6c231934f42eb34525f24a052af2a7a43ae9c85051636428a62a40ba","Image":"registry:latest","Names":["/registry"],"Ports":[{"IP":"0.0.0.0","PrivatePort":5000,"PublicPort":5000,"Type":"tcp"}],"Status":"Up
|
195
|
+
44 seconds"}
|
196
|
+
|
197
|
+
]'
|
188
198
|
http_version:
|
189
|
-
recorded_at:
|
199
|
+
recorded_at: Thu, 12 Feb 2015 00:54:06 GMT
|
190
200
|
- request:
|
191
201
|
method: get
|
192
|
-
uri:
|
202
|
+
uri: <DOCKER_HOST>/v1.16/containers/json?all=true
|
193
203
|
body:
|
194
204
|
encoding: US-ASCII
|
195
205
|
string: ''
|
196
206
|
headers:
|
197
207
|
User-Agent:
|
198
|
-
- Swipely/Docker-API 1.
|
208
|
+
- Swipely/Docker-API 1.18.0
|
199
209
|
Content-Type:
|
200
210
|
- text/plain
|
201
211
|
response:
|
@@ -206,26 +216,30 @@ http_interactions:
|
|
206
216
|
Content-Type:
|
207
217
|
- application/json
|
208
218
|
Date:
|
209
|
-
-
|
219
|
+
- Thu, 12 Feb 2015 00:54:06 GMT
|
210
220
|
Content-Length:
|
211
|
-
- '
|
221
|
+
- '561'
|
212
222
|
body:
|
213
|
-
encoding:
|
214
|
-
string:
|
215
|
-
|
216
|
-
|
217
|
-
|
223
|
+
encoding: US-ASCII
|
224
|
+
string: ! '[{"Command":"/bin/bash -c ''trap echo SIGTERM; while [ 1 ]; do echo
|
225
|
+
hello; done''","Created":1423702446,"Id":"8a5545b47ac45c07736c2a843ed0bad1815e45afa19111f70926ed5f8aa1b972","Image":"debian:wheezy","Names":["/distracted_jones"],"Ports":[],"Status":"Exited
|
226
|
+
(-1) Less than a second ago"}
|
227
|
+
|
228
|
+
,{"Command":"docker-registry","Created":1423702401,"Id":"7495fa1e6c231934f42eb34525f24a052af2a7a43ae9c85051636428a62a40ba","Image":"registry:latest","Names":["/registry"],"Ports":[{"IP":"0.0.0.0","PrivatePort":5000,"PublicPort":5000,"Type":"tcp"}],"Status":"Up
|
229
|
+
44 seconds"}
|
230
|
+
|
231
|
+
]'
|
218
232
|
http_version:
|
219
|
-
recorded_at:
|
233
|
+
recorded_at: Thu, 12 Feb 2015 00:54:06 GMT
|
220
234
|
- request:
|
221
235
|
method: delete
|
222
|
-
uri:
|
236
|
+
uri: <DOCKER_HOST>/v1.16/containers/8a5545b47ac45c07736c2a843ed0bad1815e45afa19111f70926ed5f8aa1b972
|
223
237
|
body:
|
224
238
|
encoding: US-ASCII
|
225
239
|
string: ''
|
226
240
|
headers:
|
227
241
|
User-Agent:
|
228
|
-
- Swipely/Docker-API 1.
|
242
|
+
- Swipely/Docker-API 1.18.0
|
229
243
|
Content-Type:
|
230
244
|
- text/plain
|
231
245
|
response:
|
@@ -234,10 +248,10 @@ http_interactions:
|
|
234
248
|
message:
|
235
249
|
headers:
|
236
250
|
Date:
|
237
|
-
-
|
251
|
+
- Thu, 12 Feb 2015 00:54:07 GMT
|
238
252
|
body:
|
239
|
-
encoding:
|
253
|
+
encoding: US-ASCII
|
240
254
|
string: ''
|
241
255
|
http_version:
|
242
|
-
recorded_at:
|
243
|
-
recorded_with: VCR 2.9.
|
256
|
+
recorded_at: Thu, 12 Feb 2015 00:54:07 GMT
|
257
|
+
recorded_with: VCR 2.9.2
|