docker-client 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. data/.gitignore +1 -0
  2. data/README.md +3 -1
  3. data/Rakefile +18 -0
  4. data/lib/docker/error.rb +1 -0
  5. data/lib/docker/error/image_not_found.rb +7 -0
  6. data/lib/docker/resource/container.rb +10 -0
  7. data/lib/docker/resource/image.rb +43 -0
  8. data/lib/docker/version.rb +1 -1
  9. data/spec/cassettes/Docker_Connection/returns_a_stream.yml +171 -0
  10. data/spec/cassettes/Docker_Connection/returns_a_valid_response_for_a_basic_request.yml +3 -12
  11. data/spec/cassettes/Docker_Connection/returns_a_valid_response_for_get_request.yml +3 -77
  12. data/spec/cassettes/Docker_Connection/returns_a_valid_response_for_post_request.yml +189 -0
  13. data/spec/cassettes/Docker_Connection/returns_status_404_for_non_existent_path.yml +2 -2
  14. data/spec/cassettes/Docker_Connection/sets_given_query_parameters.yml +2 -2
  15. data/spec/cassettes/Docker_Connection/sets_given_request_headers.yml +2 -2
  16. data/spec/cassettes/Docker_Resource_Container/attach/raises_an_exception_for_an_unknown_container.yml +30 -0
  17. data/spec/cassettes/Docker_Resource_Container/changes/inspects_the_container_s_filesystem_changes.yml +210 -0
  18. data/spec/cassettes/Docker_Resource_Container/commit/creates_a_new_image_from_the_container_s_changes.yml +199 -0
  19. data/spec/cassettes/Docker_Resource_Container/commit/raises_an_exception_for_an_unknown_container.yml +31 -0
  20. data/spec/cassettes/Docker_Resource_Container/create/raises_an_exception_when_called_with_invalid_options.yml +2 -2
  21. data/spec/cassettes/Docker_Resource_Container/create/with_many_settings.yml +3 -3
  22. data/spec/cassettes/Docker_Resource_Container/create/with_minimal_settings.yml +3 -3
  23. data/spec/cassettes/Docker_Resource_Container/kill/raises_an_exception_for_an_unknow_container.yml +2 -2
  24. data/spec/cassettes/Docker_Resource_Container/kill/the_container.yml +189 -0
  25. data/spec/cassettes/Docker_Resource_Container/lists/all_running_containers.yml +7 -17
  26. data/spec/cassettes/Docker_Resource_Container/lists/limit_last_created_containers.yml +5 -5
  27. data/spec/cassettes/Docker_Resource_Container/lists/non-running_processes_too.yml +10 -85
  28. data/spec/cassettes/Docker_Resource_Container/lists/processes_before_a_certain_created_container.yml +303 -0
  29. data/spec/cassettes/Docker_Resource_Container/lists/processes_since_a_certain_created_container.yml +217 -0
  30. data/spec/cassettes/Docker_Resource_Container/logs/raises_an_exception_for_an_unknown_container.yml +31 -0
  31. data/spec/cassettes/Docker_Resource_Container/logs/returns_the_stderr_of_a_container.yml +154 -0
  32. data/spec/cassettes/Docker_Resource_Container/logs/returns_the_stdout_of_a_container.yml +154 -0
  33. data/spec/cassettes/Docker_Resource_Container/remove/deletes_the_container.yml +189 -0
  34. data/spec/cassettes/Docker_Resource_Container/remove/raises_an_exception_with_an_invalid_container.yml +2 -2
  35. data/spec/cassettes/Docker_Resource_Container/restarts/raises_an_exception_for_an_unknown_container.yml +2 -2
  36. data/spec/cassettes/Docker_Resource_Container/restarts/the_container.yml +189 -0
  37. data/spec/cassettes/Docker_Resource_Container/shows/the_low_level_details.yml +315 -0
  38. data/spec/cassettes/Docker_Resource_Container/start/brings_a_container_into_state_running.yml +189 -0
  39. data/spec/cassettes/Docker_Resource_Container/start/raises_an_exception_for_an_unknown_container.yml +2 -2
  40. data/spec/cassettes/Docker_Resource_Container/stop/halts_a_container.yml +189 -0
  41. data/spec/cassettes/Docker_Resource_Container/stop/raises_an_exception_for_an_unknown_container.yml +2 -2
  42. data/spec/cassettes/Docker_Resource_Container/wait/blocks_until_the_container_stops.yml +196 -0
  43. data/spec/cassettes/Docker_Resource_Container/wait/raises_an_exception_for_an_unknown_container.yml +2 -2
  44. data/spec/cassettes/Docker_Resource_Image/history/.yml +33 -0
  45. data/spec/cassettes/Docker_Resource_Image/history/size/.yml +33 -0
  46. data/spec/cassettes/Docker_Resource_Image/history/step/.yml +33 -0
  47. data/spec/cassettes/Docker_Resource_Image/list/.yml +44 -0
  48. data/spec/cassettes/Docker_Resource_Image/list/includes_latest_base_image.yml +44 -0
  49. data/spec/cassettes/Docker_Resource_Image/list/size/.yml +44 -0
  50. data/spec/cassettes/Docker_Resource_Image/remove/deletes_the_image.yml +192 -0
  51. data/spec/cassettes/Docker_Resource_Image/remove/raises_an_exception_for_an_unknown_image.yml +31 -0
  52. data/spec/cassettes/Docker_Resource_Image/show/.yml +42 -0
  53. data/spec/cassettes/Docker_Resource_Image/show/raises_an_exception_for_an_unknown_image.yml +31 -0
  54. data/spec/cassettes/Docker_Resource_Image/tag/an_image_into_a_repository.yml +30 -0
  55. data/spec/cassettes/Docker_Resource_Image/tag/raises_an_exception_for_an_unknown_image.yml +31 -0
  56. data/spec/cassettes/test_setup/commit_container.yml +423 -0
  57. data/spec/cassettes/test_setup/create_container__command_/bin/sh_-c_while_true_do_echo_hello_world_sleep_1_done_.yml +33 -0
  58. data/spec/cassettes/test_setup/create_container_connection_post.yml +3 -3
  59. data/spec/cassettes/test_setup/create_container_container_attach.yml +34 -0
  60. data/spec/cassettes/test_setup/create_container_container_changes.yml +3 -3
  61. data/spec/cassettes/test_setup/create_container_container_commit.yml +33 -0
  62. data/spec/cassettes/test_setup/create_container_container_kill.yml +3 -3
  63. data/spec/cassettes/test_setup/create_container_container_lists1.yml +3 -3
  64. data/spec/cassettes/test_setup/create_container_container_lists2.yml +3 -3
  65. data/spec/cassettes/test_setup/create_container_container_logs.yml +3 -3
  66. data/spec/cassettes/test_setup/create_container_container_remove.yml +3 -3
  67. data/spec/cassettes/test_setup/create_container_container_restarts.yml +3 -3
  68. data/spec/cassettes/test_setup/create_container_container_shows.yml +3 -3
  69. data/spec/cassettes/test_setup/create_container_container_start.yml +3 -3
  70. data/spec/cassettes/test_setup/create_container_container_stop.yml +3 -3
  71. data/spec/cassettes/test_setup/create_container_container_wait.yml +3 -3
  72. data/spec/cassettes/test_setup/create_container_test-image.yml +33 -0
  73. data/spec/cassettes/test_setup/create_container_test-returns-a-stream.yml +34 -0
  74. data/spec/cassettes/test_setup/create_container_test-tag.yml +33 -0
  75. data/spec/cassettes/test_setup/delete_container.yml +3727 -0
  76. data/spec/cassettes/test_setup/delete_image.yml +409 -0
  77. data/spec/cassettes/test_setup/start_container.yml +2813 -0
  78. data/spec/cassettes/test_setup/wait_on_container.yml +1080 -0
  79. data/spec/docker/connection_spec.rb +1 -1
  80. data/spec/docker/resource/container_spec.rb +26 -11
  81. data/spec/docker/resource/image_spec.rb +104 -0
  82. data/spec/helpers.rb +31 -2
  83. metadata +55 -2
