docker-api 1.18.0 → 1.19.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 (100) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -7
  3. data/lib/docker/exec.rb +8 -2
  4. data/lib/docker/util.rb +11 -1
  5. data/lib/docker/version.rb +2 -2
  6. data/spec/docker/container_spec.rb +6 -5
  7. data/spec/docker/exec_spec.rb +29 -61
  8. data/spec/docker/image_spec.rb +8 -4
  9. data/spec/docker_spec.rb +4 -3
  10. data/spec/fixtures/build_from_dir/Dockerfile +1 -1
  11. data/spec/vcr/Docker/_authenticate_/with_valid_credentials/logs_in_and_sets_the_creds.yml +10 -9
  12. data/spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml +15 -9
  13. data/spec/vcr/Docker/_validate_version/when_nothing_is_raised/validate_version_/.yml +15 -9
  14. data/spec/vcr/Docker/_version/returns_the_version_as_a_Hash.yml +10 -9
  15. data/spec/vcr/Docker_Container/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml +45 -34
  16. data/spec/vcr/Docker_Container/_attach/with_normal_sized_chunks/yields_each_chunk.yml +31 -30
  17. data/spec/vcr/Docker_Container/_attach/with_very_small_chunks/yields_each_chunk.yml +31 -30
  18. data/spec/vcr/Docker_Container/_changes/returns_the_changes_as_an_array.yml +45 -42
  19. data/spec/vcr/Docker_Container/_commit/creates_a_new_Image_from_the_Container_s_changes.yml +66 -35
  20. data/spec/vcr/Docker_Container/_copy/when_the_file_does_not_exist/raises_an_error.yml +37 -35
  21. data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_directory/yields_each_chunk_of_the_tarred_directory.yml +45 -43
  22. data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_file/yields_each_chunk_of_the_tarred_file.yml +44 -42
  23. data/spec/vcr/Docker_Container/_create/when_creating_a_container_named_bob/should_have_name_set_to_bob.yml +24 -22
  24. 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
  25. data/spec/vcr/Docker_Container/_delete/deletes_the_container.yml +24 -22
  26. data/spec/vcr/Docker_Container/_exec/when_detach_is_true/returns_the_Docker_Exec_object.yml +68 -39
  27. data/spec/vcr/Docker_Container/_exec/when_passed_a_block/streams_the_stdout/stderr_messages.yml +68 -38
  28. data/spec/vcr/Docker_Container/_exec/when_passed_only_a_command/returns_the_stdout/stderr_messages_and_exit_code.yml +183 -0
  29. data/spec/vcr/Docker_Container/_exec/when_stdin_object_is_passed/returns_the_stdout/stderr_messages.yml +26 -25
  30. data/spec/vcr/Docker_Container/_exec/when_tty_is_true/returns_the_raw_stdout/stderr_output.yml +68 -38
  31. data/spec/vcr/Docker_Container/_export/yields_each_chunk.yml +85 -92
  32. data/spec/vcr/Docker_Container/_get/when_the_HTTP_response_is_a_200/materializes_the_Container_into_a_Docker_Container.yml +24 -22
  33. data/spec/vcr/Docker_Container/_json/returns_the_description_as_a_Hash.yml +24 -22
  34. data/spec/vcr/Docker_Container/_kill/kills_the_container.yml +48 -43
  35. data/spec/vcr/Docker_Container/_kill/with_a_kill_signal/kills_the_container.yml +83 -69
  36. data/spec/vcr/Docker_Container/_logs/when_not_selecting_any_stream/raises_a_client_error.yml +47 -42
  37. data/spec/vcr/Docker_Container/_logs/when_selecting_stdout/returns_blank_logs.yml +20 -19
  38. data/spec/vcr/Docker_Container/_pause/pauses_the_container.yml +45 -43
  39. data/spec/vcr/Docker_Container/_restart/restarts_the_container.yml +73 -65
  40. data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_does_not_return_status_code_of_0/raises_an_error.yml +29 -27
  41. 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
  42. data/spec/vcr/Docker_Container/_start/starts_the_container.yml +42 -37
  43. data/spec/vcr/Docker_Container/_stop/stops_the_container.yml +49 -44
  44. data/spec/vcr/Docker_Container/_streaming_logs/when_not_selecting_any_stream/raises_a_client_error.yml +47 -42
  45. data/spec/vcr/Docker_Container/_streaming_logs/when_selecting_stdout/returns_blank_logs.yml +20 -19
  46. data/spec/vcr/Docker_Container/_top/returns_the_top_commands_as_an_Array.yml +54 -51
  47. data/spec/vcr/Docker_Container/_unpause/unpauses_the_container.yml +45 -43
  48. data/spec/vcr/Docker_Container/_wait/waits_for_the_command_to_finish.yml +29 -27
  49. data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/sets_the_read_timeout_to_that_amount_of_time.yml +29 -27
  50. data/spec/vcr/Docker_Exec/_create/when_the_HTTP_request_returns_a_201/sets_the_id.yml +35 -33
  51. data/spec/vcr/Docker_Exec/_json/returns_the_description_as_a_Hash.yml +207 -0
  52. data/spec/vcr/Docker_Exec/_start_/when_detach_is_set_to_false/block_is_passed/attaches_to_the_stream.yml +68 -38
  53. data/spec/vcr/Docker_Exec/_start_/when_detach_is_set_to_false/returns_the_stdout_and_stderr_messages.yml +68 -38
  54. data/spec/vcr/Docker_Exec/_start_/when_detach_is_set_to_true/returns_empty_stdout/stderr_messages_with_exitcode.yml +180 -0
  55. data/spec/vcr/Docker_Exec/_start_/when_the_HTTP_request_returns_a_201/starts_the_exec_instance.yml +67 -38
  56. data/spec/vcr/Docker_Exec/_start_/when_the_command_has_already_run/raises_an_error.yml +67 -38
  57. data/spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml +67 -87
  58. 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
  59. 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
  60. data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/without_query_parameters/builds_an_image.yml +9 -9
  61. data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml +11 -9
  62. 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
  63. data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_credentials_passed/sends_X-Registry-Config_header.yml +89 -38
  64. data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_no_query_parameters/builds_the_image.yml +421 -51
  65. 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
  66. 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
  67. data/spec/vcr/Docker_Image/_create/with_a_block_capturing_create_output/calls_the_block_and_passes_build_output.yml +9 -7
  68. data/spec/vcr/Docker_Image/_exist_/when_the_image_does_exist/returns_true.yml +11 -9
  69. data/spec/vcr/Docker_Image/_get/when_the_image_does_exist/returns_the_new_image.yml +11 -9
  70. data/spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml +21 -18
  71. data/spec/vcr/Docker_Image/_import/when_the_argument_is_a_URI/when_the_URI_is_invalid/raises_an_error.yml +164 -35
  72. data/spec/vcr/Docker_Image/_import/when_the_argument_is_a_URI/when_the_URI_is_valid/returns_an_Image.yml +21 -23
  73. data/spec/vcr/Docker_Image/_import/when_the_file_does_exist/creates_the_Image.yml +15 -15
  74. data/spec/vcr/Docker_Image/_insert_local/when_a_direcory_is_passed/inserts_the_directory.yml +887 -840
  75. data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/creates_a_new_image.yml +76 -65
  76. data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/leave_no_intermediate_containers.yml +56 -48
  77. data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_exist/creates_a_new_Image_that_has_that_file.yml +63 -61
  78. data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_not_exist/raises_an_error.yml +9 -9
  79. data/spec/vcr/Docker_Image/_insert_local/when_there_are_multiple_files_passed/creates_a_new_Image_that_has_each_file.yml +69 -66
  80. data/spec/vcr/Docker_Image/_json/returns_additional_information_about_image_image.yml +19 -17
  81. data/spec/vcr/Docker_Image/_push/pushes_the_Image.yml +99 -113
  82. data/spec/vcr/Docker_Image/_push/streams_output_from_push.yml +100 -391
  83. 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
  84. data/spec/vcr/Docker_Image/_push/when_there_are_no_credentials/still_pushes.yml +115 -110
  85. data/spec/vcr/Docker_Image/_refresh_/updates_the_info_hash.yml +77 -93
  86. data/spec/vcr/Docker_Image/_refresh_/with_an_explicit_connection/updates_using_the_provided_connection.yml +19 -17
  87. data/spec/vcr/Docker_Image/_remove/when_no_name_is_given/removes_the_Image.yml +581 -229
  88. 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
  89. data/spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml +42 -40
  90. 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
  91. 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
  92. data/spec/vcr/Docker_Image/_save/calls_the_class_method.yml +42 -39
  93. data/spec/vcr/Docker_Image/_save/when_a_filename_is_specified/exports_tarball_of_image_to_specified_file.yml +51 -63
  94. data/spec/vcr/Docker_Image/_save/when_no_filename_is_specified/returns_raw_binary_data_as_string.yml +51 -63
  95. data/spec/vcr/Docker_Image/_search/materializes_each_Image_into_a_Docker_Image.yml +48 -209
  96. data/spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml +22 -22
  97. metadata +8 -8
  98. data/spec/vcr/Docker_Container/_exec/when_passed_only_a_command/returns_the_stdout/stderr_messages.yml +0 -153
  99. data/spec/vcr/Docker_Exec/_resize/when_exec_instance_has_TTY_enabled/returns_a_200.yml +0 -155
  100. 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: "<DOCKER_HOST>/v1.15/containers/create"
