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.
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":"echo hello","Image":"debian:wheezy"}'
8
+ string: ! '{"Cmd":"echo hello","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:07:38 GMT
22
+ - Thu, 12 Feb 2015 00:53:25 GMT
23
23
  Content-Length:
24
24
  - '90'
25
25
  body:
26
- encoding: UTF-8
27
- string: |
28
- {"Id":"b72257d27c26f5630e3e1d4d8aa0dd80903f6458f01b82e10f1761f1d3ea7b95","Warnings":null}
26
+ encoding: US-ASCII
27
+ string: ! '{"Id":"598c1c2c0ad657aed31bcae3a7071ef356f5ab4010cce7cf8ee5f87798acaef8","Warnings":null}
28
+
29
+ '
29
30
  http_version:
30
- recorded_at: Mon, 01 Dec 2014 18:07:38 GMT
31
+ recorded_at: Thu, 12 Feb 2015 00:53:25 GMT
31
32
  - request:
32
33
  method: get
33
- uri: "<DOCKER_HOST>/v1.15/containers/b72257d27c26f5630e3e1d4d8aa0dd80903f6458f01b82e10f1761f1d3ea7b95/logs?stdout=1"
34
+ uri: <DOCKER_HOST>/v1.16/containers/598c1c2c0ad657aed31bcae3a7071ef356f5ab4010cce7cf8ee5f87798acaef8/logs?stdout=1
34
35
  body:
35
36
  encoding: US-ASCII
36
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
  - text/plain
42
43
  response:
@@ -45,25 +46,25 @@ http_interactions:
45
46
  message:
46
47
  headers:
47
48
  Date:
48
- - Mon, 01 Dec 2014 18:07:38 GMT
49
+ - Thu, 12 Feb 2015 00:53:25 GMT
49
50
  Content-Length:
50
51
  - '0'
51
52
  Content-Type:
52
53
  - text/plain; charset=utf-8
53
54
  body:
54
- encoding: UTF-8
55
+ encoding: US-ASCII
55
56
  string: ''
56
57
  http_version:
57
- recorded_at: Mon, 01 Dec 2014 18:07:38 GMT
58
+ recorded_at: Thu, 12 Feb 2015 00:53:25 GMT
58
59
  - request:
59
60
  method: delete
60
- uri: "<DOCKER_HOST>/v1.15/containers/b72257d27c26f5630e3e1d4d8aa0dd80903f6458f01b82e10f1761f1d3ea7b95"
61
+ uri: <DOCKER_HOST>/v1.16/containers/598c1c2c0ad657aed31bcae3a7071ef356f5ab4010cce7cf8ee5f87798acaef8
61
62
  body:
62
63
  encoding: US-ASCII
63
64
  string: ''
64
65
  headers:
65
66
  User-Agent:
66
- - Swipely/Docker-API 1.15.0
67
+ - Swipely/Docker-API 1.18.0
67
68
  Content-Type:
68
69
  - text/plain
69
70
  response:
@@ -72,10 +73,10 @@ http_interactions:
72
73
  message:
73
74
  headers:
74
75
  Date:
75
- - Mon, 01 Dec 2014 18:07:38 GMT
76
+ - Thu, 12 Feb 2015 00:53:26 GMT
76
77
  body:
77
- encoding: UTF-8
78
+ encoding: US-ASCII
78
79
  string: ''
79
80
  http_version:
80
- recorded_at: Mon, 01 Dec 2014 18:07:38 GMT
81
- recorded_with: VCR 2.9.3
81
+ recorded_at: Thu, 12 Feb 2015 00:53:26 GMT
82
+ 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/build"
5
+ uri: <DOCKER_HOST>/v1.16/build
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
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/tar
14
14
  Transfer-Encoding:
@@ -23,26 +23,26 @@ http_interactions:
23
23
  Content-Type:
24
24
  - application/json
25
25
  Date:
26
- - Mon, 01 Dec 2014 18:07:40 GMT
26
+ - Thu, 12 Feb 2015 00:53:32 GMT
27
27
  body:
28
- encoding: UTF-8
29
- string: "{\"stream\":\"Step 0 : FROM debian:wheezy\\n\"}\r\n{\"stream\":\" ---\\u003e
30
- f6fab3b798be\\n\"}\r\n{\"stream\":\"Step 1 : RUN printf '#! /bin/sh\\\\nwhile
28
+ encoding: US-ASCII
29
+ string: ! "{\"stream\":\"Step 0 : FROM debian:wheezy\\n\"}\r\n{\"stream\":\"
30
+ ---\\u003e c90d655b99b2\\n\"}\r\n{\"stream\":\"Step 1 : RUN printf '#! /bin/sh\\\\nwhile
31
31
  true\\\\ndo\\\\ntrue\\\\ndone\\\\n' \\u003e /while \\u0026\\u0026 chmod +x
32
- /while\\n\"}\r\n{\"stream\":\" ---\\u003e Running in a34c1befdcb5\\n\"}\r\n{\"stream\":\"
33
- ---\\u003e 07c0eb630a6b\\n\"}\r\n{\"stream\":\"Removing intermediate container
34
- a34c1befdcb5\\n\"}\r\n{\"stream\":\"Successfully built 07c0eb630a6b\\n\"}\r\n"
32
+ /while\\n\"}\r\n{\"stream\":\" ---\\u003e Running in 191d9cbe06cf\\n\"}\r\n{\"stream\":\"
33
+ ---\\u003e 89c657420303\\n\"}\r\n{\"stream\":\"Removing intermediate container
34
+ 191d9cbe06cf\\n\"}\r\n{\"stream\":\"Successfully built 89c657420303\\n\"}\r\n"
35
35
  http_version:
36
- recorded_at: Mon, 01 Dec 2014 18:07:40 GMT
36
+ recorded_at: Thu, 12 Feb 2015 00:53:34 GMT
37
37
  - request:
38
38
  method: post
39
- uri: "<DOCKER_HOST>/v1.15/containers/create"
39
+ uri: <DOCKER_HOST>/v1.16/containers/create
40
40
  body:
41
41
  encoding: UTF-8
42
- string: '{"Image":"07c0eb630a6b","Cmd":["/while"]}'
42
+ string: ! '{"Image":"89c657420303","Cmd":["/while"]}'
43
43
  headers:
44
44
  User-Agent:
45
- - Swipely/Docker-API 1.15.0
45
+ - Swipely/Docker-API 1.18.0
46
46
  Content-Type:
47
47
  - application/json
48
48
  response:
@@ -53,24 +53,25 @@ http_interactions:
53
53
  Content-Type:
54
54
  - application/json
55
55
  Date:
56
- - Mon, 01 Dec 2014 18:07:41 GMT
56
+ - Thu, 12 Feb 2015 00:53:35 GMT
57
57
  Content-Length:
58
58
  - '90'
59
59
  body:
60
- encoding: UTF-8
61
- string: |
62
- {"Id":"7fe08fba1ff6ef5151e7cb9644beca8ec3acab441f281a81a998165f2f0e11c0","Warnings":null}
60
+ encoding: US-ASCII
61
+ string: ! '{"Id":"75107c91ead45043299b32ef1911b4152b7cc75325288ecbdb0515431f7d9014","Warnings":null}
62
+
63
+ '
63
64
  http_version:
64
- recorded_at: Mon, 01 Dec 2014 18:07:41 GMT
65
+ recorded_at: Thu, 12 Feb 2015 00:53:35 GMT
65
66
  - request:
66
67
  method: post
67
- uri: "<DOCKER_HOST>/v1.15/containers/7fe08fba1ff6ef5151e7cb9644beca8ec3acab441f281a81a998165f2f0e11c0/start"
68
+ uri: <DOCKER_HOST>/v1.16/containers/75107c91ead45043299b32ef1911b4152b7cc75325288ecbdb0515431f7d9014/start
68
69
  body:
69
70
  encoding: UTF-8
70
- string: "{}"
71
+ string: ! '{}'
71
72
  headers:
72
73
  User-Agent:
73
- - Swipely/Docker-API 1.15.0
74
+ - Swipely/Docker-API 1.18.0
74
75
  Content-Type:
75
76
  - application/json
76
77
  response:
@@ -79,21 +80,21 @@ http_interactions:
79
80
  message:
80
81
  headers:
81
82
  Date:
82
- - Mon, 01 Dec 2014 18:07:41 GMT
83
+ - Thu, 12 Feb 2015 00:53:35 GMT
83
84
  body:
84
- encoding: UTF-8
85
+ encoding: US-ASCII
85
86
  string: ''
86
87
  http_version:
87
- recorded_at: Mon, 01 Dec 2014 18:07:41 GMT
88
+ recorded_at: Thu, 12 Feb 2015 00:53:35 GMT
88
89
  - request:
89
90
  method: get
90
- uri: "<DOCKER_HOST>/v1.15/containers/7fe08fba1ff6ef5151e7cb9644beca8ec3acab441f281a81a998165f2f0e11c0/top"
91
+ uri: <DOCKER_HOST>/v1.16/containers/75107c91ead45043299b32ef1911b4152b7cc75325288ecbdb0515431f7d9014/top
91
92
  body:
92
93
  encoding: US-ASCII
93
94
  string: ''
94
95
  headers:
95
96
  User-Agent:
96
- - Swipely/Docker-API 1.15.0
97
+ - Swipely/Docker-API 1.18.0
97
98
  Content-Type:
98
99
  - text/plain
99
100
  response:
@@ -104,24 +105,26 @@ http_interactions:
104
105
  Content-Type:
105
106
  - application/json
106
107
  Date:
107
- - Mon, 01 Dec 2014 18:07:42 GMT
108
+ - Thu, 12 Feb 2015 00:53:36 GMT
108
109
  Content-Length:
109
- - '91'
110
+ - '144'
110
111
  body:
111
- encoding: UTF-8
112
- string: |
113
- {"Processes":[["4308","root","{while} /bin/sh /while"]],"Titles":["PID","USER","COMMAND"]}
112
+ encoding: US-ASCII
113
+ string: ! '{"Processes":[["root","9409","269","99","19:53","?","00:00:01","/bin/sh
114
+ /while"]],"Titles":["UID","PID","PPID","C","STIME","TTY","TIME","CMD"]}
115
+
116
+ '
114
117
  http_version:
115
- recorded_at: Mon, 01 Dec 2014 18:07:42 GMT
118
+ recorded_at: Thu, 12 Feb 2015 00:53:36 GMT
116
119
  - request:
117
120
  method: post
118
- uri: "<DOCKER_HOST>/v1.15/containers/7fe08fba1ff6ef5151e7cb9644beca8ec3acab441f281a81a998165f2f0e11c0/kill"
121
+ uri: <DOCKER_HOST>/v1.16/containers/75107c91ead45043299b32ef1911b4152b7cc75325288ecbdb0515431f7d9014/kill
119
122
  body:
120
123
  encoding: US-ASCII
121
124
  string: ''
122
125
  headers:
123
126
  User-Agent:
124
- - Swipely/Docker-API 1.15.0
127
+ - Swipely/Docker-API 1.18.0
125
128
  Content-Type:
126
129
  - text/plain
127
130
  response:
@@ -130,21 +133,21 @@ http_interactions:
130
133
  message:
131
134
  headers:
132
135
  Date:
133
- - Mon, 01 Dec 2014 18:07:42 GMT
136
+ - Thu, 12 Feb 2015 00:53:36 GMT
134
137
  body:
135
- encoding: UTF-8
138
+ encoding: US-ASCII
136
139
  string: ''
137
140
  http_version:
138
- recorded_at: Mon, 01 Dec 2014 18:07:42 GMT
141
+ recorded_at: Thu, 12 Feb 2015 00:53:36 GMT
139
142
  - request:
140
143
  method: delete
141
- uri: "<DOCKER_HOST>/v1.15/containers/7fe08fba1ff6ef5151e7cb9644beca8ec3acab441f281a81a998165f2f0e11c0"
144
+ uri: <DOCKER_HOST>/v1.16/containers/75107c91ead45043299b32ef1911b4152b7cc75325288ecbdb0515431f7d9014
142
145
  body:
143
146
  encoding: US-ASCII
144
147
  string: ''
145
148
  headers:
146
149
  User-Agent:
147
- - Swipely/Docker-API 1.15.0
150
+ - Swipely/Docker-API 1.18.0
148
151
  Content-Type:
149
152
  - text/plain
150
153
  response:
@@ -153,21 +156,21 @@ http_interactions:
153
156
  message:
154
157
  headers:
155
158
  Date:
156
- - Mon, 01 Dec 2014 18:07:42 GMT
159
+ - Thu, 12 Feb 2015 00:53:37 GMT
157
160
  body:
158
- encoding: UTF-8
161
+ encoding: US-ASCII
159
162
  string: ''
160
163
  http_version:
161
- recorded_at: Mon, 01 Dec 2014 18:07:42 GMT
164
+ recorded_at: Thu, 12 Feb 2015 00:53:37 GMT
162
165
  - request:
163
166
  method: delete
164
- uri: "<DOCKER_HOST>/v1.15/images/07c0eb630a6b"
167
+ uri: <DOCKER_HOST>/v1.16/images/89c657420303
165
168
  body:
166
169
  encoding: US-ASCII
167
170
  string: ''
168
171
  headers:
169
172
  User-Agent:
170
- - Swipely/Docker-API 1.15.0
173
+ - Swipely/Docker-API 1.18.0
171
174
  Content-Type:
172
175
  - text/plain
173
176
  response:
@@ -178,14 +181,14 @@ http_interactions:
178
181
  Content-Type:
179
182
  - application/json
180
183
  Date:
181
- - Mon, 01 Dec 2014 18:07:43 GMT
184
+ - Thu, 12 Feb 2015 00:53:37 GMT
182
185
  Content-Length:
183
186
  - '81'
184
187
  body:
185
- encoding: UTF-8
186
- string: |-
187
- [{"Deleted":"07c0eb630a6b22dfcef22162d53c6a7f97247bf817c02e9c04dc9cb2fc1aaecc"}
188
- ]
188
+ encoding: US-ASCII
189
+ string: ! '[{"Deleted":"89c657420303760b4bc8e0df04c241d9a606a9ff5e9740d184442e21071b4ac0"}
190
+
191
+ ]'
189
192
  http_version:
190
- recorded_at: Mon, 01 Dec 2014 18:07:42 GMT
191
- recorded_with: VCR 2.9.3
193
+ recorded_at: Thu, 12 Feb 2015 00:53:37 GMT
194
+ 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","50"],"Image":"debian:wheezy"}'
8
+ string: ! '{"Cmd":["sleep","50"],"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:09 GMT
22
+ - Thu, 12 Feb 2015 00:54:12 GMT
23
23
  Content-Length:
24
24
  - '90'
25
25
  body:
26
- encoding: UTF-8
27
- string: |
28
- {"Id":"19bfb4541ac3f50d4dbb068f1cbc8f82a20124ade098a6d539a8d56f66bd37e1","Warnings":null}
26
+ encoding: US-ASCII
27
+ string: ! '{"Id":"dda367ded99d0fbf02ca9b832432de993c1477aaeb2b610b18b8e94ca23a70c8","Warnings":null}
28
+
29
+ '
29
30
  http_version:
30
- recorded_at: Mon, 01 Dec 2014 18:08:09 GMT
31
+ recorded_at: Thu, 12 Feb 2015 00:54:12 GMT
31
32
  - request:
32
33
  method: post
33
- uri: "<DOCKER_HOST>/v1.15/containers/19bfb4541ac3f50d4dbb068f1cbc8f82a20124ade098a6d539a8d56f66bd37e1/start"
34
+ uri: <DOCKER_HOST>/v1.16/containers/dda367ded99d0fbf02ca9b832432de993c1477aaeb2b610b18b8e94ca23a70c8/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:10 GMT
49
+ - Thu, 12 Feb 2015 00:54:12 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:10 GMT
54
+ recorded_at: Thu, 12 Feb 2015 00:54:12 GMT
54
55
  - request:
55
56
  method: post
56
- uri: "<DOCKER_HOST>/v1.15/containers/19bfb4541ac3f50d4dbb068f1cbc8f82a20124ade098a6d539a8d56f66bd37e1/pause"
57
+ uri: <DOCKER_HOST>/v1.16/containers/dda367ded99d0fbf02ca9b832432de993c1477aaeb2b610b18b8e94ca23a70c8/pause
57
58
  body:
58
59
  encoding: US-ASCII
59
60
  string: ''
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
  - text/plain
65
66
  response:
@@ -68,21 +69,21 @@ http_interactions:
68
69
  message:
69
70
  headers:
70
71
  Date:
71
- - Mon, 01 Dec 2014 18:08:10 GMT
72
+ - Thu, 12 Feb 2015 00:54:12 GMT
72
73
  body:
73
- encoding: UTF-8
74
+ encoding: US-ASCII
74
75
  string: ''
75
76
  http_version:
76
- recorded_at: Mon, 01 Dec 2014 18:08:10 GMT
77
+ recorded_at: Thu, 12 Feb 2015 00:54:12 GMT
77
78
  - request:
78
79
  method: post
79
- uri: "<DOCKER_HOST>/v1.15/containers/19bfb4541ac3f50d4dbb068f1cbc8f82a20124ade098a6d539a8d56f66bd37e1/unpause"
80
+ uri: <DOCKER_HOST>/v1.16/containers/dda367ded99d0fbf02ca9b832432de993c1477aaeb2b610b18b8e94ca23a70c8/unpause
80
81
  body:
81
82
  encoding: US-ASCII
82
83
  string: ''
83
84
  headers:
84
85
  User-Agent:
85
- - Swipely/Docker-API 1.15.0
86
+ - Swipely/Docker-API 1.18.0
86
87
  Content-Type:
87
88
  - text/plain
88
89
  response:
@@ -91,21 +92,21 @@ http_interactions:
91
92
  message:
92
93
  headers:
93
94
  Date:
94
- - Mon, 01 Dec 2014 18:08:10 GMT
95
+ - Thu, 12 Feb 2015 00:54:12 GMT
95
96
  body:
96
- encoding: UTF-8
97
+ encoding: US-ASCII
97
98
  string: ''
98
99
  http_version:
99
- recorded_at: Mon, 01 Dec 2014 18:08:10 GMT
100
+ recorded_at: Thu, 12 Feb 2015 00:54:12 GMT
100
101
  - request:
101
102
  method: get
102
- uri: "<DOCKER_HOST>/v1.15/containers/19bfb4541ac3f50d4dbb068f1cbc8f82a20124ade098a6d539a8d56f66bd37e1/json"
103
+ uri: <DOCKER_HOST>/v1.16/containers/dda367ded99d0fbf02ca9b832432de993c1477aaeb2b610b18b8e94ca23a70c8/json
103
104
  body:
104
105
  encoding: US-ASCII
105
106
  string: ''
106
107
  headers:
107
108
  User-Agent:
108
- - Swipely/Docker-API 1.15.0
109
+ - Swipely/Docker-API 1.18.0
109
110
  Content-Type:
110
111
  - text/plain
111
112
  response:
@@ -116,24 +117,25 @@ http_interactions:
116
117
  Content-Type:
117
118
  - application/json
118
119
  Date:
119
- - Mon, 01 Dec 2014 18:08:10 GMT
120
+ - Thu, 12 Feb 2015 00:54:12 GMT
120
121
  Content-Length:
121
- - '1889'
122
+ - '1929'
122
123
  body:
123
- encoding: UTF-8
124
- string: |
125
- {"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":"19bfb4541ac3","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:09.655598099Z","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/19bfb4541ac3f50d4dbb068f1cbc8f82a20124ade098a6d539a8d56f66bd37e1/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/19bfb4541ac3f50d4dbb068f1cbc8f82a20124ade098a6d539a8d56f66bd37e1/hosts","Id":"19bfb4541ac3f50d4dbb068f1cbc8f82a20124ade098a6d539a8d56f66bd37e1","Image":"f6fab3b798be3174f45aa1eb731f8182705555f89c9026d8c1ef230cbf8301dd","MountLabel":"","Name":"/nostalgic_bell","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","IPAddress":"172.17.0.201","IPPrefixLen":16,"MacAddress":"02:42:ac:11:00:c9","PortMapping":null,"Ports":{}},"Path":"sleep","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/19bfb4541ac3f50d4dbb068f1cbc8f82a20124ade098a6d539a8d56f66bd37e1/resolv.conf","State":{"ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","Paused":false,"Pid":4497,"Restarting":false,"Running":true,"StartedAt":"2014-12-01T18:08:10.199040476Z"},"Volumes":{},"VolumesRW":{}}
124
+ encoding: US-ASCII
125
+ string: ! '{"AppArmorProfile":"","Args":["50"],"Config":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":["sleep","50"],"CpuShares":0,"Cpuset":"","Domainname":"","Entrypoint":null,"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"],"ExposedPorts":null,"Hostname":"dda367ded99d","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:54:12.095269414Z","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":"/var/lib/docker/containers/dda367ded99d0fbf02ca9b832432de993c1477aaeb2b610b18b8e94ca23a70c8/hostname","HostsPath":"/var/lib/docker/containers/dda367ded99d0fbf02ca9b832432de993c1477aaeb2b610b18b8e94ca23a70c8/hosts","Id":"dda367ded99d0fbf02ca9b832432de993c1477aaeb2b610b18b8e94ca23a70c8","Image":"c90d655b99b2ec5b7e94d38c87f92dce015c17a313caeaae0e980d9b9bed8444","MountLabel":"","Name":"/lonely_hodgkin","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","IPAddress":"172.17.0.74","IPPrefixLen":16,"MacAddress":"02:42:ac:11:00:4a","PortMapping":null,"Ports":{}},"Path":"sleep","ProcessLabel":"","ResolvConfPath":"/var/lib/docker/containers/dda367ded99d0fbf02ca9b832432de993c1477aaeb2b610b18b8e94ca23a70c8/resolv.conf","State":{"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":10476,"Restarting":false,"Running":true,"StartedAt":"2015-02-12T00:54:12.48172734Z"},"Volumes":{},"VolumesRW":{}}
126
+
127
+ '
126
128
  http_version:
127
- recorded_at: Mon, 01 Dec 2014 18:08:10 GMT
129
+ recorded_at: Thu, 12 Feb 2015 00:54:12 GMT
128
130
  - request:
129
131
  method: post
130
- uri: "<DOCKER_HOST>/v1.15/containers/19bfb4541ac3f50d4dbb068f1cbc8f82a20124ade098a6d539a8d56f66bd37e1/kill"
132
+ uri: <DOCKER_HOST>/v1.16/containers/dda367ded99d0fbf02ca9b832432de993c1477aaeb2b610b18b8e94ca23a70c8/kill
131
133
  body:
132
134
  encoding: US-ASCII
133
135
  string: ''
134
136
  headers:
135
137
  User-Agent:
136
- - Swipely/Docker-API 1.15.0
138
+ - Swipely/Docker-API 1.18.0
137
139
  Content-Type:
138
140
  - text/plain
139
141
  response:
@@ -142,21 +144,21 @@ http_interactions:
142
144
  message:
143
145
  headers:
144
146
  Date:
145
- - Mon, 01 Dec 2014 18:08:10 GMT
147
+ - Thu, 12 Feb 2015 00:54:12 GMT
146
148
  body:
147
- encoding: UTF-8
149
+ encoding: US-ASCII
148
150
  string: ''
149
151
  http_version:
150
- recorded_at: Mon, 01 Dec 2014 18:08:10 GMT
152
+ recorded_at: Thu, 12 Feb 2015 00:54:12 GMT
151
153
  - request:
152
154
  method: delete
153
- uri: "<DOCKER_HOST>/v1.15/containers/19bfb4541ac3f50d4dbb068f1cbc8f82a20124ade098a6d539a8d56f66bd37e1"
155
+ uri: <DOCKER_HOST>/v1.16/containers/dda367ded99d0fbf02ca9b832432de993c1477aaeb2b610b18b8e94ca23a70c8
154
156
  body:
155
157
  encoding: US-ASCII
156
158
  string: ''
157
159
  headers:
158
160
  User-Agent:
159
- - Swipely/Docker-API 1.15.0
161
+ - Swipely/Docker-API 1.18.0
160
162
  Content-Type:
161
163
  - text/plain
162
164
  response:
@@ -165,10 +167,10 @@ http_interactions:
165
167
  message:
166
168
  headers:
167
169
  Date:
168
- - Mon, 01 Dec 2014 18:08:10 GMT
170
+ - Thu, 12 Feb 2015 00:54:13 GMT
169
171
  body:
170
- encoding: UTF-8
172
+ encoding: US-ASCII
171
173
  string: ''
172
174
  http_version:
173
- recorded_at: Mon, 01 Dec 2014 18:08:10 GMT
174
- recorded_with: VCR 2.9.3
175
+ recorded_at: Thu, 12 Feb 2015 00:54:13 GMT
176
+ recorded_with: VCR 2.9.2