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
- TW9uLCAyNyBPY3QgMjAxNCAxNDo0NDo0NiBHTVQ=
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":"8220b807160a789cb4a560ff0dda4bd03e37334b4e4a2f7cea19808c05fbc47d","Warnings":null}
31
-
32
- '
26
+ encoding: UTF-8
27
+ string: |
28
+ {"Id":"b72257d27c26f5630e3e1d4d8aa0dd80903f6458f01b82e10f1761f1d3ea7b95","Warnings":null}
33
29
  http_version:
34
- recorded_at: Mon, 27 Oct 2014 14:44:46 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/8220b807160a789cb4a560ff0dda4bd03e37334b4e4a2f7cea19808c05fbc47d/logs?stdout=1
33
+ uri: "<DOCKER_HOST>/v1.15/containers/b72257d27c26f5630e3e1d4d8aa0dd80903f6458f01b82e10f1761f1d3ea7b95/logs?stdout=1"
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,18 +44,38 @@ http_interactions:
48
44
  code: 200
49
45
  message:
50
46
  headers:
51
- !binary "RGF0ZQ==":
52
- - !binary |-
53
- TW9uLCAyNyBPY3QgMjAxNCAxNDo0NDo0NiBHTVQ=
54
- !binary "Q29udGVudC1MZW5ndGg=":
55
- - !binary |-
56
- MA==
57
- !binary "Q29udGVudC1UeXBl":
58
- - !binary |-
59
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
47
+ Date:
48
+ - Mon, 01 Dec 2014 18:07:38 GMT
49
+ Content-Length:
50
+ - '0'
51
+ Content-Type:
52
+ - text/plain; charset=utf-8
53
+ body:
54
+ encoding: UTF-8
55
+ string: ''
56
+ http_version:
57
+ recorded_at: Mon, 01 Dec 2014 18:07:38 GMT
58
+ - request:
59
+ method: delete
60
+ uri: "<DOCKER_HOST>/v1.15/containers/b72257d27c26f5630e3e1d4d8aa0dd80903f6458f01b82e10f1761f1d3ea7b95"
60
61
  body:
61
62
  encoding: US-ASCII
62
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:38 GMT
76
+ body:
77
+ encoding: UTF-8
78
+ string: ''
63
79
  http_version:
64
- recorded_at: Mon, 27 Oct 2014 14:44:46 GMT
65
- recorded_with: VCR 2.9.2
80
+ recorded_at: Mon, 01 Dec 2014 18:07:38 GMT
81
+ recorded_with: VCR 2.9.3
@@ -2,21 +2,19 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: unix:///var/run/docker.sock/v1.12/build
5
+ uri: "<DOCKER_HOST>/v1.15/build"
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
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/tar
14
14
  Transfer-Encoding:
15
15
  - chunked
16
- X-Registry-Auth:
17
- - e30=
18
16
  X-Registry-Config:
19
- - e30=
17
+ - eyJjb25maWdzIjp7IiI6eyJ1c2VybmFtZSI6IiIsInBhc3N3b3JkIjoiIiwiZW1haWwiOiIifX19
20
18
  response:
21
19
  status:
22
20
  code: 200
@@ -25,30 +23,26 @@ http_interactions:
25
23
  Content-Type:
26
24
  - application/json
27
25
  Date:
28
- - Thu, 26 Jun 2014 19:42:54 GMT
29
- Connection:
30
- - close
31
- Transfer-Encoding:
32
- - ''
26
+ - Mon, 01 Dec 2014 18:07:40 GMT
33
27
  body:
34
28
  encoding: UTF-8
35
- string: "{\"stream\":\"Step 0 : from base\\n\"}\r\n{\"stream\":\" ---\\u003e
36
- b750fe79269d\\n\"}\r\n{\"stream\":\"Step 1 : run printf '#! /bin/sh\\\\nwhile
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
37
31
  true\\\\ndo\\\\ntrue\\\\ndone\\\\n' \\u003e /while \\u0026\\u0026 chmod +x
38
- /while\\n\"}\r\n{\"stream\":\" ---\\u003e Running in 0902d83c4674\\n\"}\r\n{\"stream\":\"
39
- ---\\u003e 41b70f59d9b6\\n\"}\r\n{\"stream\":\"Removing intermediate container
40
- 0902d83c4674\\n\"}\r\n{\"stream\":\"Successfully built 41b70f59d9b6\\n\"}\r\n"
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"
41
35
  http_version:
42
- recorded_at: Thu, 26 Jun 2014 19:42:58 GMT
36
+ recorded_at: Mon, 01 Dec 2014 18:07:40 GMT
43
37
  - request:
44
38
  method: post