5
+ uri: <DOCKER_HOST>/v1.16/containers/create
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"Cmd":["sleep","10"],"Image":"debian:wheezy"}'
8
+ string: ! '{"Cmd":["sleep","300"],"Image":"debian:wheezy"}'
9
9
  headers:
10
10
  User-Agent:
11
- - Swipely/Docker-API 1.15.0
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
- - Mon, 01 Dec 2014 18:08:25 GMT
22
+ - Thu, 12 Feb 2015 00:54:40 GMT
23
23
  Content-Length:
24
24
  - '90'
25
25
  body:
26
- encoding: UTF-8
27
- string: |
28
- {"Id":"c785ced48725afe9458410fea9a177f2c7e07ce4e0ec6623f8dbd1e89e69f68f","Warnings":null}
26
+ encoding: US-ASCII
27
+ string: ! '{"Id":"331b69bde1c01753ffbe15f07bc4ae1bb6a492ef49866e522454c2fcd3cc4cfe","Warnings":null}
28
+
29
+ '
29
30
  http_version:
30
- recorded_at: Mon, 01 Dec 2014 18:08:25 GMT
31
+ recorded_at: Thu, 12 Feb 2015 00:54:40 GMT
31
32
  - request:
32
33
  method: post
33
- uri: "<DOCKER_HOST>/v1.15/containers/c785ced48725afe9458410fea9a177f2c7e07ce4e0ec6623f8dbd1e89e69f68f/start"
34
+ uri: <DOCKER_HOST>/v1.16/containers/331b69bde1c01753ffbe15f07bc4ae1bb6a492ef49866e522454c2fcd3cc4cfe/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.15.0
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
- - Mon, 01 Dec 2014 18:08:25 GMT
49
+ - Thu, 12 Feb 2015 00:54:40 GMT
49
50
  body:
