docker-api 1.22.4 → 1.23.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc88282f3449c4fb8e6affac2797c2ea3cb86523
4
- data.tar.gz: 1d9ac75e3edfa48cd2d4b74a7d0ff3d0e039b6c2
3
+ metadata.gz: fab8042f6b472f3aee3283d18c822fe3b9e7e35d
4
+ data.tar.gz: df6af05cba4552155fc735acd2d1754f8c088ac9
5
5
  SHA512:
6
- metadata.gz: d3a5bdadf4e241a23f65749cefb3e54536cda2b66de08edcc9335500f0471fee0570b9718fbe0002f951b26706ebe3eb35e4e3261034dff799aa80e924f9c22a
7
- data.tar.gz: 41e5eb201edff3a670448223a1edc8ec5c5ee919ecc06ab04c1317d67b07e27f71b4215e75fb01de64695283073eb7188f1434ff8d7aac99a409b4adbf1840e2
6
+ metadata.gz: aa04e4b157cd1a0e8b2cc881dfd59f4e754cb95dfb89b0cd304b33d3082359982d4131b1e7136edde559351452267c93992fa18dd64664f3daec485556d5fefe
7
+ data.tar.gz: c7414e392a8a770888a5c3a44908a732dec432603c0466482b6d07ca4e1935f156ea200f912f75652397625439b4dbc348309444f834db0a39f6f6069c873883
data/.gitignore CHANGED
@@ -3,3 +3,4 @@
3
3
  *.gem
4
4
  Gemfile.lock
5
5
  coverage/
6
+ .ruby-*
@@ -1,4 +1,5 @@
1
1
  sudo: false
2
+ cache: bundler
2
3
  language: ruby
3
4
  rvm:
4
5
  - 1.9.2
@@ -6,4 +7,3 @@ rvm:
6
7
  - 2.0
7
8
  - 2.1
8
9
  - 2.2
9
- script: bundle exec rake
data/README.md CHANGED
@@ -12,7 +12,7 @@ Installation
12
12
  Add this line to your application's Gemfile:
13
13
 
14
14
  ```ruby
15
- gem 'docker-api', :require => 'docker'
15
+ gem 'docker-api'
16
16
  ```
17
17
 
18
18
  And then run:
@@ -210,6 +210,13 @@ Docker::Image.build("from base\nrun touch /test")
210
210
  Docker::Image.build_from_dir('.')
211
211
  # => Docker::Image { :id => 1266dc19e, :connection => Docker::Connection { :url => tcp://localhost, :options => {:port=>2375} } }
212
212
 
213
+ # Create an Image from a Dockerfile and stream the logs
214
+ Docker::Image.build_from_dir('.') do |v|
215
+ if (log = JSON.parse(v)) && log.has_key?("stream")
216
+ $stdout.puts log["stream"]
217
+ end
218
+ end
219
+
213
220
  # Create an Image from a tar file.
214
221
  # docker command for reference: docker build - < docker_image.tar
215
222
  Docker::Image.build_from_tar(File.open('docker_image.tar', 'r'))
@@ -405,6 +412,12 @@ command = ["bash", "-c", "if [ -t 1 ]; then echo -n \"I'm a TTY!\"; fi"]
405
412
  container.exec(command, tty: true)
406
413
  # => [["I'm a TTY!"], [], 0]
407
414
 
415
+ # Wait for the current command to finish executing. If an argument is given,
416
+ # will timeout after that number of seconds. The default is one minute.
417
+ command = ["bash", "-c", "if [ -t 1 ]; then echo -n \"Set max seconds for exec!!\"; fi"]
418
+ container.exec(command, wait: 120)
419
+ # => [["Set max seconds for exec!"], [], 0]
420
+
408
421
  # Delete a Container.
409
422
  container.delete(:force => true)
410
423
  # => nil
data/TESTING.md CHANGED
@@ -24,7 +24,7 @@ $ git checkout -b my_bug_fix
24
24
  4. Make any changes
25
25
  5. Write tests to support those changes.
26
26
  6. Run the tests:
27
- * `bundle exec rake vcr:test`
27
+ * `bundle exec rake vcr:spec`
28
28
  7. Assuming the tests pass, open a Pull Request on Github.
29
29
 
30
30
  # Using Rakefile Commands
@@ -0,0 +1 @@
1
+ require 'docker'
@@ -3,6 +3,18 @@
3
3
  class Docker::Container
4
4
  include Docker::Base
5
5
 
6
+ # Update the @info hash, which is the only mutable state in this object.
7
+ # e.g. if you would like a live status from the #info hash, call #refresh! first.
8
+ def refresh!
9
+ other = Docker::Container.all({all: true}, connection).find { |c|
10
+ c.id.start_with?(self.id) || self.id.start_with?(c.id)
11
+ }
12
+
13
+ info.merge!(self.json)
14
+ other && info.merge!(other.info)
15
+ self
16
+ end
17
+
6
18
  # Return a List of Hashes that represents the top running processes.
7
19
  def top(opts = {})
8
20
  resp = Docker::Util.parse_json(connection.get(path_for(:top), opts))
@@ -48,6 +48,7 @@ class Docker::Exec
48
48
  tty = !!options.delete(:tty)
49
49
  detached = !!options.delete(:detach)
50
50
  stdin = options[:stdin]
51
+ read_timeout = options[:wait]
51
52
 
52
53
  # Create API Request Body