45
- uri: unix:///var/run/docker.sock/v1.12/containers/create
39
+ uri: "<DOCKER_HOST>/v1.15/containers/create"
46
40
  body:
47
41
  encoding: UTF-8
48
- string: '{"Image":"41b70f59d9b6","Cmd":["/while"]}'
42
+ string: '{"Image":"07c0eb630a6b","Cmd":["/while"]}'
49
43
  headers:
50
44
  User-Agent:
51
- - Swipely/Docker-API 1.11.2
45
+ - Swipely/Docker-API 1.15.0
52
46
  Content-Type:
53
47
  - application/json
54
48
  response:
@@ -59,26 +53,24 @@ http_interactions:
59
53
  Content-Type:
60
54
  - application/json
61
55
  Date:
62
- - Thu, 26 Jun 2014 19:42:58 GMT
56
+ - Mon, 01 Dec 2014 18:07:41 GMT
63
57
  Content-Length:
64
58
  - '90'
65
- Connection:
66
- - close
67
59
  body:
68
60
  encoding: UTF-8
69
61
  string: |
70
- {"Id":"e3ef53f0c6fc463801a85b9c8d9b2fe348600c2e529c59fa0592da739912224d","Warnings":null}
62
+ {"Id":"7fe08fba1ff6ef5151e7cb9644beca8ec3acab441f281a81a998165f2f0e11c0","Warnings":null}
71
63
  http_version:
72
- recorded_at: Thu, 26 Jun 2014 19:42:58 GMT
64
+ recorded_at: Mon, 01 Dec 2014 18:07:41 GMT
73
65
  - request:
74
66
  method: post
75
- uri: unix:///var/run/docker.sock/v1.12/containers/e3ef53f0c6fc463801a85b9c8d9b2fe348600c2e529c59fa0592da739912224d/start
67
+ uri: "<DOCKER_HOST>/v1.15/containers/7fe08fba1ff6ef5151e7cb9644beca8ec3acab441f281a81a998165f2f0e11c0/start"
76
68
  body:
77
69
  encoding: UTF-8
78
- string: '{}'
70
+ string: "{}"
79
71
  headers:
80
72
  User-Agent:
81
- - Swipely/Docker-API 1.11.2
73
+ - Swipely/Docker-API 1.15.0
82
74
  Content-Type:
83
75
  - application/json
84
76
  response:
@@ -87,23 +79,21 @@ http_interactions:
87
79
  message:
88
80
  headers:
89
81
  Date:
90
- - Thu, 26 Jun 2014 19:42:58 GMT
91
- Connection:
92
- - close
82
+ - Mon, 01 Dec 2014 18:07:41 GMT
93
83
  body:
94
84
  encoding: UTF-8
95
85
  string: ''
96
86
  http_version:
97
- recorded_at: Thu, 26 Jun 2014 19:42:58 GMT
87
+ recorded_at: Mon, 01 Dec 2014 18:07:41 GMT
98
88
  - request:
99
89
  method: get
100
- uri: unix:///var/run/docker.sock/v1.12/containers/e3ef53f0c6fc463801a85b9c8d9b2fe348600c2e529c59fa0592da739912224d/top
90
+ uri: "<DOCKER_HOST>/v1.15/containers/7fe08fba1ff6ef5151e7cb9644beca8ec3acab441f281a81a998165f2f0e11c0/top"
101
91
  body:
102
92
  encoding: US-ASCII
103
93
  string: ''
104
94
  headers:
105
95
  User-Agent:
106
- - Swipely/Docker-API 1.11.2
96
+ - Swipely/Docker-API 1.15.0
107
97
  Content-Type:
108
98
  - text/plain
109
99
  response:
@@ -114,15 +104,88 @@ http_interactions:
114
104
  Content-Type:
115
105
  - application/json
116
106
  Date:
117
- - Thu, 26 Jun 2014 19:42:59 GMT
107
+ - Mon, 01 Dec 2014 18:07:42 GMT
118
108
  Content-Length:
119
- - '147'
120
- Connection:
121
- - close
109
+ - '91'
122
110
  body:
123
111
  encoding: UTF-8
124
112
  string: |