50
- encoding: UTF-8
51
+ encoding: US-ASCII
51
52
  string: ''
52
53
  http_version:
53
- recorded_at: Mon, 01 Dec 2014 18:08:25 GMT
54
+ recorded_at: Thu, 12 Feb 2015 00:54:40 GMT
54
55
  - request:
55
56
  method: post
56
- uri: "<DOCKER_HOST>/v1.15/containers/c785ced48725afe9458410fea9a177f2c7e07ce4e0ec6623f8dbd1e89e69f68f/exec"
57
+ uri: <DOCKER_HOST>/v1.16/containers/331b69bde1c01753ffbe15f07bc4ae1bb6a492ef49866e522454c2fcd3cc4cfe/exec
57
58
  body:
58
59
  encoding: UTF-8
59
- string: '{"AttachStdout":true,"Cmd":["bash","-c","sleep 2; echo hello"]}'
60
+ string: ! '{"AttachStdout":true,"Cmd":["bash","-c","sleep 2; echo hello"]}'
60
61
  headers:
61
62
  User-Agent:
62
- - Swipely/Docker-API 1.15.0
63
+ - Swipely/Docker-API 1.18.0
63
64
  Content-Type:
64
65
  - application/json
65
66
  response:
@@ -70,24 +71,25 @@ http_interactions:
70
71
  Content-Type:
71
72
  - application/json
72
73
  Date:
73
- - Mon, 01 Dec 2014 18:08:26 GMT
74
+ - Thu, 12 Feb 2015 00:54:40 GMT
74
75
  Content-Length:
75
76
  - '74'
76
77
  body:
77
- encoding: UTF-8
78
- string: |
79
- {"Id":"be333f32abaec0bd3b71175f5ee9d590fe5646d9647cf11ca82eda3ee8760fe2"}
78
+ encoding: US-ASCII
79
+ string: ! '{"Id":"b59c0236313570501ac9420299e448c91fc3b8458a0f44dd680dac6936817590"}
80
+
81
+ '
80
82
  http_version:
81
- recorded_at: Mon, 01 Dec 2014 18:08:26 GMT
83
+ recorded_at: Thu, 12 Feb 2015 00:54:40 GMT
82
84
  - request:
83
85
  method: post
84
- uri: "<DOCKER_HOST>/v1.15/exec/be333f32abaec0bd3b71175f5ee9d590fe5646d9647cf11ca82eda3ee8760fe2/start"
86
+ uri: <DOCKER_HOST>/v1.16/exec/b59c0236313570501ac9420299e448c91fc3b8458a0f44dd680dac6936817590/start
85
87
  body:
86
88
  encoding: UTF-8
87
- string: '{"Tty":false,"Detach":false}'
89
+ string: ! '{"Tty":false,"Detach":false}'
88
90
  headers:
89
91
  User-Agent:
90
- - Swipely/Docker-API 1.15.0
92
+ - Swipely/Docker-API 1.18.0
91
93
  Content-Type:
92
94
  - application/json
93
95
  response:
@@ -98,20 +100,48 @@ http_interactions:
98
100
  Content-Type:
99
101
  - application/vnd.docker.raw-stream
100
102
  body:
101
- encoding: UTF-8
103
+ encoding: US-ASCII
102
104
  string: !binary |-
103
105
  AQAAAAAAAAZoZWxsbwo=
104
106
  http_version:
105
- recorded_at: Mon, 01 Dec 2014 18:08:28 GMT
107
+ recorded_at: Thu, 12 Feb 2015 00:54:42 GMT
108
+ - request:
109
+ method: get
110
+ uri: <DOCKER_HOST>/v1.16/exec/b59c0236313570501ac9420299e448c91fc3b8458a0f44dd680dac6936817590/json
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:42 GMT
128
+ Content-Length:
129
+ - '1891'
130
+ body:
131
+ encoding: US-ASCII
132
+ string: ! '{"ID":"b59c0236313570501ac9420299e448c91fc3b8458a0f44dd680dac6936817590","Running":false,"ExitCode":0,"ProcessConfig":{"privileged":false,"user":"","tty":false,"entrypoint":"bash","arguments":["-c","sleep
133
+ 2; echo hello"]},"OpenStdin":false,"OpenStderr":false,"OpenStdout":true,"Container":{"State":{"Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Pid":11153,"ExitCode":0,"Error":"","StartedAt":"2015-02-12T00:54:40.397377758Z","FinishedAt":"0001-01-01T00:00:00Z"},"ID":"331b69bde1c01753ffbe15f07bc4ae1bb6a492ef49866e522454c2fcd3cc4cfe","Created":"2015-02-12T00:54:40.009782151Z","Path":"sleep","Args":["300"],"Config":{"Hostname":"331b69bde1c0","Domainname":"","User":"","Memory":0,"MemorySwap":0,"CpuShares":0,"Cpuset":"","AttachStdin":false,"AttachStdout":false,"AttachStderr":false,"PortSpecs":null,"ExposedPorts":null,"Tty":false,"OpenStdin":false,"StdinOnce":false,"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"],"Cmd":["sleep","300"],"Image":"debian:wheezy","Volumes":null,"WorkingDir":"","Entrypoint":null,"NetworkDisabled":false,"MacAddress":"","OnBuild":null},"Image":"c90d655b99b2ec5b7e94d38c87f92dce015c17a313caeaae0e980d9b9bed8444","NetworkSettings":{"IPAddress":"172.17.0.84","IPPrefixLen":16,"MacAddress":"02:42:ac:11:00:54","Gateway":"172.17.42.1","Bridge":"docker0","PortMapping":null,"Ports":{}},"ResolvConfPath":"/var/lib/docker/containers/331b69bde1c01753ffbe15f07bc4ae1bb6a492ef49866e522454c2fcd3cc4cfe/resolv.conf","HostnamePath":"/var/lib/docker/containers/331b69bde1c01753ffbe15f07bc4ae1bb6a492ef49866e522454c2fcd3cc4cfe/hostname","HostsPath":"/var/lib/docker/containers/331b69bde1c01753ffbe15f07bc4ae1bb6a492ef49866e522454c2fcd3cc4cfe/hosts","Name":"/insane_mccarthy","Driver":"devicemapper","ExecDriver":"native-0.2","MountLabel":"","ProcessLabel":"","AppArmorProfile":"","RestartCount":0,"Volumes":{},"VolumesRW":{}}}'
134
+ http_version:
135
+ recorded_at: Thu, 12 Feb 2015 00:54:42 GMT
106
136
  - request:
107
137
  method: post
108
- uri: "<DOCKER_HOST>/v1.15/containers/c785ced48725afe9458410fea9a177f2c7e07ce4e0ec6623f8dbd1e89e69f68f/kill"
138
+ uri: <DOCKER_HOST>/v1.16/containers/331b69bde1c01753ffbe15f07bc4ae1bb6a492ef49866e522454c2fcd3cc4cfe/kill
109
139
  body:
110
140
  encoding: US-ASCII
111
141
  string: ''
112
142
  headers:
113
143
  User-Agent:
114
- - Swipely/Docker-API 1.15.0
144
+ - Swipely/Docker-API 1.18.0
115
145
  Content-Type:
116
146
  - text/plain
117
147
  response:
@@ -120,21 +150,21 @@ http_interactions:
120
150
  message:
121
151
  headers:
122
152
  Date:
123
- - Mon, 01 Dec 2014 18:08:28 GMT
153
+ - Thu, 12 Feb 2015 00:54:42 GMT
124
154
  body:
125
- encoding: UTF-8
155
+ encoding: US-ASCII
126
156
  string: ''
127
157
  http_version:
128
- recorded_at: Mon, 01 Dec 2014 18:08:28 GMT
158
+ recorded_at: Thu, 12 Feb 2015 00:54:42 GMT
129
159
  - request:
130
160
  method: delete
131
- uri: "<DOCKER_HOST>/v1.15/containers/c785ced48725afe9458410fea9a177f2c7e07ce4e0ec6623f8dbd1e89e69f68f"
161
+ uri: <DOCKER_HOST>/v1.16/containers/331b69bde1c01753ffbe15f07bc4ae1bb6a492ef49866e522454c2fcd3cc4cfe
132
162
  body:
133
163
  encoding: US-ASCII
134
164
  string: ''
135
165
  headers:
136
166
  User-Agent:
137
- - Swipely/Docker-API 1.15.0
167
+ - Swipely/Docker-API 1.18.0
138
168
  Content-Type:
139
169
  - text/plain
140
170
  response:
@@ -143,10 +173,10 @@ http_interactions:
143
173
  message:
144
174
  headers:
145
175
  Date:
146
- - Mon, 01 Dec 2014 18:08:28 GMT
176
+ - Thu, 12 Feb 2015 00:54:43 GMT
147
177
  body:
148
- encoding: UTF-8
178
+ encoding: US-ASCII
149
179
  string: ''
150
180
  http_version:
151
- recorded_at: Mon, 01 Dec 2014 18:08:28 GMT
152
- recorded_with: VCR 2.9.3
181
+ recorded_at: Thu, 12 Feb 2015 00:54:43 GMT
182
+ recorded_with: VCR 2.9.2
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: "<DOCKER_HOST>/v1.15/containers/create"
5
+ uri: <DOCKER_HOST>/v1.16/containers/create
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"Cmd":["sleep","10"],"Image":"debian:wheezy"}'
8
+ string: ! '{"Cmd":["sleep","300"],"Image":"debian:wheezy"}'
9
9
  headers:
10
10
  User-Agent:
11
- - Swipely/Docker-API 1.15.0
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
- - Mon, 01 Dec 2014 18:08:22 GMT
22
+ - Thu, 12 Feb 2015 00:54:36 GMT
23
23
  Content-Length:
24
24
  - '90'
25
25
  body:
26
- encoding: UTF-8
27
- string: |
28
- {"Id":"0eab26d344c4942ce00e2ddccbe820c990882b89ffa418046af8c4af82b406b3","Warnings":null}
26
+ encoding: US-ASCII
27
+ string: ! '{"Id":"a8864e7b6565bfdb320c0542897bee3a03a6cd75bc54b362011b07b0b1acf00e","Warnings":null}
28
+
29
+ '
29
30
  http_version:
30
- recorded_at: Mon, 01 Dec 2014 18:08:22 GMT
31
+ recorded_at: Thu, 12 Feb 2015 00:54:36 GMT
31
32
  - request:
32
33
  method: post
33
- uri: "<DOCKER_HOST>/v1.15/containers/0eab26d344c4942ce00e2ddccbe820c990882b89ffa418046af8c4af82b406b3/start"
34
+ uri: <DOCKER_HOST>/v1.16/containers/a8864e7b6565bfdb320c0542897bee3a03a6cd75bc54b362011b07b0b1acf00e/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.15.0
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
- - Mon, 01 Dec 2014 18:08:22 GMT
49
+ - Thu, 12 Feb 2015 00:54:36 GMT
49
50
  body:
50
- encoding: UTF-8
51
+ encoding: US-ASCII
51
52
  string: ''
52
53
  http_version:
53
- recorded_at: Mon, 01 Dec 2014 18:08:22 GMT
54
+ recorded_at: Thu, 12 Feb 2015 00:54:36 GMT
54
55
  - request:
55
56
  method: post
56
- uri: "<DOCKER_HOST>/v1.15/containers/0eab26d344c4942ce00e2ddccbe820c990882b89ffa418046af8c4af82b406b3/exec"
57
+ uri: <DOCKER_HOST>/v1.16/containers/a8864e7b6565bfdb320c0542897bee3a03a6cd75bc54b362011b07b0b1acf00e/exec
57
58
  body:
58
59
  encoding: UTF-8
59
- string: '{"AttachStdout":true,"Cmd":["bash","-c","sleep 2; echo hello"]}'
60
+ string: ! '{"AttachStdout":true,"Cmd":["bash","-c","sleep 2; echo hello"]}'
60
61
  headers:
61
62
  User-Agent:
62
- - Swipely/Docker-API 1.15.0
63
+ - Swipely/Docker-API 1.18.0
63
64
  Content-Type:
64
65
  - application/json
65
66
  response:
@@ -70,24 +71,25 @@ http_interactions:
70
71
  Content-Type:
71
72
  - application/json
72
73
  Date:
73
- - Mon, 01 Dec 2014 18:08:22 GMT
74
+ - Thu, 12 Feb 2015 00:54:36 GMT
74
75
  Content-Length:
75
76
  - '74'
76
77
  body:
77
- encoding: UTF-8
78
- string: |
79
- {"Id":"6ea365fb9c16518876c47637b227eb076ba7de515d0190b8e8bfee807c516e71"}
78
+ encoding: US-ASCII
79
+ string: ! '{"Id":"07986593b4313b40484879220fe201c5f24fd6b6a4459e368d3235321932e833"}
80
+
81
+ '
80
82
  http_version:
81
- recorded_at: Mon, 01 Dec 2014 18:08:22 GMT
83
+ recorded_at: Thu, 12 Feb 2015 00:54:36 GMT
82
84
  - request:
83
85
  method: post