53
54
  body = {
@@ -67,6 +68,8 @@ class Docker::Exec
67
68
  end
68
69
  end
69
70
 
71
+ excon_params[:read_timeout] = read_timeout unless read_timeout.nil?
72
+
70
73
  connection.post(path_for(:start), nil, excon_params)
71
74
  [msgs.stdout_messages, msgs.stderr_messages, self.json['ExitCode']]
72
75
  end
@@ -1,6 +1,6 @@
1
1
  module Docker
2
2
  # The version of the docker-api gem.
3
- VERSION = '1.22.4'
3
+ VERSION = '1.23.0'
4
4
 
5
5
  # The version of the compatible Docker remote API.
6
6
  API_VERSION = '1.16'
@@ -138,6 +138,33 @@ describe Docker::Exec do
138
138
  end
139
139
  end
140
140
 
141
+ context 'when :wait set long time value' do
142
+ subject {
143
+ described_class.create('Container' => container.id, 'Cmd' => %w[date])
144
+ }
145
+ after { container.kill!.remove }
146
+
147
+ it 'returns empty stdout and stderr messages with exitcode', :vcr do
148
+ expect(subject.start!(:wait => 100)).to eq([[], [], 0])
149
+ end
150
+ end
151
+
152
+ context 'when :wait set short time value' do
153
+ subject {
154
+ described_class.create(
155
+ 'Container' => container.id,
156
+ 'AttachStdout' => true,
157
+ 'Cmd' => ['bash', '-c', 'sleep 2; echo hello']
158
+ )
159
+ }
160
+ after { container.kill!.remove }
161
+
162
+ it 'raises an error', :vcr do
163
+ pending "VCR doesn't like to record errors"
164
+ expect { subject.start!(:wait => 1) }.to raise_error(Docker::Error::TimeoutError)
165
+ end
166
+ end
167
+
141
168
  context 'when the command has already run' do
142
169
  subject {
143
170
  described_class.create('Container' => container.id, 'Cmd' => ['date'])
@@ -14,7 +14,7 @@ http_interactions:
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
@@ -27,7 +27,7 @@ http_interactions:
27
27
  string: ! '{"Id":"b4fb8b439cf2762aedb1241a518c4bc4bb9ea2ea75e59c1ef0e08b2383bdab2b","Warnings":null}
28
28
 
29
29
  '
30
- http_version:
30
+ http_version:
31
31
  recorded_at: Thu, 12 Feb 2015 00:53:58 GMT
32
32
  - request:
33
33
  method: post
@@ -43,14 +43,14 @@ http_interactions:
43
43
  response:
44
44
  status:
45
45
  code: 204
46
- message:
46
+ message:
47
47
  headers:
48
48
  Date:
49
49
  - Thu, 12 Feb 2015 00:53:58 GMT
50
50
  body:
51
51
  encoding: US-ASCII
52
52
  string: ''
53
- http_version:
53
+ http_version:
54
54
  recorded_at: Thu, 12 Feb 2015 00:53:58 GMT
55
55
  - request:
56
56
  method: post
@@ -67,7 +67,7 @@ http_interactions:
67
67
  response:
68
68
  status:
69
69
  code: 201
70
- message:
70
+ message:
71
71
  headers:
72
72
  Content-Type:
73
73
  - application/json
@@ -80,7 +80,7 @@ http_interactions:
80
80
  string: ! '{"Id":"f64ea9906bbf5d9855359de06be8c33a5ff753b14efec2d846946419b9c78572"}
81
81
 
82
82
  '
83
- http_version:
83
+ http_version:
84
84
  recorded_at: Thu, 12 Feb 2015 00:53:58 GMT
85
85
  - request:
86
86
  method: post
@@ -96,7 +96,7 @@ http_interactions:
96
96
  response:
97
97
  status:
98
98
  code: 200
99
- message:
99
+ message:
100
100
  headers:
101
101
  Content-Type:
102
102
  - application/vnd.docker.raw-stream
@@ -104,7 +104,7 @@ http_interactions:
104
104
  encoding: US-ASCII
105
105
  string: !binary |-
106
106
  AQAAAAAAAAZoZWxsbwo=
107
- http_version:
107
+ http_version:
108
108
  recorded_at: Thu, 12 Feb 2015 00:54:00 GMT
109
109
  - request:
110
110
  method: get
@@ -120,7 +120,7 @@ http_interactions:
120
120
  response:
121
121
  status:
122
122
  code: 200
123
- message:
123
+ message:
124
124
  headers:
125
125
  Content-Type:
126
126
  - application/json
@@ -132,7 +132,7 @@ http_interactions:
132
132
  encoding: US-ASCII
133
133
  string: ! '{"ID":"f64ea9906bbf5d9855359de06be8c33a5ff753b14efec2d846946419b9c78572","Running":false,"ExitCode":0,"ProcessConfig":{"privileged":false,"user":"","tty":false,"entrypoint":"bash","arguments":["-c","sleep
134
134
  2; echo hello"]},"OpenStdin":false,"OpenStderr":true,"OpenStdout":true,"Container":{"State":{"Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Pid":10033,"ExitCode":0,"Error":"","StartedAt":"2015-02-12T00:53:58.933303983Z","FinishedAt":"0001-01-01T00:00:00Z"},"ID":"b4fb8b439cf2762aedb1241a518c4bc4bb9ea2ea75e59c1ef0e08b2383bdab2b","Created":"2015-02-12T00:53:58.561995441Z","Path":"sleep","Args":["20"],"Config":{"Hostname":"b4fb8b439cf2","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","20"],"Image":"debian:wheezy","Volumes":null,"WorkingDir":"","Entrypoint":null,"NetworkDisabled":false,"MacAddress":"","OnBuild":null},"Image":"c90d655b99b2ec5b7e94d38c87f92dce015c17a313caeaae0e980d9b9bed8444","NetworkSettings":{"IPAddress":"172.17.0.66","IPPrefixLen":16,"MacAddress":"02:42:ac:11:00:42","Gateway":"172.17.42.1","Bridge":"docker0","PortMapping":null,"Ports":{}},"ResolvConfPath":"/var/lib/docker/containers/b4fb8b439cf2762aedb1241a518c4bc4bb9ea2ea75e59c1ef0e08b2383bdab2b/resolv.conf","HostnamePath":"/var/lib/docker/containers/b4fb8b439cf2762aedb1241a518c4bc4bb9ea2ea75e59c1ef0e08b2383bdab2b/hostname","HostsPath":"/var/lib/docker/containers/b4fb8b439cf2762aedb1241a518c4bc4bb9ea2ea75e59c1ef0e08b2383bdab2b/hosts","Name":"/compassionate_lalande","Driver":"devicemapper","ExecDriver":"native-0.2","MountLabel":"","ProcessLabel":"","AppArmorProfile":"","RestartCount":0,"Volumes":{},"VolumesRW":{}}}'
135
- http_version:
135
+ http_version:
136
136
  recorded_at: Thu, 12 Feb 2015 00:54:00 GMT
137
137
  - request:
138
138
  method: post
@@ -148,14 +148,14 @@ http_interactions:
148
148
  response:
149
149
  status:
150
150
  code: 204
151
- message:
151
+ message:
152
152
  headers:
153
153
  Date:
154
154
  - Thu, 12 Feb 2015 00:54:01 GMT
155
155
  body:
156
156
  encoding: US-ASCII
157
157
  string: ''
158
- http_version:
158
+ http_version:
159
159
  recorded_at: Thu, 12 Feb 2015 00:54:01 GMT
160
160
  - request:
161
161
  method: delete
@@ -171,13 +171,13 @@ http_interactions:
171
171
  response:
172
172
  status:
173
173
  code: 204
174
- message:
174
+ message:
175
175
  headers:
176
176
  Date:
177
177
  - Thu, 12 Feb 2015 00:54:01 GMT
178
178
  body:
179
179
  encoding: US-ASCII
180
180
  string: ''
181
- http_version:
181
+ http_version:
182
182
  recorded_at: Thu, 12 Feb 2015 00:54:01 GMT
183
183
  recorded_with: VCR 2.9.2
@@ -14,7 +14,7 @@ http_interactions:
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
@@ -27,7 +27,7 @@ http_interactions:
27
27
  string: ! '{"Id":"331b69bde1c01753ffbe15f07bc4ae1bb6a492ef49866e522454c2fcd3cc4cfe","Warnings":null}
28
28
 
29
29
  '
30
- http_version:
30
+ http_version:
31
31
  recorded_at: Thu, 12 Feb 2015 00:54:40 GMT
32
32
  - request:
33
33
  method: post
@@ -43,14 +43,14 @@ http_interactions:
43
43
  response:
44
44
  status:
45
45
  code: 204
46
- message:
46
+ message:
47
47
  headers:
48
48
  Date:
49
49
  - Thu, 12 Feb 2015 00:54:40 GMT
50
50
  body:
51
51
  encoding: US-ASCII
52
52
  string: ''
53
- http_version:
53
+ http_version:
54
54
  recorded_at: Thu, 12 Feb 2015 00:54:40 GMT
55
55
  - request:
56
56
  method: post
@@ -66,7 +66,7 @@ http_interactions:
66
66
  response:
67
67
  status:
68
68
  code: 201
69
- message:
69
+ message:
70
70
  headers:
71
71
  Content-Type:
72
72
  - application/json
@@ -79,7 +79,7 @@ http_interactions:
79
79
  string: ! '{"Id":"b59c0236313570501ac9420299e448c91fc3b8458a0f44dd680dac6936817590"}
80
80
 
81
81
  '
82
- http_version:
82
+ http_version:
83
83
  recorded_at: Thu, 12 Feb 2015 00:54:40 GMT
84
84
  - request:
85
85
  method: post
@@ -95,7 +95,7 @@ http_interactions:
95
95
  response:
96
96
  status:
97
97
  code: 200
98
- message:
98
+ message:
99
99
  headers:
100
100
  Content-Type:
101
101
  - application/vnd.docker.raw-stream
@@ -103,7 +103,7 @@ http_interactions:
103
103
  encoding: US-ASCII
104
104
  string: !binary |-
105
105
  AQAAAAAAAAZoZWxsbwo=
106
- http_version:
106
+ http_version:
107
107
  recorded_at: Thu, 12 Feb 2015 00:54:42 GMT
108
108
  - request:
109
109
  method: get
@@ -119,7 +119,7 @@ http_interactions:
119
119
  response:
120
120
  status:
121
121
  code: 200
122
- message:
122
+ message:
123
123
  headers:
124
124
  Content-Type:
125
125
  - application/json
@@ -131,7 +131,7 @@ http_interactions:
131
131
  encoding: US-ASCII
132
132
  string: ! '{"ID":"b59c0236313570501ac9420299e448c91fc3b8458a0f44dd680dac6936817590","Running":false,"ExitCode":0,"ProcessConfig":{"privileged":false,"user":"","tty":false,"entrypoint":"bash","arguments":["-c","sleep
133
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:
134
+ http_version:
135
135
  recorded_at: Thu, 12 Feb 2015 00:54:42 GMT
136
136
  - request:
137
137
  method: post
@@ -147,14 +147,14 @@ http_interactions:
147
147
  response:
148
148
  status:
149
149
  code: 204
150
- message:
150
+ message:
151
151
  headers:
152
152
  Date:
153
153
  - Thu, 12 Feb 2015 00:54:42 GMT
154
154
  body:
155
155
  encoding: US-ASCII
156
156
  string: ''
157
- http_version:
157
+ http_version:
158
158
  recorded_at: Thu, 12 Feb 2015 00:54:42 GMT
159
159
  - request:
160
160
  method: delete
@@ -170,13 +170,13 @@ http_interactions:
170
170
  response:
171
171
  status:
172
172
  code: 204
173
- message:
173
+ message:
174
174
  headers:
175
175
  Date:
176
176
  - Thu, 12 Feb 2015 00:54:43 GMT
177
177
  body:
178
178
  encoding: US-ASCII
179
179
  string: ''
180
- http_version:
180
+ http_version:
181
181
  recorded_at: Thu, 12 Feb 2015 00:54:43 GMT
182
182
  recorded_with: VCR 2.9.2
@@ -14,7 +14,7 @@ http_interactions:
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
@@ -27,7 +27,7 @@ http_interactions:
27
27
  string: ! '{"Id":"a8864e7b6565bfdb320c0542897bee3a03a6cd75bc54b362011b07b0b1acf00e","Warnings":null}
28
28
 
29
29
  '
30
- http_version:
30
+ http_version:
31
31
  recorded_at: Thu, 12 Feb 2015 00:54:36 GMT
32
32
  - request:
33
33
  method: post
@@ -43,14 +43,14 @@ http_interactions:
43
43
  response:
44
44
  status:
45
45
  code: 204
46
- message:
46
+ message:
47
47
  headers:
48
48
  Date:
49
49
  - Thu, 12 Feb 2015 00:54:36 GMT
50
50
  body:
51
51
  encoding: US-ASCII
52
52
  string: ''
53
- http_version:
53
+ http_version:
54
54
  recorded_at: Thu, 12 Feb 2015 00:54:36 GMT
55
55
  - request:
56
56
  method: post
@@ -66,7 +66,7 @@ http_interactions:
66
66
  response:
67
67
  status:
68
68
  code: 201
69
- message:
69
+ message:
70
70
  headers:
71
71
  Content-Type:
72
72
  - application/json
@@ -79,7 +79,7 @@ http_interactions:
79
79
  string: ! '{"Id":"07986593b4313b40484879220fe201c5f24fd6b6a4459e368d3235321932e833"}
80
80
 
81
81
  '
82
- http_version:
82
+ http_version:
83
83
  recorded_at: Thu, 12 Feb 2015 00:54:36 GMT
84
84
  - request:
85
85
  method: post
@@ -95,7 +95,7 @@ http_interactions:
95
95
  response:
96
96
  status:
97
97
  code: 200
98
- message:
98
+ message:
99
99
  headers:
100
100
  Content-Type:
101
101
  - application/vnd.docker.raw-stream
@@ -103,7 +103,7 @@ http_interactions:
103
103
  encoding: US-ASCII
104
104
  string: !binary |-
105
105
  AQAAAAAAAAZoZWxsbwo=
106
- http_version:
106
+ http_version:
107
107
  recorded_at: Thu, 12 Feb 2015 00:54:38 GMT
108
108
  - request:
109
109
  method: get
@@ -119,7 +119,7 @@ http_interactions:
119
119
  response:
120
120
  status:
121
121
  code: 200
122
- message:
122
+ message:
123
123
  headers:
124
124
  Content-Type:
125
125
  - application/json
@@ -131,7 +131,7 @@ http_interactions:
131
131
  encoding: US-ASCII
132
132
  string: ! '{"ID":"07986593b4313b40484879220fe201c5f24fd6b6a4459e368d3235321932e833","Running":false,"ExitCode":0,"ProcessConfig":{"privileged":false,"user":"","tty":false,"entrypoint":"bash","arguments":["-c","sleep
133
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:
134
+ http_version:
135
135
  recorded_at: Thu, 12 Feb 2015 00:54:38 GMT
136
136
  - request:
137
137
  method: post
@@ -147,14 +147,14 @@ http_interactions:
147
147
  response:
148
148
  status:
149
149
  code: 204
150
- message:
150
+ message:
151
151
  headers:
152
152
  Date:
153
153
  - Thu, 12 Feb 2015 00:54:38 GMT
154
154
  body:
155
155
  encoding: US-ASCII
156
156
  string: ''
157
- http_version:
157
+ http_version:
158
158
  recorded_at: Thu, 12 Feb 2015 00:54:38 GMT
159
159
  - request:
160
160
  method: delete
@@ -170,13 +170,13 @@ http_interactions:
170
170
  response:
171
171
  status:
172
172
  code: 204
173
- message:
173
+ message:
174
174
  headers:
175
175
  Date:
176
176
  - Thu, 12 Feb 2015 00:54:39 GMT
177
177
  body:
178
178
  encoding: US-ASCII
179
179
  string: ''
180
- http_version:
180
+ http_version:
181
181
  recorded_at: Thu, 12 Feb 2015 00:54:39 GMT
182
182
  recorded_with: VCR 2.9.2
@@ -14,7 +14,7 @@ http_interactions:
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
@@ -27,7 +27,7 @@ http_interactions:
27
27
  string: ! '{"Id":"a856a3638bc711bab09926a27bc77924a8138d5bbd69fecabf9543106cd01b8b","Warnings":null}
28
28
 
29
29
  '
30
- http_version:
30
+ http_version:
31
31
  recorded_at: Thu, 12 Feb 2015 00:54:43 GMT
32
32
  - request:
33
33
  method: post
@@ -43,14 +43,14 @@ http_interactions:
43
43
  response:
44
44
  status:
45
45
  code: 204
46
- message:
46
+ message:
47
47
  headers:
48
48
  Date:
49
49
  - Thu, 12 Feb 2015 00:54:43 GMT
50
50
  body:
51
51
  encoding: US-ASCII
52
52
  string: ''
53
- http_version:
53
+ http_version:
54
54
  recorded_at: Thu, 12 Feb 2015 00:54:43 GMT
55
55
  - request:
56
56
  method: post
@@ -66,7 +66,7 @@ http_interactions:
66
66
  response:
67
67
  status:
68
68
  code: 201
69
- message:
69
+ message:
70
70
  headers:
71
71
  Content-Type:
72
72
  - application/json
@@ -79,7 +79,7 @@ http_interactions:
79
79
  string: ! '{"Id":"1a39c489ebaf5b07c492e6ef553e7f8e66526802adfe2fd1f9ca8a7a44dace50"}
80
80
 
81
81
  '
82
- http_version:
82
+ http_version:
83
83
  recorded_at: Thu, 12 Feb 2015 00:54:43 GMT
84
84
  - request:
85
85
  method: post
@@ -95,14 +95,14 @@ http_interactions:
95
95
  response:
96
96
  status:
97
97
  code: 204
98
- message:
98
+ message:
99
99
  headers:
100
100
  Date:
101
101
  - Thu, 12 Feb 2015 00:54:43 GMT
102
102
  body:
103
103
  encoding: US-ASCII
104
104
  string: ''
105
- http_version:
105
+ http_version:
106
106
  recorded_at: Thu, 12 Feb 2015 00:54:43 GMT
107
107
  - request:
108
108
  method: get
@@ -118,7 +118,7 @@ http_interactions:
118
118
  response:
119
119
  status:
120
120
  code: 200
121
- message:
121
+ message:
122
122
  headers:
123
123
  Content-Type:
124
124
  - application/json
@@ -129,7 +129,7 @@ http_interactions:
129
129
  body:
130
130
  encoding: US-ASCII
131
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:
132
+ http_version:
133
133
  recorded_at: Thu, 12 Feb 2015 00:54:43 GMT
134
134
  - request:
135
135
  method: post
@@ -145,14 +145,14 @@ http_interactions:
145
145
  response:
146
146
  status:
147
147
  code: 204
148
- message:
148
+ message:
149
149
  headers:
150
150
  Date:
151
151
  - Thu, 12 Feb 2015 00:54:43 GMT
152
152
  body:
153
153
  encoding: US-ASCII
154
154
  string: ''
155
- http_version:
155
+ http_version:
156
156
  recorded_at: Thu, 12 Feb 2015 00:54:43 GMT
157
157
  - request:
158
158
  method: delete
@@ -168,13 +168,13 @@ http_interactions:
168
168
  response:
169
169
  status:
170
170
  code: 204
171
- message:
171
+ message:
172
172
  headers:
173
173
  Date:
174
174
  - Thu, 12 Feb 2015 00:54:44 GMT
175
175
  body:
176
176
  encoding: US-ASCII
177
177
  string: ''
178
- http_version:
178
+ http_version:
179
179
  recorded_at: Thu, 12 Feb 2015 00:54:44 GMT
180
180
  recorded_with: VCR 2.9.2
@@ -14,7 +14,7 @@ http_interactions:
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
@@ -27,7 +27,7 @@ http_interactions:
27
27
  string: ! '{"Id":"739470827bdfbd68746cc81414b90b49ffd1a15ff3501aab71a602e1058c2c09","Warnings":null}
28
28
 
29
29
  '
30
- http_version:
30
+ http_version:
31
31
  recorded_at: Thu, 12 Feb 2015 00:54:46 GMT
32
32
  - request:
33
33
  method: post
@@ -43,14 +43,14 @@ http_interactions:
43
43
  response:
44
44
  status:
45
45
  code: 204
46
- message:
46
+ message:
47
47
  headers:
48
48
  Date:
49
49
  - Thu, 12 Feb 2015 00:54:46 GMT
50
50
  body:
51
51
  encoding: US-ASCII
52
52
  string: ''
53
- http_version:
53
+ http_version:
54
54
  recorded_at: Thu, 12 Feb 2015 00:54:46 GMT
55
55
  - request:
56
56
  method: post
@@ -66,7 +66,7 @@ http_interactions:
66
66
  response:
67
67
  status:
68
68
  code: 201
69
- message:
69
+ message:
70
70
  headers:
71
71
  Content-Type:
72
72
  - application/json
@@ -79,7 +79,7 @@ http_interactions:
79
79
  string: ! '{"Id":"c5667b7d2922368bde8eea9c07108d171e90aee1bd2447b31fd98ce636f38100"}
80
80
 
81
81
  '
82
- http_version:
82
+ http_version:
83
83
  recorded_at: Thu, 12 Feb 2015 00:54:46 GMT
84
84
  - request:
85
85
  method: post
@@ -95,14 +95,14 @@ http_interactions:
95
95
  response:
96
96
  status:
97
97
  code: 200
98
- message:
98
+ message:
99
99
  headers:
100
100
  Content-Type:
101
101
  - application/vnd.docker.raw-stream
102
102
  body:
103
103
  encoding: US-ASCII
104
104
  string: ''
105
- http_version:
105
+ http_version:
106
106
  recorded_at: Thu, 12 Feb 2015 00:54:46 GMT
107
107
  - request:
108
108
  method: get
@@ -118,7 +118,7 @@ http_interactions:
118
118
  response:
119
119
  status:
120
120
  code: 200
121
- message:
121
+ message:
122
122
  headers:
123
123
  Content-Type:
124
124
  - application/json
@@ -129,7 +129,7 @@ http_interactions:
129
129
  body:
130
130
  encoding: US-ASCII
131
131
  string: ! '{"ID":"c5667b7d2922368bde8eea9c07108d171e90aee1bd2447b31fd98ce636f38100","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":11328,"ExitCode":0,"Error":"","StartedAt":"2015-02-12T00:54:46.650127243Z","FinishedAt":"0001-01-01T00:00:00Z"},"ID":"739470827bdfbd68746cc81414b90b49ffd1a15ff3501aab71a602e1058c2c09","Created":"2015-02-12T00:54:46.287146699Z","Path":"sleep","Args":["300"],"Config":{"Hostname":"739470827bdf","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.87","IPPrefixLen":16,"MacAddress":"02:42:ac:11:00:57","Gateway":"172.17.42.1","Bridge":"docker0","PortMapping":null,"Ports":{}},"ResolvConfPath":"/var/lib/docker/containers/739470827bdfbd68746cc81414b90b49ffd1a15ff3501aab71a602e1058c2c09/resolv.conf","HostnamePath":"/var/lib/docker/containers/739470827bdfbd68746cc81414b90b49ffd1a15ff3501aab71a602e1058c2c09/hostname","HostsPath":"/var/lib/docker/containers/739470827bdfbd68746cc81414b90b49ffd1a15ff3501aab71a602e1058c2c09/hosts","Name":"/lonely_goodall","Driver":"devicemapper","ExecDriver":"native-0.2","MountLabel":"","ProcessLabel":"","AppArmorProfile":"","RestartCount":0,"Volumes":{},"VolumesRW":{}}}'
132
- http_version:
132
+ http_version:
133
133
  recorded_at: Thu, 12 Feb 2015 00:54:46 GMT
134
134
  - request:
135
135
  method: post
@@ -145,14 +145,14 @@ http_interactions:
145
145
  response:
146
146
  status:
147
147
  code: 204
148
- message:
148
+ message:
149
149
  headers:
150
150
  Date:
151
151
  - Thu, 12 Feb 2015 00:54:46 GMT
152
152
  body:
153
153
  encoding: US-ASCII
154
154
  string: ''
155
- http_version:
155
+ http_version:
156
156
  recorded_at: Thu, 12 Feb 2015 00:54:46 GMT
157
157
  - request:
158
158
  method: delete
@@ -168,13 +168,13 @@ http_interactions:
168
168
  response:
169
169
  status:
170
170
  code: 204
171
- message:
171
+ message:
172
172
  headers:
173
173
  Date:
174
174
  - Thu, 12 Feb 2015 00:54:47 GMT
175
175
  body:
176
176
  encoding: US-ASCII
177
177
  string: ''
178
- http_version:
178
+ http_version:
179
179
  recorded_at: Thu, 12 Feb 2015 00:54:47 GMT
180
180
  recorded_with: VCR 2.9.2
@@ -14,7 +14,7 @@ http_interactions:
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
@@ -27,7 +27,7 @@ http_interactions:
27
27
  string: ! '{"Id":"5996e51bdf1d20dc1306d16ace5b0d9cad615d7128a12f9d0cb70169412b4b2d","Warnings":null}
28
28
 
29
29
  '
30
- http_version:
30
+ http_version:
31
31
  recorded_at: Thu, 12 Feb 2015 00:54:45 GMT
32
32
  - request:
33
33
  method: post
@@ -43,14 +43,14 @@ http_interactions:
43
43
  response:
44
44
  status:
45
45
  code: 204
46
- message:
46
+ message:
47
47
  headers:
48
48
  Date:
49
49
  - Thu, 12 Feb 2015 00:54:45 GMT
50
50
  body:
51
51
  encoding: US-ASCII
52
52
  string: ''
53
- http_version:
53
+ http_version:
54
54
  recorded_at: Thu, 12 Feb 2015 00:54:45 GMT
55
55
  - request:
56
56
  method: post
@@ -66,7 +66,7 @@ http_interactions:
66
66
  response:
67
67
  status:
68
68
  code: 201
69
- message:
69
+ message:
70
70
  headers:
71
71
  Content-Type:
72
72
  - application/json
@@ -79,7 +79,7 @@ http_interactions:
79
79
  string: ! '{"Id":"838cbac83a79b08a7cdd50dbc8a5ad3fa2f0d7322d0975e349e577624d60e8b2"}
80
80
 
81
81
  '
82
- http_version:
82
+ http_version:
83
83
  recorded_at: Thu, 12 Feb 2015 00:54:45 GMT
84
84
  - request:
85
85
  method: post
@@ -95,14 +95,14 @@ http_interactions:
95
95
  response:
96
96
  status:
97
97
  code: 200
98
- message:
98
+ message:
99
99
  headers:
100
100
  Content-Type:
101
101
  - application/vnd.docker.raw-stream
102
102
  body:
103
103
  encoding: US-ASCII
104
104
  string: ''
105
- http_version:
105
+ http_version:
106
106
  recorded_at: Thu, 12 Feb 2015 00:54:45 GMT
107
107
  - request:
108
108
  method: get
@@ -118,7 +118,7 @@ http_interactions:
118
118
  response:
119
119
  status:
120
120
  code: 200
121
- message:
121
+ message:
122
122
  headers:
123
123
  Content-Type:
124
124
  - application/json
@@ -129,7 +129,7 @@ http_interactions:
129
129
  body:
130
130
  encoding: US-ASCII
131
131
  string: ! '{"ID":"838cbac83a79b08a7cdd50dbc8a5ad3fa2f0d7322d0975e349e577624d60e8b2","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":11268,"ExitCode":0,"Error":"","StartedAt":"2015-02-12T00:54:45.275932037Z","FinishedAt":"0001-01-01T00:00:00Z"},"ID":"5996e51bdf1d20dc1306d16ace5b0d9cad615d7128a12f9d0cb70169412b4b2d","Created":"2015-02-12T00:54:44.901466512Z","Path":"sleep","Args":["300"],"Config":{"Hostname":"5996e51bdf1d","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.86","IPPrefixLen":16,"MacAddress":"02:42:ac:11:00:56","Gateway":"172.17.42.1","Bridge":"docker0","PortMapping":null,"Ports":{}},"ResolvConfPath":"/var/lib/docker/containers/5996e51bdf1d20dc1306d16ace5b0d9cad615d7128a12f9d0cb70169412b4b2d/resolv.conf","HostnamePath":"/var/lib/docker/containers/5996e51bdf1d20dc1306d16ace5b0d9cad615d7128a12f9d0cb70169412b4b2d/hostname","HostsPath":"/var/lib/docker/containers/5996e51bdf1d20dc1306d16ace5b0d9cad615d7128a12f9d0cb70169412b4b2d/hosts","Name":"/elegant_shockley","Driver":"devicemapper","ExecDriver":"native-0.2","MountLabel":"","ProcessLabel":"","AppArmorProfile":"","RestartCount":0,"Volumes":{},"VolumesRW":{}}}'
132
- http_version:
132
+ http_version:
133
133
  recorded_at: Thu, 12 Feb 2015 00:54:45 GMT
134
134
  - request:
135
135
  method: post
@@ -145,14 +145,14 @@ http_interactions:
145
145
  response:
146
146
  status:
147
147
  code: 204
148
- message:
148
+ message:
149
149
  headers:
150
150
  Date:
151
151
  - Thu, 12 Feb 2015 00:54:45 GMT
152
152
  body:
153
153
  encoding: US-ASCII
154
154
  string: ''
155
- http_version:
155
+ http_version:
156
156
  recorded_at: Thu, 12 Feb 2015 00:54:45 GMT
157
157
  - request:
158
158
  method: delete
@@ -168,13 +168,13 @@ http_interactions:
168
168
  response:
169
169
  status:
170
170
  code: 204
171
- message:
171
+ message:
172
172
  headers:
173
173
  Date:
174
174
  - Thu, 12 Feb 2015 00:54:46 GMT
175
175
  body:
176
176
  encoding: US-ASCII
177
177
  string: ''
178
- http_version:
178
+ http_version:
179
179
  recorded_at: Thu, 12 Feb 2015 00:54:46 GMT
180
180
  recorded_with: VCR 2.9.2
@@ -0,0 +1,189 @@
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.22.4
12
+ Content-Type:
13
+ - application/json
14
+ response:
15
+ status:
16
+ code: 201
17
+ message:
18
+ headers:
19
+ Content-Type:
20
+ - application/json
21
+ Server:
22
+ - Docker/1.8.3 (linux)
23
+ Date:
24
+ - Wed, 04 Nov 2015 07:30:13 GMT
25
+ Content-Length:
26
+ - '90'
27
+ body:
28
+ encoding: UTF-8
29
+ string: |
30
+ {"Id":"cb46ea8cb51d0df763bbce588b3b631bfe8f9141209a5120d9e8e8cc2fef452a","Warnings":null}
31
+ http_version:
32
+ recorded_at: Wed, 04 Nov 2015 07:30:13 GMT
33
+ - request:
34
+ method: post
35
+ uri: <DOCKER_HOST>/v1.16/containers/cb46ea8cb51d0df763bbce588b3b631bfe8f9141209a5120d9e8e8cc2fef452a/start
36
+ body:
37
+ encoding: UTF-8
38
+ string: "{}"
39
+ headers:
40
+ User-Agent:
41
+ - Swipely/Docker-API 1.22.4
42
+ Content-Type:
43
+ - application/json
44
+ response:
45
+ status:
46
+ code: 204
47
+ message:
48
+ headers:
49
+ Server:
50
+ - Docker/1.8.3 (linux)
51
+ Date:
52
+ - Wed, 04 Nov 2015 07:30:14 GMT
53
+ body:
54
+ encoding: UTF-8
55
+ string: ''
56
+ http_version:
57
+ recorded_at: Wed, 04 Nov 2015 07:30:14 GMT
58
+ - request:
59
+ method: post
60
+ uri: <DOCKER_HOST>/v1.16/containers/cb46ea8cb51d0df763bbce588b3b631bfe8f9141209a5120d9e8e8cc2fef452a/exec
61
+ body:
62
+ encoding: UTF-8
63
+ string: '{"Cmd":["date"]}'
64
+ headers:
65
+ User-Agent:
66
+ - Swipely/Docker-API 1.22.4
67
+ Content-Type:
68
+ - application/json
69
+ response:
70
+ status:
71
+ code: 201
72
+ message:
73
+ headers:
74
+ Content-Type:
75
+ - application/json
76
+ Server:
77
+ - Docker/1.8.3 (linux)
78
+ Date:
79
+ - Wed, 04 Nov 2015 07:30:14 GMT
80
+ Content-Length:
81
+ - '74'
82
+ body:
83
+ encoding: UTF-8
84
+ string: |
85
+ {"Id":"2fca0711df668baf5a782fdf1380f27357f7148e3580cc05299c24929ba04811"}
86
+ http_version:
87
+ recorded_at: Wed, 04 Nov 2015 07:30:14 GMT
88
+ - request:
89
+ method: post
90
+ uri: <DOCKER_HOST>/v1.16/exec/2fca0711df668baf5a782fdf1380f27357f7148e3580cc05299c24929ba04811/start
91
+ body:
92
+ encoding: UTF-8
93
+ string: '{"Tty":false,"Detach":false}'
94
+ headers:
95
+ User-Agent:
96
+ - Swipely/Docker-API 1.22.4
97
+ Content-Type:
98
+ - application/json
99
+ response:
100
+ status:
101
+ code: 200
102
+ message:
103
+ headers:
104
+ Content-Type:
105
+ - application/vnd.docker.raw-stream
106
+ body:
107
+ encoding: UTF-8
108
+ string: ''
109
+ http_version:
110
+ recorded_at: Wed, 04 Nov 2015 07:30:14 GMT
111
+ - request:
112
+ method: get
113
+ uri: <DOCKER_HOST>/v1.16/exec/2fca0711df668baf5a782fdf1380f27357f7148e3580cc05299c24929ba04811/json
114
+ body:
115
+ encoding: US-ASCII
116
+ string: ''
117
+ headers:
118
+ User-Agent:
119
+ - Swipely/Docker-API 1.22.4
120
+ Content-Type:
121
+ - text/plain
122
+ response:
123
+ status:
124
+ code: 200
125
+ message:
126
+ headers:
127
+ Content-Type:
128
+ - application/json
129
+ Server:
130
+ - Docker/1.8.3 (linux)
131
+ Date:
132
+ - Wed, 04 Nov 2015 07:30:14 GMT
133
+ body:
134
+ encoding: UTF-8
135
+ string: |
136
+ {"ID":"2fca0711df668baf5a782fdf1380f27357f7148e3580cc05299c24929ba04811","Running":false,"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,"Dead":false,"Pid":2472,"ExitCode":0,"Error":"","StartedAt":"2015-11-04T07:30:14.169947883Z","FinishedAt":"0001-01-01T00:00:00Z"},"ID":"cb46ea8cb51d0df763bbce588b3b631bfe8f9141209a5120d9e8e8cc2fef452a","Created":"2015-11-04T07:30:13.875392121Z","Path":"sleep","Args":["300"],"Config":{"Hostname":"cb46ea8cb51d","Domainname":"","User":"","AttachStdin":false,"AttachStdout":false,"AttachStderr":false,"Tty":false,"OpenStdin":false,"StdinOnce":false,"Env":null,"Cmd":["sleep","300"],"Image":"debian:wheezy","Volumes":null,"WorkingDir":"","Entrypoint":null,"OnBuild":null,"Labels":null},"Image":"74872ba2a3b0d8d80e0cf0bb252befe1f733d6aa43df7b51f35a883062f5862b","NetworkSettings":{"Bridge":"","EndpointID":"a1a1b7448cd8cceda7110ae523e1aef55b347bb670ad80758e8b0f2e9ed2bc10","Gateway":"172.17.42.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"HairpinMode":false,"IPAddress":"172.17.0.27","IPPrefixLen":16,"IPv6Gateway":"","LinkLocalIPv6Address":"","LinkLocalIPv6PrefixLen":0,"MacAddress":"02:42:ac:11:00:1b","NetworkID":"708607833e9ed8b9ef9f58046a2ab67c9a86a4cc02e602d596dd11c1245ea2c5","PortMapping":null,"Ports":{},"SandboxKey":"/var/run/docker/netns/cb46ea8cb51d","SecondaryIPAddresses":null,"SecondaryIPv6Addresses":null},"ResolvConfPath":"/mnt/sda1/var/lib/docker/containers/cb46ea8cb51d0df763bbce588b3b631bfe8f9141209a5120d9e8e8cc2fef452a/resolv.conf","HostnamePath":"/mnt/sda1/var/lib/docker/containers/cb46ea8cb51d0df763bbce588b3b631bfe8f9141209a5120d9e8e8cc2fef452a/hostname","HostsPath":"/mnt/sda1/var/lib/docker/containers/cb46ea8cb51d0df763bbce588b3b631bfe8f9141209a5120d9e8e8cc2fef452a/hosts","LogPath":"/mnt/sda1/var/lib/docker/containers/cb46ea8cb51d0df763bbce588b3b631bfe8f9141209a5120d9e8e8cc2fef452a/cb46ea8cb51d0df763bbce588b3b631bfe8f9141209a5120d9e8e8cc2fef452a-json.log","Name":"/admiring_lalande","Driver":"aufs","ExecDriver":"native-0.2","MountLabel":"","ProcessLabel":"","RestartCount":0,"UpdateDns":false,"HasBeenStartedBefore":false,"MountPoints":{},"Volumes":{},"VolumesRW":{},"AppArmorProfile":""}}
137
+ http_version:
138
+ recorded_at: Wed, 04 Nov 2015 07:30:14 GMT
139
+ - request:
140
+ method: post
141
+ uri: <DOCKER_HOST>/v1.16/containers/cb46ea8cb51d0df763bbce588b3b631bfe8f9141209a5120d9e8e8cc2fef452a/kill
142
+ body:
143
+ encoding: US-ASCII
144
+ string: ''
145
+ headers:
146
+ User-Agent:
147
+ - Swipely/Docker-API 1.22.4
148
+ Content-Type:
149
+ - text/plain
150
+ response:
151
+ status:
152
+ code: 204
153
+ message:
154
+ headers:
155
+ Server:
156
+ - Docker/1.8.3 (linux)
157
+ Date:
158
+ - Wed, 04 Nov 2015 07:30:14 GMT
159
+ body:
160
+ encoding: UTF-8
161
+ string: ''
162
+ http_version:
163
+ recorded_at: Wed, 04 Nov 2015 07:30:14 GMT
164
+ - request:
165
+ method: delete
166
+ uri: <DOCKER_HOST>/v1.16/containers/cb46ea8cb51d0df763bbce588b3b631bfe8f9141209a5120d9e8e8cc2fef452a
167
+ body:
168
+ encoding: US-ASCII
169
+ string: ''
170
+ headers:
171
+ User-Agent:
172
+ - Swipely/Docker-API 1.22.4
173
+ Content-Type:
174
+ - text/plain
175
+ response:
176
+ status:
177
+ code: 204
178
+ message:
179
+ headers:
180
+ Server:
181
+ - Docker/1.8.3 (linux)
182
+ Date:
183
+ - Wed, 04 Nov 2015 07:30:14 GMT
184
+ body:
185
+ encoding: UTF-8
186
+ string: ''
187
+ http_version:
188
+ recorded_at: Wed, 04 Nov 2015 07:30:14 GMT
189
+ recorded_with: VCR 3.0.0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.22.4
4
+ version: 1.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swipely, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-03 00:00:00.000000000 Z
11
+ date: 2015-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon
@@ -183,6 +183,7 @@ files:
183
183
  - Rakefile
