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.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +26 -1
  3. data/Rakefile +37 -0
  4. data/TESTING.md +61 -0
  5. data/lib/docker.rb +8 -1
  6. data/lib/docker/container.rb +44 -80
  7. data/lib/docker/exec.rb +98 -0
  8. data/lib/docker/image.rb +4 -3
  9. data/lib/docker/util.rb +79 -0
  10. data/lib/docker/version.rb +2 -2
  11. data/spec/docker/container_spec.rb +192 -56
  12. data/spec/docker/event_spec.rb +4 -4
  13. data/spec/docker/exec_spec.rb +197 -0
  14. data/spec/docker/image_spec.rb +131 -102
  15. data/spec/docker_spec.rb +37 -27
  16. data/spec/fixtures/build_from_dir/Dockerfile +2 -2
  17. data/spec/fixtures/export.tar +0 -0
  18. data/spec/fixtures/top/Dockerfile +2 -2
  19. data/spec/spec_helper.rb +10 -0
  20. data/spec/support/vcr.rb +5 -0
  21. data/spec/vcr/Docker/_authenticate_/with_valid_credentials/logs_in_and_sets_the_creds.yml +6 -8
  22. data/spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml +7 -9
  23. data/spec/vcr/Docker/_validate_version/when_nothing_is_raised/validate_version_/.yml +7 -9
  24. data/spec/vcr/Docker/_version/returns_the_version_as_a_Hash.yml +7 -9
  25. data/spec/vcr/Docker_Container/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml +46 -139
  26. data/spec/vcr/Docker_Container/_attach/with_normal_sized_chunks/yields_each_chunk.yml +62 -20
  27. data/spec/vcr/Docker_Container/_attach/with_very_small_chunks/yields_each_chunk.yml +62 -20
  28. data/spec/vcr/Docker_Container/_changes/returns_the_changes_as_an_array.yml +71 -28
  29. data/spec/vcr/Docker_Container/_commit/creates_a_new_Image_from_the_Container_s_changes.yml +69 -23
  30. data/spec/vcr/Docker_Container/_copy/when_the_file_does_not_exist/raises_an_error.yml +134 -0
  31. data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_directory/yields_each_chunk_of_the_tarred_directory.yml +73 -290
  32. data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_file/yields_each_chunk_of_the_tarred_file.yml +51 -211
  33. data/spec/vcr/Docker_Container/_create/when_creating_a_container_named_bob/should_have_name_set_to_bob.yml +36 -17
  34. 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
  35. data/spec/vcr/Docker_Container/_delete/deletes_the_container.yml +17 -23
  36. data/spec/vcr/Docker_Container/_exec/when_detach_is_true/returns_the_Docker_Exec_object.yml +151 -0
  37. data/spec/vcr/Docker_Container/_exec/when_passed_a_block/streams_the_stdout/stderr_messages.yml +153 -0
  38. data/spec/vcr/Docker_Container/_exec/when_passed_only_a_command/returns_the_stdout/stderr_messages.yml +153 -0
  39. data/spec/vcr/Docker_Container/_exec/when_stdin_object_is_passed/returns_the_stdout/stderr_messages.yml +100 -0
  40. data/spec/vcr/Docker_Container/_exec/when_tty_is_true/returns_the_raw_stdout/stderr_output.yml +152 -0
  41. data/spec/vcr/Docker_Container/_export/yields_each_chunk.yml +263 -28
  42. data/spec/vcr/Docker_Container/_get/when_the_HTTP_response_is_a_200/materializes_the_Container_into_a_Docker_Container.yml +36 -17
  43. data/spec/vcr/Docker_Container/_json/returns_the_description_as_a_Hash.yml +36 -17
  44. data/spec/vcr/Docker_Container/_kill/kills_the_container.yml +55 -53
  45. data/spec/vcr/Docker_Container/_kill/with_a_kill_signal/kills_the_container.yml +74 -96
  46. data/spec/vcr/Docker_Container/_logs/when_not_selecting_any_stream/raises_a_client_error.yml +84 -81
  47. data/spec/vcr/Docker_Container/_logs/when_selecting_stdout/returns_blank_logs.yml +34 -15
  48. data/spec/vcr/Docker_Container/_pause/pauses_the_container.yml +98 -45
  49. data/spec/vcr/Docker_Container/_restart/restarts_the_container.yml +88 -56
  50. data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_does_not_return_status_code_of_0/raises_an_error.yml +39 -22
  51. 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
  52. data/spec/vcr/Docker_Container/_start/starts_the_container.yml +45 -30
  53. data/spec/vcr/Docker_Container/_stop/stops_the_container.yml +54 -83
  54. data/spec/vcr/Docker_Container/_streaming_logs/when_not_selecting_any_stream/raises_a_client_error.yml +84 -81
  55. data/spec/vcr/Docker_Container/_streaming_logs/when_selecting_stdout/returns_blank_logs.yml +46 -30
  56. data/spec/vcr/Docker_Container/_top/returns_the_top_commands_as_an_Array.yml +103 -40
  57. data/spec/vcr/Docker_Container/_unpause/unpauses_the_container.yml +81 -57
  58. data/spec/vcr/Docker_Container/_wait/waits_for_the_command_to_finish.yml +39 -22
  59. data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/sets_the_read_timeout_to_that_amount_of_time.yml +39 -22
  60. data/spec/vcr/Docker_Exec/_create/when_the_HTTP_request_returns_a_201/sets_the_id.yml +128 -0
  61. data/spec/vcr/Docker_Exec/_resize/when_exec_instance_has_TTY_enabled/returns_a_200.yml +155 -0
  62. data/spec/vcr/Docker_Exec/_start_/when_detach_is_set_to_false/block_is_passed/attaches_to_the_stream.yml +152 -0
  63. data/spec/vcr/Docker_Exec/_start_/when_detach_is_set_to_false/returns_the_stdout_and_stderr_messages.yml +152 -0
  64. data/spec/vcr/Docker_Exec/_start_/when_detach_is_set_to_true/returns_empty_stdout_and_stderr_messages.yml +151 -0
  65. data/spec/vcr/Docker_Exec/_start_/when_the_HTTP_request_returns_a_201/starts_the_exec_instance.yml +151 -0
  66. data/spec/vcr/Docker_Exec/_start_/when_the_command_has_already_run/raises_an_error.yml +151 -0
  67. data/spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml +86 -200
  68. 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
  69. 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
  70. data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/without_query_parameters/builds_an_image.yml +10 -14
  71. data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml +12 -14
  72. 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
  73. data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_credentials_passed/sends_X-Registry-Config_header.yml +118 -14
  74. data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_no_query_parameters/builds_the_image.yml +109 -37
  75. 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
  76. 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
  77. data/spec/vcr/Docker_Image/_exist_/when_the_image_does_exist/returns_true.yml +12 -19
  78. data/spec/vcr/Docker_Image/_get/when_the_image_does_exist/returns_the_new_image.yml +7 -9
  79. data/spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml +17 -198
  80. data/spec/vcr/Docker_Image/_import/when_the_argument_is_a_URI/when_the_URI_is_invalid/raises_an_error.yml +26 -30
  81. data/spec/vcr/Docker_Image/_import/when_the_argument_is_a_URI/when_the_URI_is_valid/returns_an_Image.yml +246 -22
  82. data/spec/vcr/Docker_Image/_import/when_the_file_does_exist/creates_the_Image.yml +35 -10
  83. data/spec/vcr/Docker_Image/_insert_local/when_a_direcory_is_passed/inserts_the_directory.yml +1249 -74
  84. data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/creates_a_new_image.yml +84 -94
  85. data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/leave_no_intermediate_containers.yml +70 -92
  86. data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_exist/creates_a_new_Image_that_has_that_file.yml +125 -98
  87. data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_not_exist/raises_an_error.yml +13 -60
  88. data/spec/vcr/Docker_Image/_insert_local/when_there_are_multiple_files_passed/creates_a_new_Image_that_has_each_file.yml +190 -135
  89. data/spec/vcr/Docker_Image/_json/returns_additional_information_about_image_image.yml +15 -198
  90. data/spec/vcr/Docker_Image/_push/pushes_the_Image.yml +169 -264
  91. data/spec/vcr/Docker_Image/_push/when_there_are_no_credentials/still_pushes.yml +175 -4543
  92. data/spec/vcr/Docker_Image/_refresh_/updates_the_info_hash.yml +90 -206
  93. data/spec/vcr/Docker_Image/_remove/when_no_name_is_given/removes_the_Image.yml +300 -0
  94. 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
  95. data/spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml +77 -207
  96. 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
  97. 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
  98. data/spec/vcr/Docker_Image/_search/materializes_each_Image_into_a_Docker_Image.yml +151 -73
  99. data/spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml +42 -196
  100. metadata +67 -41
  101. data/spec/vcr/Docker_Container/_commit/if_run_is_passed_it_saves_the_command_in_the_image/saves_the_command.yml +0 -58
  102. data/spec/vcr/Docker_Container/_streaming_logs/when_not_selecting_any_stream/returns_the_error_message.yml +0 -163
  103. data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/and_a_command_runs_for_too_long/raises_a_ServerError.yml +0 -58
  104. data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_credentials_passed/sends_Docker_creds.yml +0 -41
  105. 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: unix:///var/run/docker.sock/v1.12/containers/create
5
+ uri: "<DOCKER_HOST>/v1.15/containers/create"
6
6
  body:
7
7
  encoding: UTF-8
8
- string: ! '{"Cmd":"echo hello","Image":"base"}'
8
+ string: '{"Cmd":"echo hello","Image":"debian:wheezy"}'
9
9
  headers:
10
10
  User-Agent:
11
- - Swipely/Docker-API 1.13.6
11
+ - Swipely/Docker-API 1.15.0
12
12
  Content-Type:
13
13
  - application/json
14
14
  response:
@@ -16,31 +16,27 @@ http_interactions:
16
16
  code: 201
17
17
  message:
18
18
  headers:
19
- !binary "Q29udGVudC1UeXBl":
20
- - !binary |-
21
- YXBwbGljYXRpb24vanNvbg==
22
- !binary "RGF0ZQ==":
23
- - !binary |-
24
- TW9uLCAyNyBPY3QgMjAxNCAxNDo0NjozMyBHTVQ=
25
- !binary "Q29udGVudC1MZW5ndGg=":
26
- - !binary |-
27
- OTA=
19
+ Content-Type:
20
+ - application/json
21
+ Date:
22
+ - Mon, 01 Dec 2014 18:07:38 GMT
23
+ Content-Length:
24
+ - '90'
28
25
  body:
29
- encoding: US-ASCII
30
- string: ! '{"Id":"18a56c0a1826c882b5debd3b1ab2cc2037d6cb59e1a3f4d4b32301f496e379b0","Warnings":null}
31
-
32
- '
26
+ encoding: UTF-8
27
+ string: |
28
+ {"Id":"f53412e58875d2fba1c358163fcfb492b6d170bbcb46e171966723e61ed41743","Warnings":null}
33
29
  http_version:
34
- recorded_at: Mon, 27 Oct 2014 14:46:33 GMT
30
+ recorded_at: Mon, 01 Dec 2014 18:07:38 GMT
35
31
  - request:
36
32
  method: get
37
- uri: unix:///var/run/docker.sock/v1.12/containers/18a56c0a1826c882b5debd3b1ab2cc2037d6cb59e1a3f4d4b32301f496e379b0/logs
33
+ uri: "<DOCKER_HOST>/v1.15/containers/f53412e58875d2fba1c358163fcfb492b6d170bbcb46e171966723e61ed41743/logs"
38
34
  body:
39
35
  encoding: US-ASCII
40
36
  string: ''
41
37
  headers:
42
38
  User-Agent:
43
- - Swipely/Docker-API 1.13.6
39
+ - Swipely/Docker-API 1.15.0
44
40
  Content-Type:
45
41
  - text/plain
46
42
  response:
@@ -48,31 +44,27 @@ http_interactions:
48
44
  code: 400
49
45
  message:
50
46
  headers:
51
- !binary "Q29udGVudC1UeXBl":
52
- - !binary |-
53
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
54
- !binary "RGF0ZQ==":
55
- - !binary |-
56
- TW9uLCAyNyBPY3QgMjAxNCAxNDo0NjozMyBHTVQ=
57
- !binary "Q29udGVudC1MZW5ndGg=":
58
- - !binary |-
59
- NTI=
47
+ Content-Type:
48
+ - text/plain; charset=utf-8
49
+ Date:
50
+ - Mon, 01 Dec 2014 18:07:39 GMT
51
+ Content-Length:
52
+ - '52'
60
53
  body:
61
- encoding: US-ASCII
62
- string: ! 'Bad parameters: you must choose at least one stream
63
-
64
- '
54
+ encoding: UTF-8
55
+ string: |
56
+ Bad parameters: you must choose at least one stream
65
57
  http_version:
66
- recorded_at: Mon, 27 Oct 2014 14:46:33 GMT
58
+ recorded_at: Mon, 01 Dec 2014 18:07:39 GMT
67
59
  - request:
68
60
  method: get
69
- uri: unix:///var/run/docker.sock/v1.12/containers/18a56c0a1826c882b5debd3b1ab2cc2037d6cb59e1a3f4d4b32301f496e379b0/logs
61
+ uri: "<DOCKER_HOST>/v1.15/containers/f53412e58875d2fba1c358163fcfb492b6d170bbcb46e171966723e61ed41743/logs"
70
62
  body:
71
63
  encoding: US-ASCII
72
64
  string: ''
73
65
  headers:
74
66
  User-Agent:
75
- - Swipely/Docker-API 1.13.6
67
+ - Swipely/Docker-API 1.15.0
76
68
  Content-Type:
77
69
  - text/plain
78
70
  response:
@@ -80,31 +72,27 @@ http_interactions:
80
72
  code: 400
81
73
  message:
82
74
  headers:
83
- !binary "Q29udGVudC1UeXBl":
84
- - !binary |-
85
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
86
- !binary "RGF0ZQ==":
87
- - !binary |-
88
- TW9uLCAyNyBPY3QgMjAxNCAxNDo0NjozMyBHTVQ=
89
- !binary "Q29udGVudC1MZW5ndGg=":
90
- - !binary |-
91
- NTI=
75
+ Content-Type:
76
+ - text/plain; charset=utf-8
77
+ Date:
78
+ - Mon, 01 Dec 2014 18:07:39 GMT
79
+ Content-Length:
80
+ - '52'
92
81
  body:
93
- encoding: US-ASCII
94
- string: ! 'Bad parameters: you must choose at least one stream
95
-
96
- '
82
+ encoding: UTF-8
83
+ string: |
84
+ Bad parameters: you must choose at least one stream
97
85
  http_version:
98
- recorded_at: Mon, 27 Oct 2014 14:46:33 GMT
86
+ recorded_at: Mon, 01 Dec 2014 18:07:39 GMT
99
87
  - request:
100
88
  method: get
101
- uri: unix:///var/run/docker.sock/v1.12/containers/18a56c0a1826c882b5debd3b1ab2cc2037d6cb59e1a3f4d4b32301f496e379b0/logs
89
+ uri: "<DOCKER_HOST>/v1.15/containers/f53412e58875d2fba1c358163fcfb492b6d170bbcb46e171966723e61ed41743/logs"
102
90
  body:
103
91
  encoding: US-ASCII
104
92
  string: ''
105
93
  headers:
106
94
  User-Agent:
107
- - Swipely/Docker-API 1.13.6
95
+ - Swipely/Docker-API 1.15.0
108
96
  Content-Type:
109
97
  - text/plain
110
98
  response:
@@ -112,31 +100,27 @@ http_interactions:
112
100
  code: 400
113
101
  message:
114
102
  headers:
115
- !binary "Q29udGVudC1UeXBl":
116
- - !binary |-
117
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
118
- !binary "RGF0ZQ==":
119
- - !binary |-
120
- TW9uLCAyNyBPY3QgMjAxNCAxNDo0NjozMyBHTVQ=
121
- !binary "Q29udGVudC1MZW5ndGg=":
122
- - !binary |-
123
- NTI=
103
+ Content-Type:
104
+ - text/plain; charset=utf-8
105
+ Date:
106
+ - Mon, 01 Dec 2014 18:07:39 GMT
107
+ Content-Length:
108
+ - '52'
124
109
  body:
125
- encoding: US-ASCII
126
- string: ! 'Bad parameters: you must choose at least one stream
127
-
128
- '
110
+ encoding: UTF-8
111
+ string: |
112
+ Bad parameters: you must choose at least one stream
129
113
  http_version:
130
- recorded_at: Mon, 27 Oct 2014 14:46:33 GMT
114
+ recorded_at: Mon, 01 Dec 2014 18:07:39 GMT
131
115
  - request:
132
116
  method: get
133
- uri: unix:///var/run/docker.sock/v1.12/containers/18a56c0a1826c882b5debd3b1ab2cc2037d6cb59e1a3f4d4b32301f496e379b0/logs
117
+ uri: "<DOCKER_HOST>/v1.15/containers/f53412e58875d2fba1c358163fcfb492b6d170bbcb46e171966723e61ed41743/logs"
134
118
  body:
135
119
  encoding: US-ASCII
136
120
  string: ''
137
121
  headers:
138
122
  User-Agent:
139
- - Swipely/Docker-API 1.13.6
123
+ - Swipely/Docker-API 1.15.0
140
124
  Content-Type:
141
125
  - text/plain
142
126
  response:
@@ -144,20 +128,39 @@ http_interactions:
144
128
  code: 400
145
129
  message:
146
130
  headers:
147
- !binary "Q29udGVudC1UeXBl":
148
- - !binary |-
149
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
150
- !binary "RGF0ZQ==":
151
- - !binary |-
152
- TW9uLCAyNyBPY3QgMjAxNCAxNDo0NjozMyBHTVQ=
153
- !binary "Q29udGVudC1MZW5ndGg=":
154
- - !binary |-
155
- NTI=
131
+ Content-Type:
132
+ - text/plain; charset=utf-8
133
+ Date:
134
+ - Mon, 01 Dec 2014 18:07:39 GMT
135
+ Content-Length:
136
+ - '52'
137
+ body:
138
+ encoding: UTF-8
139
+ string: |
140
+ Bad parameters: you must choose at least one stream
141
+ http_version:
142
+ recorded_at: Mon, 01 Dec 2014 18:07:39 GMT
143
+ - request:
144
+ method: delete
145
+ uri: "<DOCKER_HOST>/v1.15/containers/f53412e58875d2fba1c358163fcfb492b6d170bbcb46e171966723e61ed41743"
156
146
  body:
157
147
  encoding: US-ASCII
158
- string: ! 'Bad parameters: you must choose at least one stream
159
-
160
- '
148
+ string: ''
149
+ headers:
150
+ User-Agent:
151
+ - Swipely/Docker-API 1.15.0
152
+ Content-Type:
153
+ - text/plain
154
+ response:
155
+ status:
156
+ code: 204
157
+ message:
158
+ headers:
159
+ Date:
160
+ - Mon, 01 Dec 2014 18:07:39 GMT
161
+ body:
162
+ encoding: UTF-8
163
+ string: ''
161
164
  http_version:
162
- recorded_at: Mon, 27 Oct 2014 14:46:33 GMT
163
- recorded_with: VCR 2.9.2
165
+ recorded_at: Mon, 01 Dec 2014 18:07:39 GMT
166
+ recorded_with: VCR 2.9.3
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: unix:///var/run/docker.sock/v1.12/containers/create
5
+ uri: "<DOCKER_HOST>/v1.15/containers/create"
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"Cmd":"echo hello","Image":"base"}'
8
+ string: '{"Cmd":"echo hello","Image":"debian:wheezy"}'
9
9
  headers:
10
10
  User-Agent:
11
- - Swipely/Docker-API 1.11.2
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
- - Thu, 26 Jun 2014 19:42:02 GMT
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":"bcdc58f638d20be4172508fc80d191317628d55f48eeb274abc9de5f9c2761d0","Warnings":null}
28
+ {"Id":"dbb926da7ba081cc3723ff90504ffd4ffc6b8aa79167d50191d2da5a21ed97fb","Warnings":null}
31
29
  http_version:
32
- recorded_at: Thu, 26 Jun 2014 19:42:02 GMT
30
+ recorded_at: Mon, 01 Dec 2014 18:07:39 GMT
33
31
  - request:
34
32
  method: get
35
- uri: unix:///var/run/docker.sock/v1.12/containers/bcdc58f638d20be4172508fc80d191317628d55f48eeb274abc9de5f9c2761d0/logs?stdout=1
33
+ uri: "<DOCKER_HOST>/v1.15/containers/dbb926da7ba081cc3723ff90504ffd4ffc6b8aa79167d50191d2da5a21ed97fb/logs?stdout=1"
36
34
  body:
37
35
  encoding: US-ASCII
38
36
  string: ''
39
37
  headers:
40
38
  User-Agent:
41
- - Swipely/Docker-API 1.11.2
39
+ - Swipely/Docker-API 1.15.0
42
40
  Content-Type:
43
41
  - text/plain
44
42
  response:
@@ -47,16 +45,37 @@ http_interactions:
47
45
  message:
48
46
  headers:
49
47
  Date:
50
- - Thu, 26 Jun 2014 19:42:02 GMT
48
+ - Mon, 01 Dec 2014 18:07:39 GMT
51
49
  Content-Length:
52
50
  - '0'
53
51
  Content-Type:
54
52
  - text/plain; charset=utf-8
55
- Connection:
56
- - close
57
53
  body:
58
54
  encoding: UTF-8
59
55
  string: ''
60
56
  http_version:
61
- recorded_at: Thu, 26 Jun 2014 19:42:02 GMT
62
- recorded_with: VCR 2.9.2
57
+ recorded_at: Mon, 01 Dec 2014 18:07:39 GMT
58
+ - request:
59
+ method: delete
60
+ uri: "<DOCKER_HOST>/v1.15/containers/dbb926da7ba081cc3723ff90504ffd4ffc6b8aa79167d50191d2da5a21ed97fb"
61
+ body:
62
+ encoding: US-ASCII
63
+ string: ''
64
+ headers:
65
+ User-Agent:
66
+ - Swipely/Docker-API 1.15.0
67
+ Content-Type:
68
+ - text/plain
69
+ response:
70
+ status:
71
+ code: 204
72
+ message:
73
+ headers:
74
+ Date:
75
+ - Mon, 01 Dec 2014 18:07:39 GMT
76
+ body:
77
+ encoding: UTF-8
78
+ string: ''
79
+ http_version:
80
+ recorded_at: Mon, 01 Dec 2014 18:07:39 GMT
81
+ recorded_with: VCR 2.9.3
@@ -2,120 +2,173 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: unix:///var/run/docker.sock/v1.12/containers/create
5
+ uri: "<DOCKER_HOST>/v1.15/containers/create"
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"Cmd":["sleep","50"],"Image":"base"}'
8
+ string: '{"Cmd":["sleep","50"],"Image":"debian:wheezy"}'
9
9
  headers:
10
10
  User-Agent:
11
- - Swipely/Docker-API 1.11.2
11
+ - Swipely/Docker-API 1.15.0
12
12
  Content-Type:
13
13
  - application/json
14
14
  response:
15
15
  status:
16
16
  code: 201
17
- message:
17
+ message:
18
18
  headers:
19
19
  Content-Type:
20
20
  - application/json
21
21
  Date:
22
- - Wed, 25 Jun 2014 20:41:26 GMT
22
+ - Mon, 01 Dec 2014 18:08:08 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":"37e3d60b08c597de8cd904937039048984906e2e2303d09c0f2e7fa078ea42f1","Warnings":null}
31
- http_version:
32
- recorded_at: Wed, 25 Jun 2014 22:35:48 GMT
28
+ {"Id":"514ea14fddc270074565f530539b098385f35b59c591cc716e78b8727fdaca82","Warnings":null}
29
+ http_version:
30
+ recorded_at: Mon, 01 Dec 2014 18:08:08 GMT
33
31
  - request:
34
32
  method: post
35
- uri: unix:///var/run/docker.sock/v1.12/containers/37e3d60b08c597de8cd904937039048984906e2e2303d09c0f2e7fa078ea42f1/start
33
+ uri: "<DOCKER_HOST>/v1.15/containers/514ea14fddc270074565f530539b098385f35b59c591cc716e78b8727fdaca82/start"
36
34
  body:
37
35
  encoding: UTF-8
38
36
  string: "{}"
39
37
  headers:
40
38
  User-Agent:
41
- - Swipely/Docker-API 1.11.2
39
+ - Swipely/Docker-API 1.15.0
42
40
  Content-Type:
43
41
  - application/json
44
42
  response:
45
43
  status:
46
44
  code: 204
47
- message:
45
+ message:
48
46
  headers:
49
47
  Date:
50
- - Wed, 25 Jun 2014 20:41:26 GMT
51
- Content-Length:
52
- - '0'
53
- Content-Type:
54
- - text/plain; charset=utf-8
55
- Connection:
56
- - close
48
+ - Mon, 01 Dec 2014 18:08:09 GMT
57
49
  body:
58
50
  encoding: UTF-8
59
51
  string: ''
60
- http_version:
61
- recorded_at: Wed, 25 Jun 2014 22:35:49 GMT
52
+ http_version:
53
+ recorded_at: Mon, 01 Dec 2014 18:08:09 GMT
62
54
  - request:
63
55
  method: post
64
- uri: unix:///var/run/docker.sock/v1.12/containers/37e3d60b08c597de8cd904937039048984906e2e2303d09c0f2e7fa078ea42f1/pause
56
+ uri: "<DOCKER_HOST>/v1.15/containers/514ea14fddc270074565f530539b098385f35b59c591cc716e78b8727fdaca82/pause"
65
57
  body:
66
58
  encoding: US-ASCII
67
59
  string: ''
68
60
  headers:
69
61
  User-Agent:
70
- - Swipely/Docker-API 1.11.2
62
+ - Swipely/Docker-API 1.15.0
71
63
  Content-Type:
72
64
  - text/plain
73
65
  response:
74
66
  status:
75
67
  code: 204
76
- message:
68
+ message:
77
69
  headers:
78
70
  Date:
79
- - Wed, 25 Jun 2014 20:41:26 GMT
80
- Content-Length:
81
- - '0'
82
- Content-Type:
83
- - text/plain; charset=utf-8
84
- Connection:
85
- - close
71
+ - Mon, 01 Dec 2014 18:08:09 GMT
86
72
  body:
87
73
  encoding: UTF-8
88
74
  string: ''
89
- http_version:
90
- recorded_at: Wed, 25 Jun 2014 22:35:49 GMT
75
+ http_version:
76
+ recorded_at: Mon, 01 Dec 2014 18:08:09 GMT
91
77
  - request:
92
78
  method: get
93
- uri: unix:///var/run/docker.sock/v1.12/containers/37e3d60b08c597de8cd904937039048984906e2e2303d09c0f2e7fa078ea42f1/json
79
+ uri: "<DOCKER_HOST>/v1.15/containers/514ea14fddc270074565f530539b098385f35b59c591cc716e78b8727fdaca82/json"
94
80
  body:
95
81
  encoding: US-ASCII
96
82
  string: ''
97
83
  headers:
98
84
  User-Agent:
99
- - Swipely/Docker-API 1.11.2
85
+ - Swipely/Docker-API 1.15.0
100
86
  Content-Type:
101
87
  - text/plain
102
88
  response:
103
89
  status:
104
90
  code: 200
105
- message:
91
+ message:
106
92
  headers:
107
93
  Content-Type:
108
94
  - application/json
109
95
  Date:
110
- - Wed, 25 Jun 2014 20:41:26 GMT
96
+ - Mon, 01 Dec 2014 18:08:09 GMT
111
97
  Content-Length:
112
- - '1612'
113
- Connection:
114
- - close
98
+ - '1896'
115
99
  body:
116
100
  encoding: UTF-8
117
101
  string: |
118
- {"Args":["50"],"Config":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":["sleep","50"],"CpuShares":0,"Cpuset":"","Domainname":"","Entrypoint":null,"Env":null,"ExposedPorts":null,"Hostname":"37e3d60b08c5","Image":"base","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":null,"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Created":"2014-06-25T20:41:26.69598368Z","Driver":"aufs","ExecDriver":"native-0.2","HostConfig":{"Binds":null,"ContainerIDFile":"","Dns":null,"DnsSearch":null,"Links":null,"LxcConf":null,"NetworkMode":"","PortBindings":null,"Privileged":false,"PublishAllPorts":false,"VolumesFrom":null},"HostnamePath":"/mnt/sda1/var/lib/docker/containers/37e3d60b08c597de8cd904937039048984906e2e2303d09c0f2e7fa078ea42f1/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/37e3d60b08c597de8cd904937039048984906e2e2303d09c0f2e7fa078ea42f1/hosts","Id":"37e3d60b08c597de8cd904937039048984906e2e2303d09c0f2e7fa078ea42f1","Image":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","MountLabel":"","Name":"/agitated_almeida","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","IPAddress":"172.17.0.54","IPPrefixLen":16,"PortMapping":null,"Ports":{}},"Path":"sleep","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/37e3d60b08c597de8cd904937039048984906e2e2303d09c0f2e7fa078ea42f1/resolv.conf","State":{"ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","Paused":true,"Pid":12110,"Running":true,"StartedAt":"2014-06-25T20:41:26.85527983Z"},"Volumes":{},"VolumesRW":{}}
119
- http_version:
120
- recorded_at: Wed, 25 Jun 2014 22:35:49 GMT
121
- recorded_with: VCR 2.9.2
102
+ {"AppArmorProfile":"","Args":["50"],"Config":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":["sleep","50"],"CpuShares":0,"Cpuset":"","Domainname":"","Entrypoint":[],"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"],"ExposedPorts":null,"Hostname":"514ea14fddc2","Image":"debian:wheezy","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":null,"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Created":"2014-12-01T18:08:08.776272867Z","Driver":"aufs","ExecDriver":"native-0.2","HostConfig":{"Binds":null,"CapAdd":null,"CapDrop":null,"ContainerIDFile":"","Devices":null,"Dns":null,"DnsSearch":null,"ExtraHosts":null,"Links":null,"LxcConf":null,"NetworkMode":"","PortBindings":null,"Privileged":false,"PublishAllPorts":false,"RestartPolicy":{"MaximumRetryCount":0,"Name":""},"SecurityOpt":null,"VolumesFrom":null},"HostnamePath":"/mnt/sda1/var/lib/docker/containers/514ea14fddc270074565f530539b098385f35b59c591cc716e78b8727fdaca82/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/514ea14fddc270074565f530539b098385f35b59c591cc716e78b8727fdaca82/hosts","Id":"514ea14fddc270074565f530539b098385f35b59c591cc716e78b8727fdaca82","Image":"f6fab3b798be3174f45aa1eb731f8182705555f89c9026d8c1ef230cbf8301dd","MountLabel":"","Name":"/determined_ardinghelli","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","IPAddress":"172.17.0.200","IPPrefixLen":16,"MacAddress":"02:42:ac:11:00:c8","PortMapping":null,"Ports":{}},"Path":"sleep","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/514ea14fddc270074565f530539b098385f35b59c591cc716e78b8727fdaca82/resolv.conf","State":{"ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","Paused":true,"Pid":4488,"Restarting":false,"Running":true,"StartedAt":"2014-12-01T18:08:09.268395862Z"},"Volumes":{},"VolumesRW":{}}
103
+ http_version:
104
+ recorded_at: Mon, 01 Dec 2014 18:08:09 GMT
105
+ - request:
106
+ method: post
107
+ uri: "<DOCKER_HOST>/v1.15/containers/514ea14fddc270074565f530539b098385f35b59c591cc716e78b8727fdaca82/unpause"
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: 204
119
+ message:
120
+ headers:
121
+ Date:
122
+ - Mon, 01 Dec 2014 18:08:09 GMT
123
+ body:
124
+ encoding: UTF-8
125
+ string: ''
126
+ http_version:
127
+ recorded_at: Mon, 01 Dec 2014 18:08:09 GMT
128
+ - request:
129
+ method: post
130
+ uri: "<DOCKER_HOST>/v1.15/containers/514ea14fddc270074565f530539b098385f35b59c591cc716e78b8727fdaca82/kill"
131
+ body:
132
+ encoding: US-ASCII
133
+ string: ''
134
+ headers:
135
+ User-Agent:
136
+ - Swipely/Docker-API 1.15.0
137
+ Content-Type:
138
+ - text/plain
139
+ response:
140
+ status:
141
+ code: 204
142
+ message:
143
+ headers:
144
+ Date:
145
+ - Mon, 01 Dec 2014 18:08:09 GMT
146
+ body:
147
+ encoding: UTF-8
148
+ string: ''
149
+ http_version:
150
+ recorded_at: Mon, 01 Dec 2014 18:08:09 GMT
151
+ - request:
152
+ method: delete
153
+ uri: "<DOCKER_HOST>/v1.15/containers/514ea14fddc270074565f530539b098385f35b59c591cc716e78b8727fdaca82"
154
+ body:
155
+ encoding: US-ASCII
156
+ string: ''
157
+ headers:
158
+ User-Agent:
159
+ - Swipely/Docker-API 1.15.0
160
+ Content-Type:
161
+ - text/plain
162
+ response:
163
+ status:
164
+ code: 204
165
+ message:
166
+ headers:
167
+ Date:
168
+ - Mon, 01 Dec 2014 18:08:09 GMT
169
+ body:
170
+ encoding: UTF-8
171
+ string: ''
172
+ http_version:
173
+ recorded_at: Mon, 01 Dec 2014 18:08:09 GMT
174
+ recorded_with: VCR 2.9.3