84
- uri: "<DOCKER_HOST>/v1.15/exec/6ea365fb9c16518876c47637b227eb076ba7de515d0190b8e8bfee807c516e71/start"
86
+ uri: <DOCKER_HOST>/v1.16/exec/07986593b4313b40484879220fe201c5f24fd6b6a4459e368d3235321932e833/start
85
87
  body:
86
88
  encoding: UTF-8
87
- string: '{"Tty":false,"Detach":false}'
89
+ string: ! '{"Tty":false,"Detach":false}'
88
90
  headers:
89
91
  User-Agent:
90
- - Swipely/Docker-API 1.15.0
92
+ - Swipely/Docker-API 1.18.0
91
93
  Content-Type:
92
94
  - application/json
93
95
  response:
@@ -98,20 +100,48 @@ http_interactions:
98
100
  Content-Type:
99
101
  - application/vnd.docker.raw-stream
100
102
  body:
101
- encoding: UTF-8
103
+ encoding: US-ASCII
102
104
  string: !binary |-
103
105
  AQAAAAAAAAZoZWxsbwo=
104
106
  http_version:
105
- recorded_at: Mon, 01 Dec 2014 18:08:25 GMT
107
+ recorded_at: Thu, 12 Feb 2015 00:54:38 GMT
108
+ - request:
109
+ method: get
110
+ uri: <DOCKER_HOST>/v1.16/exec/07986593b4313b40484879220fe201c5f24fd6b6a4459e368d3235321932e833/json
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:38 GMT
128
+ Content-Length:
129
+ - '1888'
130
+ body:
131
+ encoding: US-ASCII
132
+ string: ! '{"ID":"07986593b4313b40484879220fe201c5f24fd6b6a4459e368d3235321932e833","Running":false,"ExitCode":0,"ProcessConfig":{"privileged":false,"user":"","tty":false,"entrypoint":"bash","arguments":["-c","sleep
133
+ 2; echo hello"]},"OpenStdin":false,"OpenStderr":false,"OpenStdout":true,"Container":{"State":{"Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Pid":11092,"ExitCode":0,"Error":"","StartedAt":"2015-02-12T00:54:36.722319935Z","FinishedAt":"0001-01-01T00:00:00Z"},"ID":"a8864e7b6565bfdb320c0542897bee3a03a6cd75bc54b362011b07b0b1acf00e","Created":"2015-02-12T00:54:36.340436429Z","Path":"sleep","Args":["300"],"Config":{"Hostname":"a8864e7b6565","Domainname":"","User":"","Memory":0,"MemorySwap":0,"CpuShares":0,"Cpuset":"","AttachStdin":false,"AttachStdout":false,"AttachStderr":false,"PortSpecs":null,"ExposedPorts":null,"Tty":false,"OpenStdin":false,"StdinOnce":false,"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"],"Cmd":["sleep","300"],"Image":"debian:wheezy","Volumes":null,"WorkingDir":"","Entrypoint":null,"NetworkDisabled":false,"MacAddress":"","OnBuild":null},"Image":"c90d655b99b2ec5b7e94d38c87f92dce015c17a313caeaae0e980d9b9bed8444","NetworkSettings":{"IPAddress":"172.17.0.83","IPPrefixLen":16,"MacAddress":"02:42:ac:11:00:53","Gateway":"172.17.42.1","Bridge":"docker0","PortMapping":null,"Ports":{}},"ResolvConfPath":"/var/lib/docker/containers/a8864e7b6565bfdb320c0542897bee3a03a6cd75bc54b362011b07b0b1acf00e/resolv.conf","HostnamePath":"/var/lib/docker/containers/a8864e7b6565bfdb320c0542897bee3a03a6cd75bc54b362011b07b0b1acf00e/hostname","HostsPath":"/var/lib/docker/containers/a8864e7b6565bfdb320c0542897bee3a03a6cd75bc54b362011b07b0b1acf00e/hosts","Name":"/cocky_euclid","Driver":"devicemapper","ExecDriver":"native-0.2","MountLabel":"","ProcessLabel":"","AppArmorProfile":"","RestartCount":0,"Volumes":{},"VolumesRW":{}}}'
134
+ http_version:
135
+ recorded_at: Thu, 12 Feb 2015 00:54:38 GMT
106
136
  - request:
107
137
  method: post
108
- uri: "<DOCKER_HOST>/v1.15/containers/0eab26d344c4942ce00e2ddccbe820c990882b89ffa418046af8c4af82b406b3/kill"
138
+ uri: <DOCKER_HOST>/v1.16/containers/a8864e7b6565bfdb320c0542897bee3a03a6cd75bc54b362011b07b0b1acf00e/kill
109
139
  body:
110
140
  encoding: US-ASCII
111
141
  string: ''
112
142
  headers:
113
143
  User-Agent:
114
- - Swipely/Docker-API 1.15.0
144
+ - Swipely/Docker-API 1.18.0
115
145
  Content-Type:
116
146
  - text/plain
117
147
  response:
@@ -120,21 +150,21 @@ http_interactions:
120
150
  message:
121
151
  headers:
122
152
  Date:
123
- - Mon, 01 Dec 2014 18:08:25 GMT
153
+ - Thu, 12 Feb 2015 00:54:38 GMT
124
154
  body:
125
- encoding: UTF-8
155
+ encoding: US-ASCII
126
156
  string: ''
127
157
  http_version:
128
- recorded_at: Mon, 01 Dec 2014 18:08:25 GMT
158
+ recorded_at: Thu, 12 Feb 2015 00:54:38 GMT
129
159
  - request:
130
160
  method: delete
131
- uri: "<DOCKER_HOST>/v1.15/containers/0eab26d344c4942ce00e2ddccbe820c990882b89ffa418046af8c4af82b406b3"
161
+ uri: <DOCKER_HOST>/v1.16/containers/a8864e7b6565bfdb320c0542897bee3a03a6cd75bc54b362011b07b0b1acf00e
132
162
  body:
133
163
  encoding: US-ASCII
134
164
  string: ''
135
165
  headers:
136
166
  User-Agent:
137
- - Swipely/Docker-API 1.15.0
167
+ - Swipely/Docker-API 1.18.0
138
168
  Content-Type:
139
169
  - text/plain
140
170
  response:
@@ -143,10 +173,10 @@ http_interactions:
143
173
  message:
144
174
  headers:
145
175
  Date:
146
- - Mon, 01 Dec 2014 18:08:25 GMT
176
+ - Thu, 12 Feb 2015 00:54:39 GMT
147
177
  body:
148
- encoding: UTF-8
178
+ encoding: US-ASCII
149
179
  string: ''
150
180
  http_version:
151
- recorded_at: Mon, 01 Dec 2014 18:08:25 GMT
152
- recorded_with: VCR 2.9.3
181
+ recorded_at: Thu, 12 Feb 2015 00:54:39 GMT
182
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,180 @@
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":["sleep","300"],"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:43 GMT
23
+ Content-Length:
24
+ - '90'
25
+ body:
26
+ encoding: US-ASCII
27
+ string: ! '{"Id":"a856a3638bc711bab09926a27bc77924a8138d5bbd69fecabf9543106cd01b8b","Warnings":null}
28
+
29
+ '
30
+ http_version:
31
+ recorded_at: Thu, 12 Feb 2015 00:54:43 GMT
32
+ - request:
33
+ method: post
34
+ uri: <DOCKER_HOST>/v1.16/containers/a856a3638bc711bab09926a27bc77924a8138d5bbd69fecabf9543106cd01b8b/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:43 GMT
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ''
53
+ http_version:
54
+ recorded_at: Thu, 12 Feb 2015 00:54:43 GMT
55
+ - request:
56
+ method: post
57
+ uri: <DOCKER_HOST>/v1.16/containers/a856a3638bc711bab09926a27bc77924a8138d5bbd69fecabf9543106cd01b8b/exec
58
+ body:
59
+ encoding: UTF-8
60
+ string: ! '{"Cmd":["date"]}'
61
+ headers:
62
+ User-Agent:
63
+ - Swipely/Docker-API 1.18.0
64
+ Content-Type:
65
+ - application/json
66
+ response:
67
+ status:
68
+ code: 201
69
+ message:
70
+ headers:
71
+ Content-Type:
72
+ - application/json
73
+ Date:
74
+ - Thu, 12 Feb 2015 00:54:43 GMT
75
+ Content-Length:
76
+ - '74'
77
+ body:
78
+ encoding: US-ASCII
79
+ string: ! '{"Id":"1a39c489ebaf5b07c492e6ef553e7f8e66526802adfe2fd1f9ca8a7a44dace50"}
80
+
81
+ '
82
+ http_version:
83
+ recorded_at: Thu, 12 Feb 2015 00:54:43 GMT
84
+ - request:
85
+ method: post
86
+ uri: <DOCKER_HOST>/v1.16/exec/1a39c489ebaf5b07c492e6ef553e7f8e66526802adfe2fd1f9ca8a7a44dace50/start
87
+ body:
88
+ encoding: UTF-8
89
+ string: ! '{"Tty":false,"Detach":true}'
90
+ headers:
91
+ User-Agent:
92
+ - Swipely/Docker-API 1.18.0
93
+ Content-Type:
94
+ - application/json
95
+ response:
96
+ status:
97
+ code: 204
98
+ message:
99
+ headers:
100
+ Date:
101
+ - Thu, 12 Feb 2015 00:54:43 GMT
102
+ body:
103
+ encoding: US-ASCII
104
+ string: ''
105
+ http_version:
106
+ recorded_at: Thu, 12 Feb 2015 00:54:43 GMT
107
+ - request:
108
+ method: get
109
+ uri: <DOCKER_HOST>/v1.16/exec/1a39c489ebaf5b07c492e6ef553e7f8e66526802adfe2fd1f9ca8a7a44dace50/json
110
+ body:
111
+ encoding: US-ASCII
112
+ string: ''
113
+ headers:
114
+ User-Agent:
115
+ - Swipely/Docker-API 1.18.0
116
+ Content-Type:
117
+ - text/plain
118
+ response:
119
+ status:
120
+ code: 200
121
+ message:
122
+ headers:
123
+ Content-Type:
124
+ - application/json
125
+ Date:
126
+ - Thu, 12 Feb 2015 00:54:43 GMT
127
+ Content-Length:
128
+ - '1867'
129
+ body:
130
+ encoding: US-ASCII
131
+ string: ! '{"ID":"1a39c489ebaf5b07c492e6ef553e7f8e66526802adfe2fd1f9ca8a7a44dace50","Running":true,"ExitCode":0,"ProcessConfig":{"privileged":false,"user":"","tty":false,"entrypoint":"date","arguments":[]},"OpenStdin":false,"OpenStderr":false,"OpenStdout":false,"Container":{"State":{"Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Pid":11213,"ExitCode":0,"Error":"","StartedAt":"2015-02-12T00:54:43.891495107Z","FinishedAt":"0001-01-01T00:00:00Z"},"ID":"a856a3638bc711bab09926a27bc77924a8138d5bbd69fecabf9543106cd01b8b","Created":"2015-02-12T00:54:43.516491956Z","Path":"sleep","Args":["300"],"Config":{"Hostname":"a856a3638bc7","Domainname":"","User":"","Memory":0,"MemorySwap":0,"CpuShares":0,"Cpuset":"","AttachStdin":false,"AttachStdout":false,"AttachStderr":false,"PortSpecs":null,"ExposedPorts":null,"Tty":false,"OpenStdin":false,"StdinOnce":false,"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"],"Cmd":["sleep","300"],"Image":"debian:wheezy","Volumes":null,"WorkingDir":"","Entrypoint":null,"NetworkDisabled":false,"MacAddress":"","OnBuild":null},"Image":"c90d655b99b2ec5b7e94d38c87f92dce015c17a313caeaae0e980d9b9bed8444","NetworkSettings":{"IPAddress":"172.17.0.85","IPPrefixLen":16,"MacAddress":"02:42:ac:11:00:55","Gateway":"172.17.42.1","Bridge":"docker0","PortMapping":null,"Ports":{}},"ResolvConfPath":"/var/lib/docker/containers/a856a3638bc711bab09926a27bc77924a8138d5bbd69fecabf9543106cd01b8b/resolv.conf","HostnamePath":"/var/lib/docker/containers/a856a3638bc711bab09926a27bc77924a8138d5bbd69fecabf9543106cd01b8b/hostname","HostsPath":"/var/lib/docker/containers/a856a3638bc711bab09926a27bc77924a8138d5bbd69fecabf9543106cd01b8b/hosts","Name":"/clever_archimedes","Driver":"devicemapper","ExecDriver":"native-0.2","MountLabel":"","ProcessLabel":"","AppArmorProfile":"","RestartCount":0,"Volumes":{},"VolumesRW":{}}}'
132
+ http_version:
133
+ recorded_at: Thu, 12 Feb 2015 00:54:43 GMT
134
+ - request:
135
+ method: post
136
+ uri: <DOCKER_HOST>/v1.16/containers/a856a3638bc711bab09926a27bc77924a8138d5bbd69fecabf9543106cd01b8b/kill
137
+ body:
138
+ encoding: US-ASCII
139
+ string: ''
140
+ headers:
141
+ User-Agent:
142
+ - Swipely/Docker-API 1.18.0
143
+ Content-Type:
144
+ - text/plain
145
+ response:
146
+ status:
147
+ code: 204
148
+ message:
149
+ headers:
150
+ Date:
151
+ - Thu, 12 Feb 2015 00:54:43 GMT
152
+ body:
153
+ encoding: US-ASCII
154
+ string: ''
155
+ http_version:
156
+ recorded_at: Thu, 12 Feb 2015 00:54:43 GMT
157
+ - request:
158
+ method: delete
159
+ uri: <DOCKER_HOST>/v1.16/containers/a856a3638bc711bab09926a27bc77924a8138d5bbd69fecabf9543106cd01b8b
160
+ body:
161
+ encoding: US-ASCII
162
+ string: ''
163
+ headers:
164
+ User-Agent:
165
+ - Swipely/Docker-API 1.18.0
166
+ Content-Type:
167
+ - text/plain
168
+ response:
169
+ status:
170
+ code: 204
171
+ message:
172
+ headers:
173
+ Date:
174
+ - Thu, 12 Feb 2015 00:54:44 GMT
175
+ body:
176
+ encoding: US-ASCII
177
+ string: ''
178
+ http_version:
179
+ recorded_at: Thu, 12 Feb 2015 00:54:44 GMT
180
+ recorded_with: VCR 2.9.2