data/.gitignore CHANGED
@@ -3,6 +3,7 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
+ .env
6
7
  Gemfile.lock
7
8
  InstalledFiles
8
9
  _yardoc
data/README.md CHANGED
@@ -18,7 +18,9 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- So far only the containers resource is supported. The images resource and endpoints in category Mics according to the Docker [Remote API documentation](http://docs.docker.io/en/latest/api/docker_remote_api.html) are not yet implemented.
21
+ **Ready to be used with Docker version [0.4.0](http://get.docker.io/builds/Linux/x86_64/docker-latest.tgz).**
22
+
23
+ So far only the [containers](http://docs.docker.io/en/latest/api/docker_remote_api.html#containers) resource is supported. The images resource and endpoints in category misc according to the Docker [Remote API documentation](http://docs.docker.io/en/latest/api/docker_remote_api.html) are not yet implemented (wip: see [pull request](https://github.com/geku/docker-client/pull/1))
22
24
 
23
25
 
24
26
  ````ruby
data/Rakefile CHANGED
@@ -1,5 +1,6 @@
1
1
  require "bundler/gem_tasks"
2
2
  require 'rspec/core/rake_task'
3
+ require 'docker'
3
4
 
4
5
  RSpec::Core::RakeTask.new(:spec) do |t|
5
6
  # Documentation output
@@ -13,3 +14,20 @@ RSpec::Core::RakeTask.new(:focus) do |t|
13
14
  end
14
15
 
15
16
  task :default => :spec
17
+
18
+ namespace :docker do
19
+ desc "Stop and delete all Docker containers"
20
+ task :cleanup do
21
+ container = Docker::API.new(base_url: 'http://10.0.5.5:4243').containers
22
+ counter = 0
23
+ container.list(all: true).each do |c|
24
+ puts "Delete container #{c['Id']}"
25
+ container.remove(c['Id'])
26
+ counter += 1
27
+ end
28
+
29
+ puts "Total of #{counter} containers deleted"
30
+
31
+ end
32
+ end
33
+
@@ -1,5 +1,6 @@
1
1
  require 'docker/error/internal_server_error'
2
2
  require 'docker/error/container_not_found'
3
+ require 'docker/error/image_not_found'
3
4
  require 'docker/error/not_found_error'
4
5
  require 'docker/error/bad_parameter_error'
5
6
 
@@ -0,0 +1,7 @@
1
+ module Docker
2
+ module Error
3
+ end
4
+ end
5
+
6
+ class Docker::Error::ImageNotFound < StandardError
7
+ end
@@ -37,6 +37,16 @@ class Docker::Resource::Container < Docker::Resource::Base
37
37
  @connection.get("/containers/#{container_id}/changes").body_as_json
38
38
  end
39
39
 
40
+ # TODO default run configuration not supported yet
41
+ def commit(container_id, repository, tag = nil, options = {})
42
+ options[:container] = container_id
43
+ options[:repo] = repository
44
+ options[:tag] = tag if tag
45
+ response = @connection.post("/commit", options)
46
+ raise_if_container_not_found(response.status)
47
+ response.body_as_json
48
+ end
49
+
40
50
  # Returns a stream
41
51
  def export
42
52
 
@@ -5,6 +5,49 @@ end
5
5
 
6
6
  class Docker::Resource::Image < Docker::Resource::Base
7
7
 
8
+ def list(options = {})
9
+ @connection.get('/images/json', options).body_as_json
10
+ end
11
+
12
+ # Inspect an image
13
+ def show(name)
14
+ response = @connection.get("/images/#{name}/json")
15
+ raise_if_image_not_found(response.status)
16
+ response.body_as_json
17
+ end
18
+
19
+ def history(name)
20
+ response = @connection.get("/images/#{name}/history")
21
+ raise_if_image_not_found(response.status)
22
+ response.body_as_json
23
+ end
24
+
25
+
26
+ def tag(name, repository, options = {})
27
+ options = options.merge(repo: repository)
28
+ status = @connection.post("/images/#{name}/tag", options).status
29
+ raise_if_image_not_found(status)
30
+ raise(BadParameterError) if status == 400
31
+ status == 201
32
+ end
33
+
34
+ def remove(name)
35
+ status = @connection.delete("/images/#{name}").status
36
+ raise_if_image_not_found(status)
37
+ status == 204
38
+ end
39
+
40
+ def search(term)
41
+ params = {term: term}
42
+ @connection.get("/images/search", params).body_as_json
43
+ end
44
+
45
+ private
46
+
47
+ def raise_if_image_not_found(status)
48
+ raise(Docker::Error::ImageNotFound) if status == 404
49
+ end
50
+
8
51
  end
9
52
 
10
53
 
@@ -1,3 +1,3 @@
1
1
  module Docker
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -0,0 +1,171 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://10.0.5.5:4243/containers/ae19ed6ad4f6/attach?stdout=1&stream=1
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: !binary |-
14
+ T0s=
15
+ headers:
16
+ !binary "Q29udGVudC1UeXBl":
17
+ - !binary |-
18
+ YXBwbGljYXRpb24vdm5kLmRvY2tlci5yYXctc3RyZWFt
19
+ body:
20
+ encoding: US-ASCII
21
+ string: ''
22
+ http_version:
23
+ recorded_at: Mon, 03 Jun 2013 21:09:37 GMT
24
+ - request:
25
+ method: post
26
+ uri: http://10.0.5.5:4243/containers/d7c4f0a4d3f7/attach?stdout=1&stream=1
27
+ body:
28
+ encoding: US-ASCII
29
+ string: ''
30
+ headers: {}
31
+ response:
32
+ status:
33
+ code: 200
34
+ message: !binary |-
35
+ T0s=
36
+ headers:
37
+ !binary "Q29udGVudC1UeXBl":
38
+ - !binary |-
39
+ YXBwbGljYXRpb24vdm5kLmRvY2tlci5yYXctc3RyZWFt
40
+ body:
41
+ encoding: US-ASCII
42
+ string: ''
43
+ http_version:
44
+ recorded_at: Mon, 03 Jun 2013 21:12:25 GMT
45
+ - request:
46
+ method: post
47
+ uri: http://10.0.5.5:4243/containers/7e0ee7d10b70/attach?stdout=1&stream=1
48
+ body:
49
+ encoding: US-ASCII
50
+ string: ''
51
+ headers: {}
52
+ response:
53
+ status:
54
+ code: 200
55
+ message: !binary |-
56
+ T0s=
57
+ headers:
58
+ !binary "Q29udGVudC1UeXBl":
59
+ - !binary |-
60
+ YXBwbGljYXRpb24vdm5kLmRvY2tlci5yYXctc3RyZWFt
61
+ body:
62
+ encoding: US-ASCII
63
+ string: ''
64
+ http_version:
65
+ recorded_at: Mon, 03 Jun 2013 21:14:41 GMT
66
+ - request:
67
+ method: post
68
+ uri: http://10.0.5.5:4243/containers/38329f467a4c/attach?stdout=1&stream=1
69
+ body:
70
+ encoding: US-ASCII
71
+ string: ''
72
+ headers: {}
73
+ response:
74
+ status:
75
+ code: 200
76
+ message: !binary |-
77
+ T0s=
78
+ headers:
79
+ !binary "Q29udGVudC1UeXBl":
80
+ - !binary |-
81
+ YXBwbGljYXRpb24vdm5kLmRvY2tlci5yYXctc3RyZWFt
82
+ body:
83
+ encoding: US-ASCII
84
+ string: ''
85
+ http_version:
86
+ recorded_at: Mon, 03 Jun 2013 21:16:33 GMT
87
+ - request:
88
+ method: post
89
+ uri: http://10.0.5.5:4243/containers/b3962d5b8de6/attach?stdout=1&stream=1
90
+ body:
91
+ encoding: US-ASCII
92
+ string: ''
93
+ headers: {}
94
+ response:
95
+ status:
96
+ code: 200
97
+ message: !binary |-
98
+ T0s=
99
+ headers:
100
+ !binary "Q29udGVudC1UeXBl":
101
+ - !binary |-
102
+ YXBwbGljYXRpb24vdm5kLmRvY2tlci5yYXctc3RyZWFt
103
+ body:
104
+ encoding: US-ASCII
105
+ string: ''
106
+ http_version:
107
+ recorded_at: Mon, 03 Jun 2013 21:17:13 GMT
108
+ - request:
109
+ method: post
110
+ uri: http://10.0.5.5:4243/containers/2cc41f9cb206/attach?stdout=1&stream=1
111
+ body:
112
+ encoding: US-ASCII
113
+ string: ''
114
+ headers: {}
115
+ response:
116
+ status:
117
+ code: 200
118
+ message: !binary |-
119
+ T0s=
120
+ headers:
121
+ !binary "Q29udGVudC1UeXBl":
122
+ - !binary |-
123
+ YXBwbGljYXRpb24vdm5kLmRvY2tlci5yYXctc3RyZWFt
124
+ body:
125
+ encoding: US-ASCII
126
+ string: ''
127
+ http_version:
128
+ recorded_at: Mon, 03 Jun 2013 21:18:48 GMT
129
+ - request:
130
+ method: post
131
+ uri: http://10.0.5.5:4243/containers/4f092237fdba/attach?stdout=1&stream=1
132
+ body:
133
+ encoding: US-ASCII
134
+ string: ''
135
+ headers: {}
136
+ response:
137
+ status:
138
+ code: 200
139
+ message: !binary |-
140
+ T0s=
141
+ headers:
142
+ !binary "Q29udGVudC1UeXBl":
143
+ - !binary |-
144
+ YXBwbGljYXRpb24vdm5kLmRvY2tlci5yYXctc3RyZWFt
145
+ body:
146
+ encoding: US-ASCII
147
+ string: ''
148
+ http_version:
149
+ recorded_at: Mon, 03 Jun 2013 21:19:06 GMT
150
+ - request:
151
+ method: post
152
+ uri: http://10.0.5.5:4243/containers/6ce0aa6fb8a6/attach?stdout=1&stream=1
153
+ body:
154
+ encoding: US-ASCII
155
+ string: ''
156
+ headers: {}
157
+ response:
158
+ status:
159
+ code: 200
160
+ message: !binary |-
161
+ T0s=
162
+ headers:
163
+ !binary "Q29udGVudC1UeXBl":
164
+ - !binary |-
165
+ YXBwbGljYXRpb24vdm5kLmRvY2tlci5yYXctc3RyZWFt
166
+ body:
167
+ encoding: US-ASCII
168
+ string: ''
169
+ http_version:
170
+ recorded_at: Mon, 03 Jun 2013 21:19:25 GMT
171
+ recorded_with: VCR 2.5.0
@@ -18,23 +18,14 @@ http_interactions:
18
18
  YXBwbGljYXRpb24vanNvbg==
19
19
  !binary "RGF0ZQ==":
20
20
  - !binary |-
21
- U2F0LCAyNSBNYXkgMjAxMyAxNjowNTo0MSBHTVQ=
21
+ TW9uLCAwMyBKdW4gMjAxMyAyMTozNzo1OCBHTVQ=
22
22
  !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
23
23
  - !binary |-
24
24
  Y2h1bmtlZA==
25
25
  body:
26
26
  encoding: ASCII-8BIT
27
27
  string: !binary |-
28
- W3siSWQiOiIwMTkzMzZlMTdkZDNjYjI3MWE5ZjA4ZDg2OTMxMWM5MzAwMTdi
29
- OWE1ZjBiNDBlZjFkYTE1ZjU2YTFlMGE5YzRlIiwiSW1hZ2UiOiJiYXNlOmxh
30
- dGVzdCIsIkNvbW1hbmQiOiIvYmluL3NoIC1jIHdoaWxlIHRydWU7IGRvIGVj
31
- aG8gaGVsbG8gd29ybGQ7IHNsZWVwIDE7IGRvbmUiLCJDcmVhdGVkIjoxMzY5
32
- NDk3MjA1LCJTdGF0dXMiOiJVcCAxMiBtaW51dGVzIiwiUG9ydHMiOiIifSx7
33
- IklkIjoiNjhjZmU1YjJjZTYwMGQ4MGFkY2I0ZmU2NmFkOWMwYzhhYzEyYjhk
34
- OWNhNjhjOWFjZmEyNmU3OGM2ZGZjMzgzNSIsIkltYWdlIjoiYmFzZTpsYXRl
35
- c3QiLCJDb21tYW5kIjoiL2Jpbi9zaCAtYyB3aGlsZSB0cnVlOyBkbyBlY2hv
36
- IGhlbGxvIHdvcmxkOyBzbGVlcCAxOyBkb25lIiwiQ3JlYXRlZCI6MTM2OTQ5
37
- NjY4MywiU3RhdHVzIjoiVXAgMjAgbWludXRlcyIsIlBvcnRzIjoiIn1d
28
+ W10=
38
29
  http_version:
39
- recorded_at: Sat, 25 May 2013 16:05:43 GMT
30
+ recorded_at: Mon, 03 Jun 2013 21:37:58 GMT
40
31
  recorded_with: VCR 2.5.0
@@ -18,88 +18,14 @@ http_interactions:
18
18
  YXBwbGljYXRpb24vanNvbg==
19
19
  !binary "RGF0ZQ==":
20
20
  - !binary |-
21
- U2F0LCAyNSBNYXkgMjAxMyAxNjowNTo0MCBHTVQ=
21
+ TW9uLCAwMyBKdW4gMjAxMyAyMTozNzo1MCBHTVQ=
22
22
  !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
23
23
  - !binary |-
24
24
  Y2h1bmtlZA==
25
25
  body:
26
26
  encoding: ASCII-8BIT
27
27
  string: !binary |-
28
- W3siSWQiOiI1MjZiNWViZWEwZmJhZGZmNjlhOWQ2ZWJjZTc2YjFiODgzZjIy
29
- Y2Y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RlZCI6MTM2OTQ5NjY4Mywi
93
- U3RhdHVzIjoiRXhpdCAwIiwiUG9ydHMiOiIifSx7IklkIjoiNDZjMzBiZTRh
94
- OGVjZTdmN2Y4NDIwZGVlMzljYzYyZDA2YmE1NTQ3MzZmMDZmZDljZjBkZGE2
95
- ODA3YTFkNWY5OCIsIkltYWdlIjoiYmFzZTpsYXRlc3QiLCJDb21tYW5kIjoi
96
- L2Jpbi9zaCAtYyB3aGlsZSB0cnVlOyBkbyBlY2hvIGhlbGxvIHdvcmxkOyBz
97
- bGVlcCAxOyBkb25lIiwiQ3JlYXRlZCI6MTM2OTQ5NTk2OCwiU3RhdHVzIjoi
98
- RXhpdCAwIiwiUG9ydHMiOiIifSx7IklkIjoiOTYyNTYyMTEzOWIwZTM1NzAx
99
- ZDEwMzgyYjY0NDVhZWU5MjkzZTY4YTY5NzMxMThkOWEzNmYzNTAwNDJiNzIw
100
- OCIsIkltYWdlIjoiYmFzZTpsYXRlc3QiLCJDb21tYW5kIjoiZWNobyBoZWxs
101
- byB3b3JsZCIsIkNyZWF0ZWQiOjEzNjk0OTU5NjgsIlN0YXR1cyI6IkV4aXQg
102
- MCIsIlBvcnRzIjoiIn1d
28
+ W10=
103
29
  http_version:
104
- recorded_at: Sat, 25 May 2013 16:05:43 GMT
30
+ recorded_at: Mon, 03 Jun 2013 21:37:50 GMT
105
31
  recorded_with: VCR 2.5.0
@@ -27,4 +27,193 @@ http_interactions:
27
27
  string: !binary ""
28
28
  http_version:
29
29
  recorded_at: Sat, 25 May 2013 16:05:43 GMT
30
+ - request:
31
+ method: post
32
+ uri: http://10.0.5.5:4243/containers/6cbae4b13ca9/start
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ''
36
+ headers: {}
37
+ response:
38
+ status:
39
+ code: 204
40
+ message: !binary |-
41
+ Tm8gQ29udGVudA==
42
+ headers:
43
+ !binary "RGF0ZQ==":
44
+ - !binary |-
45
+ TW9uLCAwMyBKdW4gMjAxMyAyMDo1OTozNyBHTVQ=
46
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
47
+ - !binary |-
48
+ Y2h1bmtlZA==
49
+ !binary "Q29udGVudC1UeXBl":
50
+ - !binary |-
51
+ dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
52
+ body:
53
+ encoding: ASCII-8BIT
54
+ string: !binary ""
55
+ http_version:
56
+ recorded_at: Mon, 03 Jun 2013 20:59:37 GMT
57
+ - request:
58
+ method: post
59
+ uri: http://10.0.5.5:4243/containers/6aa0bb9dbb7d/start
60
+ body:
61
+ encoding: US-ASCII
62
+ string: ''
63
+ headers: {}
64
+ response:
65
+ status:
66
+ code: 204
67
+ message: !binary |-
68
+ Tm8gQ29udGVudA==
69
+ headers:
70
+ !binary "RGF0ZQ==":
71
+ - !binary |-
72
+ TW9uLCAwMyBKdW4gMjAxMyAyMTowNDo0MyBHTVQ=
73
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
74
+ - !binary |-
75
+ Y2h1bmtlZA==
76
+ !binary "Q29udGVudC1UeXBl":
77
+ - !binary |-
78
+ dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
79
+ body:
80
+ encoding: ASCII-8BIT
81
+ string: !binary ""
82
+ http_version:
83
+ recorded_at: Mon, 03 Jun 2013 21:04:42 GMT
84
+ - request:
85
+ method: post
86
+ uri: http://10.0.5.5:4243/containers/480462275567/start
87
+ body:
88
+ encoding: US-ASCII
89
+ string: ''
90
+ headers: {}
91
+ response:
92
+ status:
93
+ code: 204
94
+ message: !binary |-
95
+ Tm8gQ29udGVudA==
96
+ headers:
97
+ !binary "RGF0ZQ==":
98
+ - !binary |-
99
+ TW9uLCAwMyBKdW4gMjAxMyAyMTowOTozNCBHTVQ=
100
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
101
+ - !binary |-
102
+ Y2h1bmtlZA==
103
+ !binary "Q29udGVudC1UeXBl":
104
+ - !binary |-
105
+ dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
106
+ body:
107
+ encoding: ASCII-8BIT
108
+ string: !binary ""
109
+ http_version:
110
+ recorded_at: Mon, 03 Jun 2013 21:09:34 GMT
111
+ - request:
112
+ method: post
113
+ uri: http://10.0.5.5:4243/containers/f38cf6aade96/start
114
+ body:
115
+ encoding: US-ASCII
116
+ string: ''
117
+ headers: {}
118
+ response:
119
+ status:
120
+ code: 204
121
+ message: !binary |-
122
+ Tm8gQ29udGVudA==
123
+ headers:
124
+ !binary "RGF0ZQ==":
125
+ - !binary |-
126
+ TW9uLCAwMyBKdW4gMjAxMyAyMToyMTowNSBHTVQ=
127
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
128
+ - !binary |-
129
+ Y2h1bmtlZA==
130
+ !binary "Q29udGVudC1UeXBl":
131
+ - !binary |-
132
+ dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
133
+ body:
134
+ encoding: ASCII-8BIT
135
+ string: !binary ""
136
+ http_version:
137
+ recorded_at: Mon, 03 Jun 2013 21:21:05 GMT
138
+ - request:
139
+ method: post
140
+ uri: http://10.0.5.5:4243/containers/3dd6e2fd32d4/start
141
+ body:
142
+ encoding: US-ASCII
143
+ string: ''
144
+ headers: {}
145
+ response:
146
+ status:
147
+ code: 204
148
+ message: !binary |-
149
+ Tm8gQ29udGVudA==
150
+ headers:
151
+ !binary "RGF0ZQ==":
152
+ - !binary |-
153
+ TW9uLCAwMyBKdW4gMjAxMyAyMToyNToxNyBHTVQ=
154
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
155
+ - !binary |-
156
+ Y2h1bmtlZA==
157
+ !binary "Q29udGVudC1UeXBl":
158
+ - !binary |-
159
+ dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
160
+ body:
161
+ encoding: ASCII-8BIT
162
+ string: !binary ""
163
+ http_version:
164
+ recorded_at: Mon, 03 Jun 2013 21:25:17 GMT
165
+ - request:
166
+ method: post
167
+ uri: http://10.0.5.5:4243/containers/5689e7d5b039/start
168
+ body:
169
+ encoding: US-ASCII
170
+ string: ''
171
+ headers: {}
172
+ response:
173
+ status:
174
+ code: 204
175
+ message: !binary |-
176
+ Tm8gQ29udGVudA==
177
+ headers:
178
+ !binary "RGF0ZQ==":
179
+ - !binary |-
180
+ TW9uLCAwMyBKdW4gMjAxMyAyMToyNzozNiBHTVQ=
181
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
182
+ - !binary |-
183
+ Y2h1bmtlZA==
184
+ !binary "Q29udGVudC1UeXBl":
185
+ - !binary |-
186
+ dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
187
+ body:
188
+ encoding: ASCII-8BIT
189
+ string: !binary ""
190
+ http_version:
191
+ recorded_at: Mon, 03 Jun 2013 21:27:36 GMT
192
+ - request:
193
+ method: post
194
+ uri: http://10.0.5.5:4243/containers/cafd7750cd30/start
195
+ body:
196
+ encoding: US-ASCII
197
+ string: ''
198
+ headers: {}
199
+ response:
200
+ status:
201
+ code: 204
202
+ message: !binary |-
203
+ Tm8gQ29udGVudA==
204
+ headers:
205
+ !binary "RGF0ZQ==":
206
+ - !binary |-
207
+ TW9uLCAwMyBKdW4gMjAxMyAyMTozNzo1NiBHTVQ=
208
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
209
+ - !binary |-
210
+ Y2h1bmtlZA==
211
+ !binary "Q29udGVudC1UeXBl":
212
+ - !binary |-
213
+ dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
214
+ body:
215
+ encoding: ASCII-8BIT
216
+ string: !binary ""
217
+ http_version:
218
+ recorded_at: Mon, 03 Jun 2013 21:37:56 GMT
30
219
  recorded_with: VCR 2.5.0