125
- {"Processes":[["root","10678","17600","95","15:42","?","00:00:00","/bin/sh /while"]],"Titles":["UID","PID","PPID","C","STIME","TTY","TIME","CMD"]}
113
+ {"Processes":[["4308","root","{while} /bin/sh /while"]],"Titles":["PID","USER","COMMAND"]}
114
+ http_version:
115
+ recorded_at: Mon, 01 Dec 2014 18:07:42 GMT
116
+ - request:
117
+ method: post
118
+ uri: "<DOCKER_HOST>/v1.15/containers/7fe08fba1ff6ef5151e7cb9644beca8ec3acab441f281a81a998165f2f0e11c0/kill"
119
+ body:
120
+ encoding: US-ASCII
121
+ string: ''
122
+ headers:
123
+ User-Agent:
124
+ - Swipely/Docker-API 1.15.0
125
+ Content-Type:
126
+ - text/plain
127
+ response:
128
+ status:
129
+ code: 204
130
+ message:
131
+ headers:
132
+ Date:
133
+ - Mon, 01 Dec 2014 18:07:42 GMT
134
+ body:
135
+ encoding: UTF-8
136
+ string: ''
137
+ http_version:
138
+ recorded_at: Mon, 01 Dec 2014 18:07:42 GMT
139
+ - request:
140
+ method: delete
141
+ uri: "<DOCKER_HOST>/v1.15/containers/7fe08fba1ff6ef5151e7cb9644beca8ec3acab441f281a81a998165f2f0e11c0"
142
+ body:
143
+ encoding: US-ASCII
144
+ string: ''
145
+ headers:
146
+ User-Agent:
147
+ - Swipely/Docker-API 1.15.0
148
+ Content-Type:
149
+ - text/plain
150
+ response:
151
+ status:
152
+ code: 204
153
+ message:
154
+ headers:
155
+ Date:
156
+ - Mon, 01 Dec 2014 18:07:42 GMT
157
+ body:
158
+ encoding: UTF-8
159
+ string: ''
160
+ http_version:
161
+ recorded_at: Mon, 01 Dec 2014 18:07:42 GMT
162
+ - request:
163
+ method: delete
164
+ uri: "<DOCKER_HOST>/v1.15/images/07c0eb630a6b"
165
+ body:
166
+ encoding: US-ASCII
167
+ string: ''
168
+ headers:
169
+ User-Agent:
170
+ - Swipely/Docker-API 1.15.0
171
+ Content-Type:
172
+ - text/plain
173
+ response:
174
+ status:
175
+ code: 200
176
+ message:
177
+ headers:
178
+ Content-Type:
179
+ - application/json
180
+ Date:
181
+ - Mon, 01 Dec 2014 18:07:43 GMT
182
+ Content-Length:
183
+ - '81'
184
+ body:
185
+ encoding: UTF-8
186
+ string: |-
187
+ [{"Deleted":"07c0eb630a6b22dfcef22162d53c6a7f97247bf817c02e9c04dc9cb2fc1aaecc"}
188
+ ]
126
189
  http_version:
127
- recorded_at: Thu, 26 Jun 2014 19:42:59 GMT
128
- recorded_with: VCR 2.9.2
190
+ recorded_at: Mon, 01 Dec 2014 18:07:42 GMT
191
+ recorded_with: VCR 2.9.3
@@ -2,149 +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:36:48 GMT
22
+ - Mon, 01 Dec 2014 18:08:09 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":"fb761093d72b11437af1fbb405cad2128920db46e8bce79ed13b20f818ee3edc","Warnings":null}
31
- http_version:
32
- recorded_at: Wed, 25 Jun 2014 22:31:11 GMT
28
+ {"Id":"19bfb4541ac3f50d4dbb068f1cbc8f82a20124ade098a6d539a8d56f66bd37e1","Warnings":null}
29
+ http_version:
30
+ recorded_at: Mon, 01 Dec 2014 18:08:09 GMT
33
31
  - request:
34
32
  method: post
35
- uri: unix:///var/run/docker.sock/v1.12/containers/fb761093d72b11437af1fbb405cad2128920db46e8bce79ed13b20f818ee3edc/start
33
+ uri: "<DOCKER_HOST>/v1.15/containers/19bfb4541ac3f50d4dbb068f1cbc8f82a20124ade098a6d539a8d56f66bd37e1/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:36:48 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:10 GMT
57
49
  body:
58
50
  encoding: UTF-8
59
51
  string: ''
60
- http_version:
61
- recorded_at: Wed, 25 Jun 2014 22:31:11 GMT
52
+ http_version:
53
+ recorded_at: Mon, 01 Dec 2014 18:08:10 GMT
62
54
  - request:
63
55
  method: post
64
- uri: unix:///var/run/docker.sock/v1.12/containers/fb761093d72b11437af1fbb405cad2128920db46e8bce79ed13b20f818ee3edc/pause
56
+ uri: "<DOCKER_HOST>/v1.15/containers/19bfb4541ac3f50d4dbb068f1cbc8f82a20124ade098a6d539a8d56f66bd37e1/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:36:48 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:10 GMT
86
72
  body:
87
73
  encoding: UTF-8
88
74
  string: ''
89
- http_version:
90
- recorded_at: Wed, 25 Jun 2014 22:31:11 GMT
75
+ http_version:
76
+ recorded_at: Mon, 01 Dec 2014 18:08:10 GMT
91
77
  - request:
92
78
  method: post
93
- uri: unix:///var/run/docker.sock/v1.12/containers/fb761093d72b11437af1fbb405cad2128920db46e8bce79ed13b20f818ee3edc/unpause
79
+ uri: "<DOCKER_HOST>/v1.15/containers/19bfb4541ac3f50d4dbb068f1cbc8f82a20124ade098a6d539a8d56f66bd37e1/unpause"
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: 204
105
- message:
91
+ message:
106
92
  headers:
107
93
  Date:
108
- - Wed, 25 Jun 2014 20:36:48 GMT
109
- Content-Length:
110
- - '0'
111
- Content-Type:
112
- - text/plain; charset=utf-8
113
- Connection:
114
- - close
94
+ - Mon, 01 Dec 2014 18:08:10 GMT
115
95
  body:
116
96
  encoding: UTF-8
117
97
  string: ''
118
- http_version:
119
- recorded_at: Wed, 25 Jun 2014 22:31:11 GMT
98
+ http_version:
99
+ recorded_at: Mon, 01 Dec 2014 18:08:10 GMT
120
100
  - request:
121
101
  method: get
122
- uri: unix:///var/run/docker.sock/v1.12/containers/fb761093d72b11437af1fbb405cad2128920db46e8bce79ed13b20f818ee3edc/json
102
+ uri: "<DOCKER_HOST>/v1.15/containers/19bfb4541ac3f50d4dbb068f1cbc8f82a20124ade098a6d539a8d56f66bd37e1/json"
123
103
  body:
124
104
  encoding: US-ASCII
125
105
  string: ''
126
106
  headers:
127
107
  User-Agent:
128
- - Swipely/Docker-API 1.11.2
108
+ - Swipely/Docker-API 1.15.0
129
109
  Content-Type:
130
110
  - text/plain
131
111
  response:
132
112
  status:
133
113
  code: 200
134
- message:
114
+ message:
135
115
  headers:
136
116
  Content-Type:
137
117
  - application/json
138
118
  Date:
139
- - Wed, 25 Jun 2014 20:36:48 GMT
119
+ - Mon, 01 Dec 2014 18:08:10 GMT
140
120
  Content-Length:
141
- - '1614'
142
- Connection:
143
- - close
121
+ - '1889'
144
122
  body:
145
123
  encoding: UTF-8
146
124
  string: |
147
- {"Args":["50"],"Config":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":["sleep","50"],"CpuShares":0,"Cpuset":"","Domainname":"","Entrypoint":null,"Env":null,"ExposedPorts":null,"Hostname":"fb761093d72b","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:36:48.80485791Z","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/fb761093d72b11437af1fbb405cad2128920db46e8bce79ed13b20f818ee3edc/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/fb761093d72b11437af1fbb405cad2128920db46e8bce79ed13b20f818ee3edc/hosts","Id":"fb761093d72b11437af1fbb405cad2128920db46e8bce79ed13b20f818ee3edc","Image":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","MountLabel":"","Name":"/stupefied_feynman","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","IPAddress":"172.17.0.53","IPPrefixLen":16,"PortMapping":null,"Ports":{}},"Path":"sleep","ProcessLabel":"","ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/fb761093d72b11437af1fbb405cad2128920db46e8bce79ed13b20f818ee3edc/resolv.conf","State":{"ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","Paused":false,"Pid":12100,"Running":true,"StartedAt":"2014-06-25T20:36:48.92517516Z"},"Volumes":{},"VolumesRW":{}}
148
- http_version:
149
- recorded_at: Wed, 25 Jun 2014 22:31:11 GMT
150
- recorded_with: VCR 2.9.2
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":{}}
126
+ http_version:
127
+ recorded_at: Mon, 01 Dec 2014 18:08:10 GMT
128
+ - request:
129
+ method: post
130
+ uri: "<DOCKER_HOST>/v1.15/containers/19bfb4541ac3f50d4dbb068f1cbc8f82a20124ade098a6d539a8d56f66bd37e1/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:10 GMT
146
+ body:
147
+ encoding: UTF-8
148
+ string: ''
149
+ http_version:
150
+ recorded_at: Mon, 01 Dec 2014 18:08:10 GMT
151
+ - request:
152
+ method: delete
153
+ uri: "<DOCKER_HOST>/v1.15/containers/19bfb4541ac3f50d4dbb068f1cbc8f82a20124ade098a6d539a8d56f66bd37e1"
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:10 GMT
169
+ body:
170
+ encoding: UTF-8
171
+ string: ''
172
+ http_version:
173
+ recorded_at: Mon, 01 Dec 2014 18:08:10 GMT
174
+ recorded_with: VCR 2.9.3