184
184
  - TESTING.md
185
185
  - docker-api.gemspec
186
+ - lib/docker-api.rb
186
187
  - lib/docker.rb
187
188
  - lib/docker/base.rb
188
189
  - lib/docker/connection.rb
@@ -260,6 +261,7 @@ files:
260
261
  - spec/vcr/Docker_Exec/_start_/when_detach_is_set_to_true/returns_empty_stdout/stderr_messages_with_exitcode.yml
261
262
  - spec/vcr/Docker_Exec/_start_/when_the_HTTP_request_returns_a_201/starts_the_exec_instance.yml
262
263
  - spec/vcr/Docker_Exec/_start_/when_the_command_has_already_run/raises_an_error.yml
264
+ - spec/vcr/Docker_Exec/_start_/when_wait_set_long_time_value/returns_empty_stdout_and_stderr_messages_with_exitcode.yml
263
265
  - spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml
264
266
  - spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/with_a_block_capturing_build_output/calls_the_block_and_passes_build_output.yml
265
267
  - spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/with_specifying_a_repo_in_the_query_parameters/builds_an_image_and_tags_it.yml
@@ -389,6 +391,7 @@ test_files:
389
391
  - spec/vcr/Docker_Exec/_start_/when_detach_is_set_to_true/returns_empty_stdout/stderr_messages_with_exitcode.yml
390
392
  - spec/vcr/Docker_Exec/_start_/when_the_HTTP_request_returns_a_201/starts_the_exec_instance.yml
391
393
  - spec/vcr/Docker_Exec/_start_/when_the_command_has_already_run/raises_an_error.yml
394
+ - spec/vcr/Docker_Exec/_start_/when_wait_set_long_time_value/returns_empty_stdout_and_stderr_messages_with_exitcode.yml
392
395
  - spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml
393
396
  - spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/with_a_block_capturing_build_output/calls_the_block_and_passes_build_output.yml
394
397
  - spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/with_specifying_a_repo_in_the_query_parameters/builds_an_image_and_tags_it.yml
@@ -430,3 +433,4 @@ test_files:
430
433
  - spec/vcr/Docker_Image/_save/when_no_filename_is_specified/returns_raw_binary_data_as_string.yml
431
434
  - spec/vcr/Docker_Image/_search/materializes_each_Image_into_a_Docker_Image.yml
432
435
  - spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml
436
+ has_rdoc: