docker-api 1.23.0 → 1.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/.cane +1 -1
  3. data/.rspec +1 -0
  4. data/.travis.yml +7 -6
  5. data/Dockerfile +2 -0
  6. data/README.md +5 -5
  7. data/Rakefile +26 -31
  8. data/TESTING.md +7 -19
  9. data/docker-api.gemspec +0 -1
  10. data/lib/docker/image.rb +6 -2
  11. data/lib/docker/version.rb +1 -1
  12. data/spec/docker/container_spec.rb +72 -92
  13. data/spec/docker/event_spec.rb +33 -23
  14. data/spec/docker/exec_spec.rb +9 -24
  15. data/spec/docker/image_spec.rb +75 -81
  16. data/spec/docker_spec.rb +21 -32
  17. metadata +4 -200
  18. data/spec/support/vcr.rb +0 -14
  19. data/spec/vcr/Docker/_authenticate_/with_valid_credentials/logs_in_and_sets_the_creds.yml +0 -32
  20. data/spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml +0 -39
  21. data/spec/vcr/Docker/_validate_version/when_nothing_is_raised/validate_version_/.yml +0 -39
  22. data/spec/vcr/Docker/_version/returns_the_version_as_a_Hash.yml +0 -34
  23. data/spec/vcr/Docker_Container/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml +0 -125
  24. data/spec/vcr/Docker_Container/_attach/with_normal_sized_chunks/yields_each_chunk.yml +0 -125
  25. data/spec/vcr/Docker_Container/_attach/with_very_small_chunks/yields_each_chunk.yml +0 -125
  26. data/spec/vcr/Docker_Container/_changes/returns_the_changes_as_an_array.yml +0 -165
  27. data/spec/vcr/Docker_Container/_commit/creates_a_new_Image_from_the_Container_s_changes.yml +0 -165
  28. data/spec/vcr/Docker_Container/_copy/when_the_file_does_not_exist/raises_an_error.yml +0 -136
  29. data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_directory/yields_each_chunk_of_the_tarred_directory.yml +0 -241
  30. data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_file/yields_each_chunk_of_the_tarred_file.yml +0 -198
  31. data/spec/vcr/Docker_Container/_create/when_creating_a_container_named_bob/should_have_name_set_to_bob.yml +0 -84
  32. data/spec/vcr/Docker_Container/_create/when_the_Container_does_not_yet_exist/when_the_HTTP_request_returns_a_200/sets_the_id.yml +0 -55
  33. data/spec/vcr/Docker_Container/_delete/deletes_the_container.yml +0 -85
  34. data/spec/vcr/Docker_Container/_exec/when_detach_is_true/returns_the_Docker_Exec_object.yml +0 -180
  35. data/spec/vcr/Docker_Container/_exec/when_passed_a_block/streams_the_stdout/stderr_messages.yml +0 -183
  36. data/spec/vcr/Docker_Container/_exec/when_passed_only_a_command/returns_the_stdout/stderr_messages_and_exit_code.yml +0 -183
  37. data/spec/vcr/Docker_Container/_exec/when_stdin_object_is_passed/returns_the_stdout/stderr_messages.yml +0 -101
  38. data/spec/vcr/Docker_Container/_exec/when_tty_is_true/returns_the_raw_stdout/stderr_output.yml +0 -182
  39. data/spec/vcr/Docker_Container/_export/yields_each_chunk.yml +0 -333
  40. data/spec/vcr/Docker_Container/_get/when_the_HTTP_response_is_a_200/materializes_the_Container_into_a_Docker_Container.yml +0 -84
  41. data/spec/vcr/Docker_Container/_json/returns_the_description_as_a_Hash.yml +0 -84
  42. data/spec/vcr/Docker_Container/_kill/kills_the_container.yml +0 -164
  43. data/spec/vcr/Docker_Container/_kill/with_a_kill_signal/kills_the_container.yml +0 -257
  44. data/spec/vcr/Docker_Container/_logs/when_not_selecting_any_stream/raises_a_client_error.yml +0 -171
  45. data/spec/vcr/Docker_Container/_logs/when_selecting_stdout/returns_blank_logs.yml +0 -82
  46. data/spec/vcr/Docker_Container/_pause/pauses_the_container.yml +0 -176
  47. data/spec/vcr/Docker_Container/_rename/renames_the_container.yml +0 -149
  48. data/spec/vcr/Docker_Container/_restart/restarts_the_container.yml +0 -243
  49. data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_does_not_return_status_code_of_0/raises_an_error.yml +0 -107
  50. 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 +0 -392
  51. data/spec/vcr/Docker_Container/_start/starts_the_container.yml +0 -140
  52. data/spec/vcr/Docker_Container/_stop/stops_the_container.yml +0 -164
  53. data/spec/vcr/Docker_Container/_streaming_logs/when_not_selecting_any_stream/raises_a_client_error.yml +0 -217
  54. data/spec/vcr/Docker_Container/_streaming_logs/when_passing_a_block/returns_hello_.yml +0 -131
  55. data/spec/vcr/Docker_Container/_streaming_logs/when_selecting_stdout/returns_blank_logs.yml +0 -131
  56. data/spec/vcr/Docker_Container/_streaming_logs/when_using_a_tty/returns_hello_.yml +0 -131
  57. data/spec/vcr/Docker_Container/_top/returns_the_top_commands_as_an_Array.yml +0 -194
  58. data/spec/vcr/Docker_Container/_unpause/unpauses_the_container.yml +0 -176
  59. data/spec/vcr/Docker_Container/_wait/waits_for_the_command_to_finish.yml +0 -107
  60. data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/sets_the_read_timeout_to_that_amount_of_time.yml +0 -107
  61. data/spec/vcr/Docker_Exec/_create/when_the_HTTP_request_returns_a_201/sets_the_id.yml +0 -130
  62. data/spec/vcr/Docker_Exec/_json/returns_the_description_as_a_Hash.yml +0 -207
  63. data/spec/vcr/Docker_Exec/_start_/when_detach_is_set_to_false/block_is_passed/attaches_to_the_stream.yml +0 -182
  64. data/spec/vcr/Docker_Exec/_start_/when_detach_is_set_to_false/returns_the_stdout_and_stderr_messages.yml +0 -182
  65. data/spec/vcr/Docker_Exec/_start_/when_detach_is_set_to_true/returns_empty_stdout/stderr_messages_with_exitcode.yml +0 -180
  66. data/spec/vcr/Docker_Exec/_start_/when_the_HTTP_request_returns_a_201/starts_the_exec_instance.yml +0 -180
  67. data/spec/vcr/Docker_Exec/_start_/when_the_command_has_already_run/raises_an_error.yml +0 -180
  68. data/spec/vcr/Docker_Exec/_start_/when_wait_set_long_time_value/returns_empty_stdout_and_stderr_messages_with_exitcode.yml +0 -189
  69. data/spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml +0 -111
  70. data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/with_a_block_capturing_build_output/calls_the_block_and_passes_build_output.yml +0 -75
  71. 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 +0 -219
  72. data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/without_query_parameters/builds_an_image.yml +0 -75
  73. data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml +0 -79
  74. 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 +0 -194
  75. data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_a_block_capturing_build_output/uses_a_cached_version_the_second_time/calls_the_block_and_passes_build_output.yml +0 -96
  76. data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_credentials_passed/sends_X-Registry-Config_header.yml +0 -194
  77. data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_no_query_parameters/builds_the_image.yml +0 -562
  78. 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 +0 -601
  79. 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 +0 -65
  80. data/spec/vcr/Docker_Image/_create/with_a_block_capturing_create_output/calls_the_block_and_passes_build_output.yml +0 -38
  81. data/spec/vcr/Docker_Image/_exist_/when_the_image_does_exist/returns_true.yml +0 -33
  82. data/spec/vcr/Docker_Image/_get/when_the_image_does_exist/returns_the_new_image.yml +0 -33
  83. data/spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml +0 -66
  84. data/spec/vcr/Docker_Image/_import/when_the_argument_is_a_URI/when_the_URI_is_invalid/raises_an_error.yml +0 -265
  85. data/spec/vcr/Docker_Image/_import/when_the_argument_is_a_URI/when_the_URI_is_valid/returns_an_Image.yml +0 -303
  86. data/spec/vcr/Docker_Image/_import/when_the_file_does_exist/creates_the_Image.yml +0 -59
  87. data/spec/vcr/Docker_Image/_insert_local/when_a_direcory_is_passed/inserts_the_directory.yml +0 -1469
  88. data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/creates_a_new_image.yml +0 -244
  89. data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/leave_no_intermediate_containers.yml +0 -224
  90. data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_exist/creates_a_new_Image_that_has_that_file.yml +0 -289
  91. data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_not_exist/raises_an_error.yml +0 -32
  92. data/spec/vcr/Docker_Image/_insert_local/when_there_are_multiple_files_passed/creates_a_new_Image_that_has_each_file.yml +0 -366
  93. data/spec/vcr/Docker_Image/_json/returns_additional_information_about_image_image.yml +0 -62
  94. data/spec/vcr/Docker_Image/_push/pushes_the_Image.yml +0 -246
  95. data/spec/vcr/Docker_Image/_push/streams_output_from_push.yml +0 -246
  96. 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 +0 -382
  97. data/spec/vcr/Docker_Image/_push/when_there_are_no_credentials/still_pushes.yml +0 -264
  98. data/spec/vcr/Docker_Image/_refresh_/updates_the_info_hash.yml +0 -141
  99. data/spec/vcr/Docker_Image/_refresh_/with_an_explicit_connection/updates_using_the_provided_connection.yml +0 -62
  100. data/spec/vcr/Docker_Image/_remove/when_no_name_is_given/removes_the_Image.yml +0 -652
  101. data/spec/vcr/Docker_Image/_run/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml +0 -162
  102. data/spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml +0 -162
  103. 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 +0 -162
  104. 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 +0 -63
  105. data/spec/vcr/Docker_Image/_save/calls_the_class_method.yml +0 -67
  106. data/spec/vcr/Docker_Image/_save/when_a_filename_is_specified/exports_tarball_of_image_to_specified_file.yml +0 -176
  107. data/spec/vcr/Docker_Image/_save/when_no_filename_is_specified/returns_raw_binary_data_as_string.yml +0 -176
  108. data/spec/vcr/Docker_Image/_search/materializes_each_Image_into_a_Docker_Image.yml +0 -79
  109. data/spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml +0 -88
@@ -1,164 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: <DOCKER_HOST>/v1.16/containers/create
6
- body:
7
- encoding: UTF-8
8
- string: ! '{"Cmd":["/bin/bash","-c","while [ 1 ]; do echo hello; done"],"Image":"debian:wheezy"}'
9
- headers:
10
- User-Agent:
11
- - Swipely/Docker-API 1.18.0
12
- Content-Type:
13
- - application/json
14
- response:
15
- status:
16
- code: 201
17
- message:
18
- headers:
19
- Content-Type:
20
- - application/json
21
- Date:
22
- - Thu, 12 Feb 2015 00:54:05 GMT
23
- Content-Length:
24
- - '90'
25
- body:
26
- encoding: US-ASCII
27
- string: ! '{"Id":"41e184c570d0064e399a6da040a32c83ac80d8e7aa69d4d854386ed44c7f1af2","Warnings":null}
28
-
29
- '
30
- http_version:
31
- recorded_at: Thu, 12 Feb 2015 00:54:05 GMT
32
- - request:
33
- method: post
34
- uri: <DOCKER_HOST>/v1.16/containers/41e184c570d0064e399a6da040a32c83ac80d8e7aa69d4d854386ed44c7f1af2/start
35
- body:
36
- encoding: UTF-8
37
- string: ! '{}'
38
- headers:
39
- User-Agent:
40
- - Swipely/Docker-API 1.18.0
41
- Content-Type:
42
- - application/json
43
- response:
44
- status:
45
- code: 204
46
- message:
47
- headers:
48
- Date:
49
- - Thu, 12 Feb 2015 00:54:05 GMT
50
- body:
51
- encoding: US-ASCII
52
- string: ''
53
- http_version:
54
- recorded_at: Thu, 12 Feb 2015 00:54:05 GMT
55
- - request:
56
- method: post
57
- uri: <DOCKER_HOST>/v1.16/containers/41e184c570d0064e399a6da040a32c83ac80d8e7aa69d4d854386ed44c7f1af2/kill
58
- body:
59
- encoding: US-ASCII
60
- string: ''
61
- headers:
62
- User-Agent:
63
- - Swipely/Docker-API 1.18.0
64
- Content-Type:
65
- - text/plain
66
- response:
67
- status:
68
- code: 204
69
- message:
70
- headers:
71
- Date:
72
- - Thu, 12 Feb 2015 00:54:05 GMT
73
- body:
74
- encoding: US-ASCII
75
- string: ''
76
- http_version:
77
- recorded_at: Thu, 12 Feb 2015 00:54:05 GMT
78
- - request:
79
- method: get
80
- uri: <DOCKER_HOST>/v1.16/containers/json
81
- body:
82
- encoding: US-ASCII
83
- string: ''
84
- headers:
85
- User-Agent:
86
- - Swipely/Docker-API 1.18.0
87
- Content-Type:
88
- - text/plain
89
- response:
90
- status:
91
- code: 200
92
- message:
93
- headers:
94
- Content-Type:
95
- - application/json
96
- Date:
97
- - Thu, 12 Feb 2015 00:54:05 GMT
98
- Content-Length:
99
- - '275'
100
- body:
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
- ]'
106
- http_version:
107
- recorded_at: Thu, 12 Feb 2015 00:54:05 GMT
108
- - request:
109
- method: get
110
- uri: <DOCKER_HOST>/v1.16/containers/json?all=true
111
- body:
112
- encoding: US-ASCII
113
- string: ''
114
- headers:
115
- User-Agent:
116
- - Swipely/Docker-API 1.18.0
117
- Content-Type:
118
- - text/plain
119
- response:
120
- status:
121
- code: 200
122
- message:
123
- headers:
124
- Content-Type:
125
- - application/json
126
- Date:
127
- - Thu, 12 Feb 2015 00:54:05 GMT
128
- Content-Length:
129
- - '541'
130
- body:
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
- ]'
139
- http_version:
140
- recorded_at: Thu, 12 Feb 2015 00:54:05 GMT
141
- - request:
142
- method: delete
143
- uri: <DOCKER_HOST>/v1.16/containers/41e184c570d0064e399a6da040a32c83ac80d8e7aa69d4d854386ed44c7f1af2
144
- body:
145
- encoding: US-ASCII
146
- string: ''
147
- headers:
148
- User-Agent:
149
- - Swipely/Docker-API 1.18.0
150
- Content-Type:
151
- - text/plain
152
- response:
153
- status:
154
- code: 204
155
- message:
156
- headers:
157
- Date:
158
- - Thu, 12 Feb 2015 00:54:06 GMT
159
- body:
160
- encoding: US-ASCII
161
- string: ''
162
- http_version:
163
- recorded_at: Thu, 12 Feb 2015 00:54:06 GMT
164
- recorded_with: VCR 2.9.2
@@ -1,257 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: <DOCKER_HOST>/v1.16/containers/create
6
- body:
7
- encoding: UTF-8
8
- string: ! '{"Cmd":["/bin/bash","-c","trap echo SIGTERM; while [ 1 ]; do echo
9
- hello; done"],"Image":"debian:wheezy"}'
10
- headers:
11
- User-Agent:
12
- - Swipely/Docker-API 1.18.0
13
- Content-Type:
14
- - application/json
15
- response:
16
- status:
17
- code: 201
18
- message:
19
- headers:
20
- Content-Type:
21
- - application/json
22
- Date:
23
- - Thu, 12 Feb 2015 00:54:06 GMT
24
- Content-Length:
25
- - '90'
26
- body:
27
- encoding: US-ASCII
28
- string: ! '{"Id":"8a5545b47ac45c07736c2a843ed0bad1815e45afa19111f70926ed5f8aa1b972","Warnings":null}
29
-
30
- '
31
- http_version:
32
- recorded_at: Thu, 12 Feb 2015 00:54:06 GMT
33
- - request:
34
- method: post
35
- uri: <DOCKER_HOST>/v1.16/containers/8a5545b47ac45c07736c2a843ed0bad1815e45afa19111f70926ed5f8aa1b972/start
36
- body:
37
- encoding: UTF-8
38
- string: ! '{}'
39
- headers:
40
- User-Agent:
41
- - Swipely/Docker-API 1.18.0
42
- Content-Type:
43
- - application/json
44
- response:
45
- status:
46
- code: 204
47
- message:
48
- headers:
49
- Date:
50
- - Thu, 12 Feb 2015 00:54:06 GMT
51
- body:
52
- encoding: US-ASCII
53
- string: ''
54
- http_version:
55
- recorded_at: Thu, 12 Feb 2015 00:54:06 GMT
56
- - request:
57
- method: post
58
- uri: <DOCKER_HOST>/v1.16/containers/8a5545b47ac45c07736c2a843ed0bad1815e45afa19111f70926ed5f8aa1b972/kill?signal=SIGTERM
59
- body:
60
- encoding: US-ASCII
61
- string: ''
62
- headers:
63
- User-Agent:
64
- - Swipely/Docker-API 1.18.0
65
- Content-Type:
66
- - text/plain
67
- response:
68
- status:
69
- code: 204
70
- message:
71
- headers:
72
- Date:
73
- - Thu, 12 Feb 2015 00:54:06 GMT
74
- body:
75
- encoding: US-ASCII
76
- string: ''
77
- http_version:
78
- recorded_at: Thu, 12 Feb 2015 00:54:06 GMT
79
- - request:
80
- method: get
81
- uri: <DOCKER_HOST>/v1.16/containers/json
82
- body:
83
- encoding: US-ASCII
84
- string: ''
85
- headers:
86
- User-Agent:
87
- - Swipely/Docker-API 1.18.0
88
- Content-Type:
89
- - text/plain
90
- response:
91
- status:
92
- code: 200
93
- message:
94
- headers:
95
- Content-Type:
96
- - application/json
97
- Date:
98
- - Thu, 12 Feb 2015 00:54:06 GMT
99
- Content-Length:
100
- - '548'
101
- body:
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
- ]'
111
- http_version:
112
- recorded_at: Thu, 12 Feb 2015 00:54:06 GMT
113
- - request:
114
- method: get
115
- uri: <DOCKER_HOST>/v1.16/containers/json?all=true
116
- body:
117
- encoding: US-ASCII
118
- string: ''
119
- headers:
120
- User-Agent:
121
- - Swipely/Docker-API 1.18.0
122
- Content-Type:
123
- - text/plain
124
- response:
125
- status:
126
- code: 200
127
- message:
128
- headers:
129
- Content-Type:
130
- - application/json
131
- Date:
132
- - Thu, 12 Feb 2015 00:54:06 GMT
133
- Content-Length:
134
- - '548'
135
- body:
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
- ]'
145
- http_version:
146
- recorded_at: Thu, 12 Feb 2015 00:54:06 GMT
147
- - request:
148
- method: post
149
- uri: <DOCKER_HOST>/v1.16/containers/8a5545b47ac45c07736c2a843ed0bad1815e45afa19111f70926ed5f8aa1b972/kill?signal=SIGKILL
150
- body:
151
- encoding: US-ASCII
152
- string: ''
153
- headers:
154
- User-Agent:
155
- - Swipely/Docker-API 1.18.0
156
- Content-Type:
157
- - text/plain
158
- response:
159
- status:
160
- code: 204
161
- message:
162
- headers:
163
- Date:
164
- - Thu, 12 Feb 2015 00:54:06 GMT
165
- body:
166
- encoding: US-ASCII
167
- string: ''
168
- http_version:
169
- recorded_at: Thu, 12 Feb 2015 00:54:06 GMT
170
- - request:
171
- method: get
172
- uri: <DOCKER_HOST>/v1.16/containers/json
173
- body:
174
- encoding: US-ASCII
175
- string: ''
176
- headers:
177
- User-Agent:
178
- - Swipely/Docker-API 1.18.0
179
- Content-Type:
180
- - text/plain
181
- response:
182
- status:
183
- code: 200
184
- message:
185
- headers:
186
- Content-Type:
187
- - application/json
188
- Date:
189
- - Thu, 12 Feb 2015 00:54:06 GMT
190
- Content-Length:
191
- - '275'
192
- body:
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
- ]'
198
- http_version:
199
- recorded_at: Thu, 12 Feb 2015 00:54:06 GMT
200
- - request:
201
- method: get
202
- uri: <DOCKER_HOST>/v1.16/containers/json?all=true
203
- body:
204
- encoding: US-ASCII
205
- string: ''
206
- headers:
207
- User-Agent:
208
- - Swipely/Docker-API 1.18.0
209
- Content-Type:
210
- - text/plain
211
- response:
212
- status:
213
- code: 200
214
- message:
215
- headers:
216
- Content-Type:
217
- - application/json
218
- Date:
219
- - Thu, 12 Feb 2015 00:54:06 GMT
220
- Content-Length:
221
- - '561'
222
- body:
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
- ]'
232
- http_version:
233
- recorded_at: Thu, 12 Feb 2015 00:54:06 GMT
234
- - request:
235
- method: delete
236
- uri: <DOCKER_HOST>/v1.16/containers/8a5545b47ac45c07736c2a843ed0bad1815e45afa19111f70926ed5f8aa1b972
237
- body:
238
- encoding: US-ASCII
239
- string: ''
240
- headers:
241
- User-Agent:
242
- - Swipely/Docker-API 1.18.0
243
- Content-Type:
244
- - text/plain
245
- response:
246
- status:
247
- code: 204
248
- message:
249
- headers:
250
- Date:
251
- - Thu, 12 Feb 2015 00:54:07 GMT
252
- body:
253
- encoding: US-ASCII
254
- string: ''
255
- http_version:
256
- recorded_at: Thu, 12 Feb 2015 00:54:07 GMT
257
- recorded_with: VCR 2.9.2
@@ -1,171 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: <DOCKER_HOST>/v1.16/containers/create
6
- body:
7
- encoding: UTF-8
8
- string: ! '{"Cmd":"echo hello","Image":"debian:wheezy"}'
9
- headers:
10
- User-Agent:
11
- - Swipely/Docker-API 1.18.0
12
- Content-Type:
13
- - application/json
14
- response:
15
- status:
16
- code: 201
17
- message:
18
- headers:
19
- Content-Type:
20
- - application/json
21
- Date:
22
- - Thu, 12 Feb 2015 00:53:27 GMT
23
- Content-Length:
24
- - '90'
25
- body:
26
- encoding: US-ASCII
27
- string: ! '{"Id":"a7e2263fd51fbf99dc5dfbc1e10ab8a8f4bdb86c4b73cc04a06b59fa2b3b8d35","Warnings":null}
28
-
29
- '
30
- http_version:
31
- recorded_at: Thu, 12 Feb 2015 00:53:27 GMT
32
- - request:
33
- method: get
34
- uri: <DOCKER_HOST>/v1.16/containers/a7e2263fd51fbf99dc5dfbc1e10ab8a8f4bdb86c4b73cc04a06b59fa2b3b8d35/logs
35
- body:
36
- encoding: US-ASCII
37
- string: ''
38
- headers:
39
- User-Agent:
40
- - Swipely/Docker-API 1.18.0
41
- Content-Type:
42
- - text/plain
43
- response:
44
- status:
45
- code: 400
46
- message:
47
- headers:
48
- Content-Type:
49
- - text/plain; charset=utf-8
50
- Date:
51
- - Thu, 12 Feb 2015 00:53:27 GMT
52
- Content-Length:
53
- - '52'
54
- body:
55
- encoding: US-ASCII
56
- string: ! 'Bad parameters: you must choose at least one stream
57
-
58
- '
59
- http_version:
60
- recorded_at: Thu, 12 Feb 2015 00:53:27 GMT
61
- - request:
62
- method: get
63
- uri: <DOCKER_HOST>/v1.16/containers/a7e2263fd51fbf99dc5dfbc1e10ab8a8f4bdb86c4b73cc04a06b59fa2b3b8d35/logs
64
- body:
65
- encoding: US-ASCII
66
- string: ''
67
- headers:
68
- User-Agent:
69
- - Swipely/Docker-API 1.18.0
70
- Content-Type:
71
- - text/plain
72
- response:
73
- status:
74
- code: 400
75
- message:
76
- headers:
77
- Content-Type:
78
- - text/plain; charset=utf-8
79
- Date:
80
- - Thu, 12 Feb 2015 00:53:27 GMT
81
- Content-Length:
82
- - '52'
83
- body:
84
- encoding: US-ASCII
85
- string: ! 'Bad parameters: you must choose at least one stream
86
-
87
- '
88
- http_version:
89
- recorded_at: Thu, 12 Feb 2015 00:53:27 GMT
90
- - request:
91
- method: get
92
- uri: <DOCKER_HOST>/v1.16/containers/a7e2263fd51fbf99dc5dfbc1e10ab8a8f4bdb86c4b73cc04a06b59fa2b3b8d35/logs
93
- body:
94
- encoding: US-ASCII
95
- string: ''
96
- headers:
97
- User-Agent:
98
- - Swipely/Docker-API 1.18.0
99
- Content-Type:
100
- - text/plain
101
- response:
102
- status:
103
- code: 400
104
- message:
105
- headers:
106
- Content-Type:
107
- - text/plain; charset=utf-8
108
- Date:
109
- - Thu, 12 Feb 2015 00:53:27 GMT
110
- Content-Length:
111
- - '52'
112
- body:
113
- encoding: US-ASCII
114
- string: ! 'Bad parameters: you must choose at least one stream
115
-
116
- '
117
- http_version:
118
- recorded_at: Thu, 12 Feb 2015 00:53:27 GMT
119
- - request:
120
- method: get
121
- uri: <DOCKER_HOST>/v1.16/containers/a7e2263fd51fbf99dc5dfbc1e10ab8a8f4bdb86c4b73cc04a06b59fa2b3b8d35/logs
122
- body:
123
- encoding: US-ASCII
124
- string: ''
125
- headers:
126
- User-Agent:
127
- - Swipely/Docker-API 1.18.0
128
- Content-Type:
129
- - text/plain
130
- response:
131
- status:
132
- code: 400
133
- message:
134
- headers:
135
- Content-Type:
136
- - text/plain; charset=utf-8
137
- Date:
138
- - Thu, 12 Feb 2015 00:53:27 GMT
139
- Content-Length:
140
- - '52'
141
- body:
142
- encoding: US-ASCII
143
- string: ! 'Bad parameters: you must choose at least one stream
144
-
145
- '
146
- http_version:
147
- recorded_at: Thu, 12 Feb 2015 00:53:27 GMT
148
- - request:
149
- method: delete
150
- uri: <DOCKER_HOST>/v1.16/containers/a7e2263fd51fbf99dc5dfbc1e10ab8a8f4bdb86c4b73cc04a06b59fa2b3b8d35
151
- body:
152
- encoding: US-ASCII
153
- string: ''
154
- headers:
155
- User-Agent:
156
- - Swipely/Docker-API 1.18.0
157
- Content-Type:
158
- - text/plain
159
- response:
160
- status:
161
- code: 204
162
- message:
163
- headers:
164
- Date:
165
- - Thu, 12 Feb 2015 00:53:27 GMT
166
- body:
167
- encoding: US-ASCII
168
- string: ''
169
- http_version:
170
- recorded_at: Thu, 12 Feb 2015 00:53:27 GMT
171
- recorded_with: VCR 2.9.2