docker-api 1.13.0 → 1.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +25 -6
- data/docker-api.gemspec +1 -1
- data/lib/docker.rb +2 -2
- data/lib/docker/container.rb +33 -11
- data/lib/docker/util.rb +1 -1
- data/lib/docker/version.rb +1 -1
- data/spec/docker/container_spec.rb +33 -1
- data/spec/docker_spec.rb +1 -1
- data/spec/vcr/Docker_Container/_kill/kills_the_container.yml +57 -64
- data/spec/vcr/Docker_Container/_kill/with_a_kill_signal/kills_the_container.yml +265 -0
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c65d0d14dc98274bae2d57338d68b53e340b17b6
|
4
|
+
data.tar.gz: d1d3a1ce41bc4c4a38b720ab67b0c2ef91e7089f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed39d770944b0ab5872bc62176b1fd529de09b920ad5c12665b8658f4e06356653fb4d01a0a4ea667d8577aaff81888e169ed581059f0ce369f5108c5522be55
|
7
|
+
data.tar.gz: 7233f50f86047421d4cc40cf94f34765670674ad33206277260167af885750a6c798a319eb315cb4d129e2ac665092ade0d394c4ebcb39fe951073796ac9206f
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@ docker-api
|
|
2
2
|
==========
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/docker-api.png)](http://badge.fury.io/rb/docker-api) [![travis-ci](https://travis-ci.org/swipely/docker-api.png?branch=master)](https://travis-ci.org/swipely/docker-api) [![Code Climate](https://codeclimate.com/github/swipely/docker-api.png)](https://codeclimate.com/github/swipely/docker-api) [![Dependency Status](https://gemnasium.com/swipely/docker-api.png)](https://gemnasium.com/swipely/docker-api)
|
4
4
|
|
5
|
-
This gem provides an object-oriented interface to the [Docker Remote API](http://docs.docker.io/en/latest/reference/api/docker_remote_api/). Every method listed there is implemented. At the time of this writing, docker-api is meant to interface with Docker version 0
|
5
|
+
This gem provides an object-oriented interface to the [Docker Remote API](http://docs.docker.io/en/latest/reference/api/docker_remote_api/). Every method listed there is implemented. At the time of this writing, docker-api is meant to interface with Docker version 1.0.*
|
6
6
|
|
7
7
|
If you're interested in using Docker to package your apps, we recommend the [dockly](https://github.com/swipely/dockly) gem. Dockly provides a simple DSL for describing Docker containers that install as Debian packages and are controlled by upstart scripts.
|
8
8
|
|
@@ -105,10 +105,6 @@ require 'docker'
|
|
105
105
|
Docker::Image.create('fromImage' => 'base')
|
106
106
|
# => Docker::Image { :id => ae7ffbcd1, :connection => Docker::Connection { :url => http://localhost, :options => {:port=>4243} } }
|
107
107
|
|
108
|
-
# Insert a file into an Image from a url.
|
109
|
-
image.insert('path' => '/google', 'url' => 'http://google.com')
|
110
|
-
# => Docker::Image { :id => 11ef6c882, :connection => Docker::Connection { :url => http://localhost, :options => {:port=>4243} } }
|
111
|
-
|
112
108
|
# Insert a local file into an Image.
|
113
109
|
image.insert_local('localPath' => 'Gemfile', 'outputPath' => '/')
|
114
110
|
# => Docker::Image { :id => 682ea192f, :connection => Docker::Connection { :url => http://localhost, :options => {:port=>4243} } }
|
@@ -200,10 +196,22 @@ container.stop
|
|
200
196
|
container.restart
|
201
197
|
# => Docker::Container { :id => 492510dd38e4, :connection => Docker::Connection { :url => http://localhost, :options => {:port=>4243} } }
|
202
198
|
|
199
|
+
# Pause the running Container processes.
|
200
|
+
container.pause
|
201
|
+
# => Docker::Container { :id => 492510dd38e4, :connection => Docker::Connection { :url => http://localhost, :options => {:port=>4243} } }
|
202
|
+
|
203
|
+
# Unpause the running Container processes.
|
204
|
+
container.unpause
|
205
|
+
# => Docker::Container { :id => 492510dd38e4, :connection => Docker::Connection { :url => http://localhost, :options => {:port=>4243} } }
|
206
|
+
|
203
207
|
# Kill the command running in the Container.
|
204
208
|
container.kill
|
205
209
|
# => Docker::Container { :id => 492510dd38e4, :connection => Docker::Connection { :url => http://localhost, :options => {:port=>4243} } }
|
206
210
|
|
211
|
+
# Kill the Container specifying the kill signal.
|
212
|
+
container.kill(:signal => "SIGHUP")
|
213
|
+
# => Docker::Container { :id => 492510dd38e4, :connection => Docker::Connection { :url => http://localhost, :options => {:port=>4243} } }
|
214
|
+
|
207
215
|
# Return the currently executing processes in a Container.
|
208
216
|
container.top
|
209
217
|
# => [{"PID"=>"4851", "TTY"=>"pts/0", "TIME"=>"00:00:00", "CMD"=>"lxc-start"}]
|
@@ -238,7 +246,7 @@ container.wait(15)
|
|
238
246
|
|
239
247
|
# Attach to the Container. Currently, the below options are the only valid ones.
|
240
248
|
# By default, :stream, :stdout, and :stderr are set.
|
241
|
-
container.attach(:stream => true, :stdin => nil, :stdout => true, :stderr => true, :logs => true)
|
249
|
+
container.attach(:stream => true, :stdin => nil, :stdout => true, :stderr => true, :logs => true, :tty => false)
|
242
250
|
# => [["bin\nboot\ndev\netc\nhome\nlib\nlib64\nmedia\nmnt\nopt\nproc\nroot\nrun\nsbin\nselinux\nsrv\nsys\ntmp\nusr\nvar", []]
|
243
251
|
|
244
252
|
# If you wish to stream the attach method, a block may be supplied.
|
@@ -252,6 +260,12 @@ container = Docker::Container.create('Image' => 'base', 'Cmd' => ['cat'], 'OpenS
|
|
252
260
|
container.tap(&:start).attach(stdin: StringIO.new("foo\nbar\n"))
|
253
261
|
# => [["foo\nbar\n"], []]
|
254
262
|
|
263
|
+
# If the container has TTY enabled, set `tty => true` to get the raw stream:
|
264
|
+
command = ["bash", "-c", "if [ -t 1 ]; then echo -n \"I'm a TTY!\"; fi"]
|
265
|
+
container = Docker::Container.create('Image' => 'ubuntu', 'Cmd' => command, 'Tty' => true)
|
266
|
+
container.tap(&:start).attach(:tty => true)
|
267
|
+
# => [["I'm a TTY!"], []]
|
268
|
+
|
255
269
|
# Create an Image from a Container's changes.
|
256
270
|
container.commit
|
257
271
|
# => Docker::Image { :id => eaeb8d00efdf, :connection => Docker::Connection { :url => http://localhost, :options => {:port=>4243} } }
|
@@ -305,3 +319,8 @@ image 'repo:new_tag' => 'repo:tag' do
|
|
305
319
|
image.tag('repo' => 'repo', 'tag' => 'new_tag')
|
306
320
|
end
|
307
321
|
```
|
322
|
+
|
323
|
+
## Not supported (yet)
|
324
|
+
|
325
|
+
* Generating a tarball of images and metadata for a repository specified by a name: https://docs.docker.com/reference/api/docker_remote_api_v1.12/#get-a-tarball-containing-all-images-and-tags-in-a-repository
|
326
|
+
* Load a tarball generated from docker that contains all the images and metadata of a repository: https://docs.docker.com/reference/api/docker_remote_api_v1.12/#load-a-tarball-with-a-set-of-images-and-tags-into-docker
|
data/docker-api.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
|
|
14
14
|
gem.name = "docker-api"
|
15
15
|
gem.require_paths = %w{lib}
|
16
16
|
gem.version = Docker::VERSION
|
17
|
-
gem.add_dependency 'excon', '>= 0.
|
17
|
+
gem.add_dependency 'excon', '>= 0.38.0'
|
18
18
|
gem.add_dependency 'json'
|
19
19
|
gem.add_dependency 'archive-tar-minitar'
|
20
20
|
gem.add_development_dependency 'rake'
|
data/lib/docker.rb
CHANGED
@@ -40,9 +40,9 @@ module Docker
|
|
40
40
|
|
41
41
|
def url
|
42
42
|
@url ||= ENV['DOCKER_URL'] || ENV['DOCKER_HOST'] || default_socket_url
|
43
|
-
# docker uses a default notation tcp:// which means tcp://localhost:
|
43
|
+
# docker uses a default notation tcp:// which means tcp://localhost:2375
|
44
44
|
if @url == 'tcp://'
|
45
|
-
@url = 'tcp://localhost:
|
45
|
+
@url = 'tcp://localhost:2375'
|
46
46
|
end
|
47
47
|
@url
|
48
48
|
end
|
data/lib/docker/container.rb
CHANGED
@@ -41,6 +41,7 @@ class Docker::Container
|
|
41
41
|
# Attach to a container's standard streams / logs.
|
42
42
|
def attach(options = {}, &block)
|
43
43
|
stdin = options.delete(:stdin)
|
44
|
+
tty = options.delete(:tty)
|
44
45
|
|
45
46
|
opts = {
|
46
47
|
:stream => true, :stdout => true, :stderr => true
|
@@ -54,9 +55,9 @@ class Docker::Container
|
|
54
55
|
# If attaching to stdin, we must hijack the underlying TCP connection
|
55
56
|
# so we can stream stdin to the remote Docker process
|
56
57
|
opts[:stdin] = true
|
57
|
-
excon_params[:hijack_block] = hijack_for(stdin, block, msgs)
|
58
|
+
excon_params[:hijack_block] = hijack_for(stdin, block, msgs, tty)
|
58
59
|
else
|
59
|
-
excon_params[:response_block] = attach_for(block, msgs)
|
60
|
+
excon_params[:response_block] = attach_for(block, msgs, tty)
|
60
61
|
end
|
61
62
|
|
62
63
|
connection.post(
|
@@ -98,15 +99,20 @@ class Docker::Container
|
|
98
99
|
connection.get(path_for(:logs), opts)
|
99
100
|
end
|
100
101
|
|
102
|
+
def start!(opts = {})
|
103
|
+
connection.post(path_for(:start), {}, :body => opts.to_json)
|
104
|
+
self
|
105
|
+
end
|
106
|
+
|
107
|
+
def kill!(opts = {})
|
108
|
+
connection.post(path_for(:kill), opts)
|
109
|
+
self
|
110
|
+
end
|
111
|
+
|
101
112
|
# #start! and #kill! both perform the associated action and
|
102
113
|
# return the Container. #start and #kill do the same,
|
103
114
|
# but rescue from ServerErrors.
|
104
115
|
[:start, :kill].each do |method|
|
105
|
-
define_method(:"#{method}!") do |opts = {}|
|
106
|
-
connection.post(path_for(method), {}, :body => opts.to_json)
|
107
|
-
self
|
108
|
-
end
|
109
|
-
|
110
116
|
define_method(method) do |*args|
|
111
117
|
begin; public_send(:"#{method}!", *args); rescue ServerError; self end
|
112
118
|
end
|
@@ -187,8 +193,8 @@ class Docker::Container
|
|
187
193
|
"/containers/#{self.id}/#{resource}"
|
188
194
|
end
|
189
195
|
|
190
|
-
def hijack_for(stdin, block, msg_stack)
|
191
|
-
attach_block = attach_for(block, msg_stack)
|
196
|
+
def hijack_for(stdin, block, msg_stack, tty)
|
197
|
+
attach_block = attach_for(block, msg_stack, tty)
|
192
198
|
|
193
199
|
lambda do |socket|
|
194
200
|
debug "hijack: hijacking the HTTP socket"
|
@@ -224,7 +230,23 @@ class Docker::Container
|
|
224
230
|
end
|
225
231
|
|
226
232
|
# Method that takes chunks and calls the attached block for each mux'd message
|
227
|
-
def attach_for(block, msg_stack)
|
233
|
+
def attach_for(block, msg_stack, tty)
|
234
|
+
# If TTY is enabled expect raw data and append to stdout
|
235
|
+
if tty
|
236
|
+
attach_for_tty(block, msg_stack)
|
237
|
+
else
|
238
|
+
attach_for_multiplex(block, msg_stack)
|
239
|
+
end
|
240
|
+
end
|
241
|
+
|
242
|
+
def attach_for_tty(block, msg_stack)
|
243
|
+
return lambda do |c,r,t|
|
244
|
+
msg_stack.stdout_messages << c
|
245
|
+
block.call c if block
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
249
|
+
def attach_for_multiplex(block, msg_stack)
|
228
250
|
messages = Docker::Messages.new
|
229
251
|
lambda do |c,r,t|
|
230
252
|
messages = messages.decipher_messages(c)
|
@@ -245,6 +267,6 @@ class Docker::Container
|
|
245
267
|
Docker.logger.debug(msg) if Docker.logger
|
246
268
|
end
|
247
269
|
|
248
|
-
private :path_for, :attach_for, :debug
|
270
|
+
private :path_for, :attach_for, :attach_for_tty, :attach_for_multiplex, :debug
|
249
271
|
private_class_method :new
|
250
272
|
end
|
data/lib/docker/util.rb
CHANGED
@@ -36,7 +36,7 @@ module Docker::Util
|
|
36
36
|
def create_dir_tar(directory)
|
37
37
|
cwd = FileUtils.pwd
|
38
38
|
tempfile_name = Dir::Tmpname.create('out') {}
|
39
|
-
tempfile = File.open(tempfile_name, '
|
39
|
+
tempfile = File.open(tempfile_name, 'wb+')
|
40
40
|
FileUtils.cd(directory)
|
41
41
|
Archive::Tar::Minitar.pack('.', tempfile)
|
42
42
|
File.new(tempfile.path, 'r')
|
data/lib/docker/version.rb
CHANGED
@@ -239,7 +239,12 @@ describe Docker::Container do
|
|
239
239
|
end
|
240
240
|
|
241
241
|
describe '#kill' do
|
242
|
-
|
242
|
+
let(:command) { ['/bin/bash', '-c', 'while [ 1 ]; do echo hello; done'] }
|
243
|
+
subject { described_class.create('Cmd' => command, 'Image' => 'base') }
|
244
|
+
|
245
|
+
before do
|
246
|
+
subject.start
|
247
|
+
end
|
243
248
|
|
244
249
|
it 'kills the container', :vcr do
|
245
250
|
subject.kill
|
@@ -250,6 +255,33 @@ describe Docker::Container do
|
|
250
255
|
id.start_with?(subject.id)
|
251
256
|
}
|
252
257
|
end
|
258
|
+
|
259
|
+
context 'with a kill signal' do
|
260
|
+
let(:command) {
|
261
|
+
[
|
262
|
+
'/bin/bash',
|
263
|
+
'-c',
|
264
|
+
'trap echo SIGTERM; while [ 1 ]; do echo hello; done'
|
265
|
+
]
|
266
|
+
}
|
267
|
+
it 'kills the container', :vcr do
|
268
|
+
subject.kill(:signal => "SIGTERM")
|
269
|
+
expect(described_class.all.map(&:id)).to be_any { |id|
|
270
|
+
id.start_with?(subject.id)
|
271
|
+
}
|
272
|
+
expect(described_class.all(:all => true).map(&:id)).to be_any { |id|
|
273
|
+
id.start_with?(subject.id)
|
274
|
+
}
|
275
|
+
|
276
|
+
subject.kill(:signal => "SIGKILL")
|
277
|
+
expect(described_class.all.map(&:id)).to be_none { |id|
|
278
|
+
id.start_with?(subject.id)
|
279
|
+
}
|
280
|
+
expect(described_class.all(:all => true).map(&:id)).to be_any { |id|
|
281
|
+
id.start_with?(subject.id)
|
282
|
+
}
|
283
|
+
end
|
284
|
+
end
|
253
285
|
end
|
254
286
|
|
255
287
|
describe '#delete' do
|
data/spec/docker_spec.rb
CHANGED
@@ -5,10 +5,10 @@ http_interactions:
|
|
5
5
|
uri: unix:///var/run/docker.sock/v1.12/containers/create
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"Cmd":["
|
8
|
+
string: '{"Cmd":["/bin/bash","-c","while [ 1 ]; do echo hello; done"],"Image":"base"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.
|
11
|
+
- Swipely/Docker-API 1.13.0
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
response:
|
@@ -19,7 +19,7 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/json
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Mon, 30 Jun 2014 14:28:53 GMT
|
23
23
|
Content-Length:
|
24
24
|
- '90'
|
25
25
|
Connection:
|
@@ -27,18 +27,18 @@ http_interactions:
|
|
27
27
|
body:
|
28
28
|
encoding: UTF-8
|
29
29
|
string: |
|
30
|
-
{"Id":"
|
30
|
+
{"Id":"e7db5709022fd06d4e3c8bd0f493233d67b2a793dc07a4982b3c491ec61b2c83","Warnings":null}
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
32
|
+
recorded_at: Mon, 30 Jun 2014 14:28:53 GMT
|
33
33
|
- request:
|
34
34
|
method: post
|
35
|
-
uri: unix:///var/run/docker.sock/v1.12/containers/
|
35
|
+
uri: unix:///var/run/docker.sock/v1.12/containers/e7db5709022fd06d4e3c8bd0f493233d67b2a793dc07a4982b3c491ec61b2c83/start
|
36
36
|
body:
|
37
37
|
encoding: UTF-8
|
38
38
|
string: '{}'
|
39
39
|
headers:
|
40
40
|
User-Agent:
|
41
|
-
- Swipely/Docker-API 1.
|
41
|
+
- Swipely/Docker-API 1.13.0
|
42
42
|
Content-Type:
|
43
43
|
- application/json
|
44
44
|
response:
|
@@ -47,14 +47,39 @@ http_interactions:
|
|
47
47
|
message:
|
48
48
|
headers:
|
49
49
|
Date:
|
50
|
-
-
|
50
|
+
- Mon, 30 Jun 2014 14:28:53 GMT
|
51
51
|
Connection:
|
52
52
|
- close
|
53
53
|
body:
|
54
54
|
encoding: UTF-8
|
55
55
|
string: ''
|
56
56
|
http_version:
|
57
|
-
recorded_at:
|
57
|
+
recorded_at: Mon, 30 Jun 2014 14:28:53 GMT
|
58
|
+
- request:
|
59
|
+
method: post
|
60
|
+
uri: unix:///var/run/docker.sock/v1.12/containers/e7db5709022fd06d4e3c8bd0f493233d67b2a793dc07a4982b3c491ec61b2c83/kill
|
61
|
+
body:
|
62
|
+
encoding: US-ASCII
|
63
|
+
string: ''
|
64
|
+
headers:
|
65
|
+
User-Agent:
|
66
|
+
- Swipely/Docker-API 1.13.0
|
67
|
+
Content-Type:
|
68
|
+
- text/plain
|
69
|
+
response:
|
70
|
+
status:
|
71
|
+
code: 204
|
72
|
+
message:
|
73
|
+
headers:
|
74
|
+
Date:
|
75
|
+
- Mon, 30 Jun 2014 14:28:55 GMT
|
76
|
+
Connection:
|
77
|
+
- close
|
78
|
+
body:
|
79
|
+
encoding: UTF-8
|
80
|
+
string: ''
|
81
|
+
http_version:
|
82
|
+
recorded_at: Mon, 30 Jun 2014 14:28:55 GMT
|
58
83
|
- request:
|
59
84
|
method: get
|
60
85
|
uri: unix:///var/run/docker.sock/v1.12/containers/json
|
@@ -63,7 +88,7 @@ http_interactions:
|
|
63
88
|
string: ''
|
64
89
|
headers:
|
65
90
|
User-Agent:
|
66
|
-
- Swipely/Docker-API 1.
|
91
|
+
- Swipely/Docker-API 1.13.0
|
67
92
|
Content-Type:
|
68
93
|
- text/plain
|
69
94
|
response:
|
@@ -74,18 +99,16 @@ http_interactions:
|
|
74
99
|
Content-Type:
|
75
100
|
- application/json
|
76
101
|
Date:
|
77
|
-
-
|
102
|
+
- Mon, 30 Jun 2014 14:28:55 GMT
|
78
103
|
Content-Length:
|
79
|
-
- '
|
104
|
+
- '2'
|
80
105
|
Connection:
|
81
106
|
- close
|
82
107
|
body:
|
83
108
|
encoding: UTF-8
|
84
|
-
string:
|
85
|
-
[{"Command":"/while","Created":1403811778,"Id":"e3ef53f0c6fc463801a85b9c8d9b2fe348600c2e529c59fa0592da739912224d","Image":"41b70f59d9b6","Names":["/sleepy_yonath"],"Ports":[],"Status":"Up About a minute"}
|
86
|
-
]
|
109
|
+
string: '[]'
|
87
110
|
http_version:
|
88
|
-
recorded_at:
|
111
|
+
recorded_at: Mon, 30 Jun 2014 14:28:55 GMT
|
89
112
|
- request:
|
90
113
|
method: get
|
91
114
|
uri: unix:///var/run/docker.sock/v1.12/containers/json?all=true
|
@@ -94,7 +117,7 @@ http_interactions:
|
|
94
117
|
string: ''
|
95
118
|
headers:
|
96
119
|
User-Agent:
|
97
|
-
- Swipely/Docker-API 1.
|
120
|
+
- Swipely/Docker-API 1.13.0
|
98
121
|
Content-Type:
|
99
122
|
- text/plain
|
100
123
|
response:
|
@@ -105,7 +128,7 @@ http_interactions:
|
|
105
128
|
Content-Type:
|
106
129
|
- application/json
|
107
130
|
Date:
|
108
|
-
-
|
131
|
+
- Mon, 30 Jun 2014 14:28:55 GMT
|
109
132
|
Connection:
|
110
133
|
- close
|
111
134
|
Transfer-Encoding:
|
@@ -113,52 +136,22 @@ http_interactions:
|
|
113
136
|
body:
|
114
137
|
encoding: UTF-8
|
115
138
|
string: |-
|
116
|
-
[{"Command":"
|
117
|
-
,{"Command":"
|
118
|
-
,{"Command":"
|
119
|
-
,{"Command":"
|
120
|
-
,{"Command":"
|
121
|
-
,{"Command":"
|
122
|
-
,{"Command":"
|
123
|
-
,{"Command":"
|
124
|
-
,{"Command":"
|
125
|
-
,{"Command":"
|
126
|
-
,{"Command":"
|
127
|
-
,{"Command":"echo
|
128
|
-
,{"Command":"echo
|
129
|
-
,{"Command":"
|
130
|
-
,{"Command":"/bin/
|
131
|
-
,{"Command":"/bin/sh -c 'exec docker-registry'","Created":1403809143,"Id":"a36c555f919ec5ccc717cbaf50c655dcc4db776c5bcbb92a4bb05f7e80ca32a1","Image":"localhost:5000/registry:test","Names":["/sharp_turing"],"Ports":[],"Status":"Exited (0) 45 minutes ago"}
|
132
|
-
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402430887,"Id":"bb24a1dbb5fa6e7204101e9f0e47c11944d3400d68076c0df9dbec40daef9a5e","Image":"795d6b82162f","Names":["/stupefied_morse"],"Ports":[{"IP":"0.0.0.0","PrivatePort":8080,"PublicPort":8080,"Type":"tcp"}],"Status":"Exited (-1) 2 weeks ago"}
|
133
|
-
,{"Command":"bash","Created":1402430685,"Id":"6123f38072655a1587a67e4a7afc4cd4374a23e2dcc1e0f302ba67902ff2aa6c","Image":"795d6b82162f","Names":["/naughty_shockley"],"Ports":[{"IP":"0.0.0.0","PrivatePort":8080,"PublicPort":8080,"Type":"tcp"}],"Status":"Exited (130) 2 weeks ago"}
|
134
|
-
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402430595,"Id":"0cb45d8388407844b0e4c9fc4b691d5a81f27a6ed75ac69c26aa9ebf37d9ecae","Image":"795d6b82162f","Names":["/angry_heisenberg"],"Ports":[{"IP":"0.0.0.0","PrivatePort":8080,"PublicPort":8080,"Type":"tcp"}],"Status":"Exited (-1) 2 weeks ago"}
|
135
|
-
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402430547,"Id":"342f632dbf963b429e442b238a236ab3cf91885e71233d853dd2b405e32e4863","Image":"795d6b82162f","Names":["/jolly_heisenberg"],"Ports":[],"Status":"Exited (-1) 2 weeks ago"}
|
136
|
-
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402430293,"Id":"3164a68c936d209a2b1e2da323b52e1b043bc17fbd41f06ae8a356bd6c06152b","Image":"24b631358e16","Names":["/agitated_wright"],"Ports":[],"Status":"Exited (0) 2 weeks ago"}
|
137
|
-
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402430143,"Id":"33ccfbb00c9717cb24818072db9752401c1e099d7447cf413b9ee571e1bcd012","Image":"2e68e4667d3f","Names":["/determined_bardeen"],"Ports":[],"Status":"Exited (0) 2 weeks ago"}
|
138
|
-
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402429919,"Id":"cd063c45640ce588466f6d845e5a2fc25921f113a5ccbeefa9317fdcd8ee908a","Image":"76587bc93b7d","Names":["/boring_nobel"],"Ports":[],"Status":"Exited (0) 2 weeks ago"}
|
139
|
-
,{"Command":"/bin/bash","Created":1402429676,"Id":"bbc878209d4d7b98fe044e02ea13850f19d95ce56fb1428de1a81e426e74a735","Image":"76587bc93b7d","Names":["/tender_goldstine"],"Ports":[],"Status":"Exited (1) 2 weeks ago"}
|
140
|
-
,{"Command":"/bin/bash","Created":1402429664,"Id":"1d43aae6eb71e6b402f0df19509420fe15f8c1c097711dd97b9e41d55b6220c7","Image":"76587bc93b7d","Names":["/mad_tesla"],"Ports":[],"Status":"Exited (0) 2 weeks ago"}
|
141
|
-
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402429649,"Id":"2c6c24d1f0da0d3021c60a9dcd9e648daf6be4a40642ab8cce35480cf931e648","Image":"76587bc93b7d","Names":["/pensive_rosalind"],"Ports":[],"Status":"Exited (0) 2 weeks ago"}
|
142
|
-
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402429637,"Id":"cf21c9ae97e204c05748a596b3ebd2fc7e5793c33fd9ee787be78a2159d193fe","Image":"76587bc93b7d","Names":["/determined_ardinghelli"],"Ports":[{"IP":"0.0.0.0","PrivatePort":6379,"PublicPort":49160,"Type":"tcp"}],"Status":"Exited (0) 2 weeks ago"}
|
143
|
-
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402429619,"Id":"217b0f8aa6504f460de1ef2a559a8916c957a079adce597d3deb0c6046f2d7db","Image":"76587bc93b7d","Names":["/grave_torvalds"],"Ports":[{"IP":"0.0.0.0","PrivatePort":6379,"PublicPort":49159,"Type":"tcp"}],"Status":"Exited (0) 2 weeks ago"}
|
144
|
-
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402429610,"Id":"a7104142e02b3a64bf99e0489ed69eba92aaca2f1cb60ef8221bec7e90099263","Image":"76587bc93b7d","Names":["/thirsty_hoover"],"Ports":[{"IP":"127.0.0.1","PrivatePort":6379,"PublicPort":49158,"Type":"tcp"}],"Status":"Exited (0) 2 weeks ago"}
|
145
|
-
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402429596,"Id":"18c4d104ba348ae8af2a7f0ebbe1435011570dabcece81b10ba7f735bb52c142","Image":"76587bc93b7d","Names":["/backstabbing_mestorf"],"Ports":[],"Status":"Exited (0) 2 weeks ago"}
|
146
|
-
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402429583,"Id":"c9e54634fc5c8fb250c9137092e8cc047ab7496655b6d656a6a387b5994e4a3e","Image":"0cf0d2c9f3c9","Names":["/high_goodall"],"Ports":[],"Status":"Exited (0) 2 weeks ago"}
|
147
|
-
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402429574,"Id":"1900baf794a5734e406ca6226d5a5f62d85f2ad3db0a886654f15e692729741a","Image":"0cf0d2c9f3c9","Names":["/agitated_kirch"],"Ports":[{"IP":"127.0.0.1","PrivatePort":6379,"PublicPort":49157,"Type":"tcp"}],"Status":"Exited (0) 2 weeks ago"}
|
148
|
-
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402428859,"Id":"791283f719e9089e4c97ad5ea7096df317c5378db0255a7e9846830f326f11ad","Image":"0cf0d2c9f3c9","Names":["/romantic_fermi"],"Ports":[{"IP":"127.0.0.1","PrivatePort":6379,"PublicPort":49156,"Type":"tcp"}],"Status":"Exited (0) 2 weeks ago"}
|
149
|
-
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402427020,"Id":"b32593d5dfb04c83db55e798f52ecc89f57102b5d672cde4f0b55d5f4d3b856c","Image":"0cf0d2c9f3c9","Names":["/naughty_euclid"],"Ports":[{"IP":"127.0.0.1","PrivatePort":6379,"PublicPort":49155,"Type":"tcp"}],"Status":"Exited (0) 2 weeks ago"}
|
150
|
-
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402427017,"Id":"cdcab97cd8eeaeb8696024c92e28aedc182b2f3519e4e0445585f8fb501e44eb","Image":"0cf0d2c9f3c9","Names":["/high_lumiere"],"Ports":[],"Status":""}
|
151
|
-
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402426976,"Id":"1e095cd0c96b76a1131dd47dc0c54c153200320647ba1643c0b6e4efd397f1b5","Image":"0cf0d2c9f3c9","Names":["/goofy_wozniak"],"Ports":[],"Status":""}
|
152
|
-
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402426959,"Id":"53839f4d1e1c26db22b91db8e9ee2477822140c8397ebcdae627b5e4b4df27ce","Image":"0cf0d2c9f3c9","Names":["/drunk_ritchie"],"Ports":[],"Status":""}
|
153
|
-
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402426953,"Id":"5906226b2dd64485bc917d7c7296bfba04589b0954fdf793f122236e04d0b58c","Image":"0cf0d2c9f3c9","Names":["/jolly_fermi"],"Ports":[],"Status":""}
|
154
|
-
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402426945,"Id":"03ea0209a642de9adba85c2aea67802806eb23de7e9c3d886a9ab9cfcd708578","Image":"0cf0d2c9f3c9","Names":["/loving_wilson"],"Ports":[{"IP":"127.0.0.1","PrivatePort":6379,"PublicPort":49154,"Type":"tcp"}],"Status":"Exited (0) 2 weeks ago"}
|
155
|
-
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402426934,"Id":"428e6478f665780fe3300d316b3789c92575bbe728e196b1a33655096dfb9baa","Image":"0cf0d2c9f3c9","Names":["/angry_rosalind"],"Ports":[{"IP":"0.0.0.0","PrivatePort":6379,"PublicPort":49153,"Type":"tcp"}],"Status":"Exited (0) 2 weeks ago"}
|
156
|
-
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle exec foreman start'","Created":1402426799,"Id":"fc77637ca9d934565017ebe326ed29263778443831b799977257c2fa4255e666","Image":"0cf0d2c9f3c9","Names":["/sharp_lovelace"],"Ports":[],"Status":"Exited (0) 2 weeks ago"}
|
157
|
-
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle install'","Created":1402425989,"Id":"dc372caeee6f2d1f797ca4986c1c917aef25285cf0a97f3453a9c8ee6de226ef","Image":"f39385fcb372","Names":["/cocky_galileo"],"Ports":[],"Status":"Exited (5) 2 weeks ago"}
|
158
|
-
,{"Command":"/bin/sh -c 'gem install atomic -v '1.1.10' --no-user-install'","Created":1402425859,"Id":"bff3f8dff516f8ec53890e52e30f07ea6a34887d12de2133e1ec2f03a47e7a33","Image":"e41a4fd75845","Names":["/thirsty_newton"],"Ports":[],"Status":"Exited (1) 2 weeks ago"}
|
159
|
-
,{"Command":"/bin/sh -c 'cd /app \u0026\u0026 bundle install'","Created":1402425808,"Id":"c7f35941f9683ee1d6b78b25e323d6678ed02a8390b48f7609fd506b7e1dbfe9","Image":"4d1584ae379a","Names":["/stupefied_heisenberg"],"Ports":[],"Status":"Exited (5) 2 weeks ago"}
|
160
|
-
,{"Command":"/bin/sh -c 'gem install bundler --no-user-install'","Created":1402425760,"Id":"e1d25c1ddd9a471fdbc381b95820aba9f84b334efe9b815ffbf63cfca89399d7","Image":"e607630fc5e6","Names":["/insane_fermi"],"Ports":[],"Status":"Exited (0) 2 weeks ago"}
|
139
|
+
[{"Command":"/bin/bash -c 'while [ 1 ]; do echo hello; done'","Created":1404138533,"Id":"e7db5709022fd06d4e3c8bd0f493233d67b2a793dc07a4982b3c491ec61b2c83","Image":"base:latest","Names":["/stoic_bartik"],"Ports":[],"Status":"Exited (-1) Less than a second ago"}
|
140
|
+
,{"Command":"\"/bin/bash -c 'trap \"\" SIGTERM; while [ 1 ]; do echo hello; done'\"","Created":1404138438,"Id":"3a2d6022918aa91e4d8b56d7b29420ee45476e27c0f83889d547e0cbc44483c8","Image":"base:latest","Names":["/focused_mayer"],"Ports":[],"Status":"Exited (-1) About a minute ago"}
|
141
|
+
,{"Command":"/bin/bash -c 'while [ 1 ]; do echo hello; done'","Created":1404138414,"Id":"05bdffae4dd9ece30ad25869ff1f616486ada32ad70916838564b32a8866cd40","Image":"base:latest","Names":["/trusting_perlman"],"Ports":[],"Status":"Exited (-1) About a minute ago"}
|
142
|
+
,{"Command":"\"/bin/bash -c 'trap \"\" SIGTERM; while [ 1 ]; do echo hello; done'\"","Created":1404138313,"Id":"fda96aefea21efe7a4dfd79d746ece41bb50907422d047a4e595f8e2f52e4b78","Image":"base:latest","Names":["/sharp_galileo"],"Ports":[],"Status":"Exited (-1) 3 minutes ago"}
|
143
|
+
,{"Command":"/bin/bash -c 'while [ 1 ]; do echo hello; done'","Created":1404138312,"Id":"4d12860bcd0dc646005c06fe2c171b4112dd81a0b8a1cbbf6c566ca1fa4c6953","Image":"base:latest","Names":["/agitated_engelbart"],"Ports":[],"Status":"Exited (-1) 3 minutes ago"}
|
144
|
+
,{"Command":"\"bash -c 'if [ -t 1 ]; then echo -n \"I'm a TTY!\"; fi'\"","Created":1404136615,"Id":"98a0f56b2c636d5064379b7926832f0d74cc3f943d4dd0dc2260a7026b90a96c","Image":"base:latest","Names":["/boring_thompson"],"Ports":[],"Status":"Exited (0) 31 minutes ago"}
|
145
|
+
,{"Command":"\"bash -c 'if [ -t 1 ]; then echo -n \"I'm a TTY!\"; fi'\"","Created":1404136493,"Id":"3f0e369bd075b7955f5478cade06cb8381a914b9119fa29ee9c216ae314fafdc","Image":"base:latest","Names":["/pensive_leakey"],"Ports":[],"Status":"Exited (0) 33 minutes ago"}
|
146
|
+
,{"Command":"bash","Created":1403880270,"Id":"07639598c2822237a2f047a6172dea0f45d84c4b31dfc9f63877ddf63cb30616","Image":"ubuntu:latest","Names":["/elegant_albattani"],"Ports":[],"Status":"Exited (0) 47 hours ago"}
|
147
|
+
,{"Command":"bash","Created":1403880246,"Id":"349ba74bf51d253317d94044d6c20d129b264dfd16bc5d4097a30b5bea387e48","Image":"ubuntu:latest","Names":["/lonely_bardeen"],"Ports":[],"Status":"Exited (0) 2 days ago"}
|
148
|
+
,{"Command":"\"/bin/bash -lc \"while [ 1 ]; do echo hi; done\"\"","Created":1403880236,"Id":"584efc0cdeaf5e5676b62baf3a601cb730e17ff41c49ebe0b18324fb23bbb63a","Image":"ubuntu:latest","Names":["/jolly_yonath"],"Ports":[],"Status":"Exited (1) 2 days ago"}
|
149
|
+
,{"Command":"/bin/bash -lc while [ 1 ]; do echo hi; done","Created":1403880225,"Id":"644b149356fb4cb18f4526b61581f5507d1f8fa96a54f6d9f386c57de75bd1a0","Image":"ubuntu:latest","Names":["/clever_colden"],"Ports":[],"Status":"Exited (1) 2 days ago"}
|
150
|
+
,{"Command":"while [ 1 ]; do echo hi; done","Created":1403880219,"Id":"a98acea9bd23b1e5af827f0c908115186742edf0523146eaf420b42688a2109d","Image":"ubuntu:latest","Names":["/jovial_mccarthy"],"Ports":[],"Status":"Exited (1) 2 days ago"}
|
151
|
+
,{"Command":"while [ 1 ]; do echo hi; done","Created":1403880205,"Id":"7df16e2c57020a6471a80cf13084d689d43af60cd867df78350ee893c5724f80","Image":"ubuntu:latest","Names":["/goofy_hopper"],"Ports":[],"Status":"Exited (1) 2 days ago"}
|
152
|
+
,{"Command":"/bin/bash -c 'while [ 1 ]; do echo hi; done'","Created":1403880195,"Id":"c544ec7940bd88b88b6ccbd4c8d4f33ac6056b1c27b9c0f7fc2327eb462b9c47","Image":"ubuntu:latest","Names":["/lonely_tesla"],"Ports":[],"Status":"Exited (1) 2 days ago"}
|
153
|
+
,{"Command":"/bin/bash -lc 'while [ 1 ]; do echo hi; done'","Created":1403880190,"Id":"4e725734f92afc720a56e498266f078529a2ce8bc1f325948b25ada131e9472f","Image":"ubuntu:latest","Names":["/hopeful_kowalevski"],"Ports":[],"Status":"Exited (1) 2 days ago"}
|
161
154
|
]
|
162
155
|
http_version:
|
163
|
-
recorded_at:
|
156
|
+
recorded_at: Mon, 30 Jun 2014 14:28:55 GMT
|
164
157
|
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,265 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: unix:///var/run/docker.sock/v1.12/containers/create
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"Cmd":["/bin/bash","-c","trap echo SIGTERM; while [ 1 ]; do echo hello;
|
9
|
+
done"],"Image":"base"}'
|
10
|
+
headers:
|
11
|
+
User-Agent:
|
12
|
+
- Swipely/Docker-API 1.13.0
|
13
|
+
Content-Type:
|
14
|
+
- application/json
|
15
|
+
response:
|
16
|
+
status:
|
17
|
+
code: 201
|
18
|
+
message:
|
19
|
+
headers:
|
20
|
+
Content-Type:
|
21
|
+
- application/json
|
22
|
+
Date:
|
23
|
+
- Mon, 30 Jun 2014 14:30:49 GMT
|
24
|
+
Content-Length:
|
25
|
+
- '90'
|
26
|
+
Connection:
|
27
|
+
- close
|
28
|
+
body:
|
29
|
+
encoding: UTF-8
|
30
|
+
string: |
|
31
|
+
{"Id":"f6c1ce0f958c5a584ee74ebb78f19f69016b53be5dfcf11347f4b587cabaaec8","Warnings":null}
|
32
|
+
http_version:
|
33
|
+
recorded_at: Mon, 30 Jun 2014 14:30:49 GMT
|
34
|
+
- request:
|
35
|
+
method: post
|
36
|
+
uri: unix:///var/run/docker.sock/v1.12/containers/f6c1ce0f958c5a584ee74ebb78f19f69016b53be5dfcf11347f4b587cabaaec8/start
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: '{}'
|
40
|
+
headers:
|
41
|
+
User-Agent:
|
42
|
+
- Swipely/Docker-API 1.13.0
|
43
|
+
Content-Type:
|
44
|
+
- application/json
|
45
|
+
response:
|
46
|
+
status:
|
47
|
+
code: 204
|
48
|
+
message:
|
49
|
+
headers:
|
50
|
+
Date:
|
51
|
+
- Mon, 30 Jun 2014 14:30:49 GMT
|
52
|
+
Connection:
|
53
|
+
- close
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: ''
|
57
|
+
http_version:
|
58
|
+
recorded_at: Mon, 30 Jun 2014 14:30:49 GMT
|
59
|
+
- request:
|
60
|
+
method: post
|
61
|
+
uri: unix:///var/run/docker.sock/v1.12/containers/f6c1ce0f958c5a584ee74ebb78f19f69016b53be5dfcf11347f4b587cabaaec8/kill?signal=SIGTERM
|
62
|
+
body:
|
63
|
+
encoding: US-ASCII
|
64
|
+
string: ''
|
65
|
+
headers:
|
66
|
+
User-Agent:
|
67
|
+
- Swipely/Docker-API 1.13.0
|
68
|
+
Content-Type:
|
69
|
+
- text/plain
|
70
|
+
response:
|
71
|
+
status:
|
72
|
+
code: 204
|
73
|
+
message:
|
74
|
+
headers:
|
75
|
+
Date:
|
76
|
+
- Mon, 30 Jun 2014 14:30:49 GMT
|
77
|
+
Connection:
|
78
|
+
- close
|
79
|
+
body:
|
80
|
+
encoding: UTF-8
|
81
|
+
string: ''
|
82
|
+
http_version:
|
83
|
+
recorded_at: Mon, 30 Jun 2014 14:30:49 GMT
|
84
|
+
- request:
|
85
|
+
method: get
|
86
|
+
uri: unix:///var/run/docker.sock/v1.12/containers/json
|
87
|
+
body:
|
88
|
+
encoding: US-ASCII
|
89
|
+
string: ''
|
90
|
+
headers:
|
91
|
+
User-Agent:
|
92
|
+
- Swipely/Docker-API 1.13.0
|
93
|
+
Content-Type:
|
94
|
+
- text/plain
|
95
|
+
response:
|
96
|
+
status:
|
97
|
+
code: 200
|
98
|
+
message:
|
99
|
+
headers:
|
100
|
+
Content-Type:
|
101
|
+
- application/json
|
102
|
+
Date:
|
103
|
+
- Mon, 30 Jun 2014 14:30:49 GMT
|
104
|
+
Content-Length:
|
105
|
+
- '277'
|
106
|
+
Connection:
|
107
|
+
- close
|
108
|
+
body:
|
109
|
+
encoding: UTF-8
|
110
|
+
string: |-
|
111
|
+
[{"Command":"/bin/bash -c 'trap echo SIGTERM; while [ 1 ]; do echo hello; done'","Created":1404138649,"Id":"f6c1ce0f958c5a584ee74ebb78f19f69016b53be5dfcf11347f4b587cabaaec8","Image":"base:latest","Names":["/determined_kowalevski"],"Ports":[],"Status":"Up Less than a second"}
|
112
|
+
]
|
113
|
+
http_version:
|
114
|
+
recorded_at: Mon, 30 Jun 2014 14:30:49 GMT
|
115
|
+
- request:
|
116
|
+
method: get
|
117
|
+
uri: unix:///var/run/docker.sock/v1.12/containers/json?all=true
|
118
|
+
body:
|
119
|
+
encoding: US-ASCII
|
120
|
+
string: ''
|
121
|
+
headers:
|
122
|
+
User-Agent:
|
123
|
+
- Swipely/Docker-API 1.13.0
|
124
|
+
Content-Type:
|
125
|
+
- text/plain
|
126
|
+
response:
|
127
|
+
status:
|
128
|
+
code: 200
|
129
|
+
message:
|
130
|
+
headers:
|
131
|
+
Content-Type:
|
132
|
+
- application/json
|
133
|
+
Date:
|
134
|
+
- Mon, 30 Jun 2014 14:30:49 GMT
|
135
|
+
Connection:
|
136
|
+
- close
|
137
|
+
Transfer-Encoding:
|
138
|
+
- ''
|
139
|
+
body:
|
140
|
+
encoding: UTF-8
|
141
|
+
string: |-
|
142
|
+
[{"Command":"/bin/bash -c 'trap echo SIGTERM; while [ 1 ]; do echo hello; done'","Created":1404138649,"Id":"f6c1ce0f958c5a584ee74ebb78f19f69016b53be5dfcf11347f4b587cabaaec8","Image":"base:latest","Names":["/determined_kowalevski"],"Ports":[],"Status":"Up Less than a second"}
|
143
|
+
,{"Command":"/bin/bash -c 'trap echo SIGTERM; while [ 1 ]; do echo hello; done'","Created":1404138612,"Id":"259a695ed0085ad730abf9ce193c9d7ee3af12b72ebdda29360603291582409d","Image":"base:latest","Names":["/condescending_mclean"],"Ports":[],"Status":"Exited (-1) 32 seconds ago"}
|
144
|
+
,{"Command":"/bin/bash -c 'trap echo SIGTERM; while [ 1 ]; do echo hello; done'","Created":1404138535,"Id":"cbfa145f2cd0130dee85c94bb70eec3c3cff23892e60a42d2404377a8b9c02ad","Image":"base:latest","Names":["/sharp_archimedes"],"Ports":[],"Status":"Exited (-1) About a minute ago"}
|
145
|
+
,{"Command":"/bin/bash -c 'while [ 1 ]; do echo hello; done'","Created":1404138533,"Id":"e7db5709022fd06d4e3c8bd0f493233d67b2a793dc07a4982b3c491ec61b2c83","Image":"base:latest","Names":["/stoic_bartik"],"Ports":[],"Status":"Exited (-1) About a minute ago"}
|
146
|
+
,{"Command":"\"/bin/bash -c 'trap \"\" SIGTERM; while [ 1 ]; do echo hello; done'\"","Created":1404138438,"Id":"3a2d6022918aa91e4d8b56d7b29420ee45476e27c0f83889d547e0cbc44483c8","Image":"base:latest","Names":["/focused_mayer"],"Ports":[],"Status":"Exited (-1) 3 minutes ago"}
|
147
|
+
,{"Command":"/bin/bash -c 'while [ 1 ]; do echo hello; done'","Created":1404138414,"Id":"05bdffae4dd9ece30ad25869ff1f616486ada32ad70916838564b32a8866cd40","Image":"base:latest","Names":["/trusting_perlman"],"Ports":[],"Status":"Exited (-1) 3 minutes ago"}
|
148
|
+
,{"Command":"\"/bin/bash -c 'trap \"\" SIGTERM; while [ 1 ]; do echo hello; done'\"","Created":1404138313,"Id":"fda96aefea21efe7a4dfd79d746ece41bb50907422d047a4e595f8e2f52e4b78","Image":"base:latest","Names":["/sharp_galileo"],"Ports":[],"Status":"Exited (-1) 5 minutes ago"}
|
149
|
+
,{"Command":"/bin/bash -c 'while [ 1 ]; do echo hello; done'","Created":1404138312,"Id":"4d12860bcd0dc646005c06fe2c171b4112dd81a0b8a1cbbf6c566ca1fa4c6953","Image":"base:latest","Names":["/agitated_engelbart"],"Ports":[],"Status":"Exited (-1) 5 minutes ago"}
|
150
|
+
,{"Command":"\"bash -c 'if [ -t 1 ]; then echo -n \"I'm a TTY!\"; fi'\"","Created":1404136615,"Id":"98a0f56b2c636d5064379b7926832f0d74cc3f943d4dd0dc2260a7026b90a96c","Image":"base:latest","Names":["/boring_thompson"],"Ports":[],"Status":"Exited (0) 33 minutes ago"}
|
151
|
+
,{"Command":"\"bash -c 'if [ -t 1 ]; then echo -n \"I'm a TTY!\"; fi'\"","Created":1404136493,"Id":"3f0e369bd075b7955f5478cade06cb8381a914b9119fa29ee9c216ae314fafdc","Image":"base:latest","Names":["/pensive_leakey"],"Ports":[],"Status":"Exited (0) 35 minutes ago"}
|
152
|
+
,{"Command":"bash","Created":1403880270,"Id":"07639598c2822237a2f047a6172dea0f45d84c4b31dfc9f63877ddf63cb30616","Image":"ubuntu:latest","Names":["/elegant_albattani"],"Ports":[],"Status":"Exited (0) 47 hours ago"}
|
153
|
+
,{"Command":"bash","Created":1403880246,"Id":"349ba74bf51d253317d94044d6c20d129b264dfd16bc5d4097a30b5bea387e48","Image":"ubuntu:latest","Names":["/lonely_bardeen"],"Ports":[],"Status":"Exited (0) 2 days ago"}
|
154
|
+
,{"Command":"\"/bin/bash -lc \"while [ 1 ]; do echo hi; done\"\"","Created":1403880236,"Id":"584efc0cdeaf5e5676b62baf3a601cb730e17ff41c49ebe0b18324fb23bbb63a","Image":"ubuntu:latest","Names":["/jolly_yonath"],"Ports":[],"Status":"Exited (1) 2 days ago"}
|
155
|
+
,{"Command":"/bin/bash -lc while [ 1 ]; do echo hi; done","Created":1403880225,"Id":"644b149356fb4cb18f4526b61581f5507d1f8fa96a54f6d9f386c57de75bd1a0","Image":"ubuntu:latest","Names":["/clever_colden"],"Ports":[],"Status":"Exited (1) 2 days ago"}
|
156
|
+
,{"Command":"while [ 1 ]; do echo hi; done","Created":1403880219,"Id":"a98acea9bd23b1e5af827f0c908115186742edf0523146eaf420b42688a2109d","Image":"ubuntu:latest","Names":["/jovial_mccarthy"],"Ports":[],"Status":"Exited (1) 2 days ago"}
|
157
|
+
,{"Command":"while [ 1 ]; do echo hi; done","Created":1403880205,"Id":"7df16e2c57020a6471a80cf13084d689d43af60cd867df78350ee893c5724f80","Image":"ubuntu:latest","Names":["/goofy_hopper"],"Ports":[],"Status":"Exited (1) 2 days ago"}
|
158
|
+
,{"Command":"/bin/bash -c 'while [ 1 ]; do echo hi; done'","Created":1403880195,"Id":"c544ec7940bd88b88b6ccbd4c8d4f33ac6056b1c27b9c0f7fc2327eb462b9c47","Image":"ubuntu:latest","Names":["/lonely_tesla"],"Ports":[],"Status":"Exited (1) 2 days ago"}
|
159
|
+
,{"Command":"/bin/bash -lc 'while [ 1 ]; do echo hi; done'","Created":1403880190,"Id":"4e725734f92afc720a56e498266f078529a2ce8bc1f325948b25ada131e9472f","Image":"ubuntu:latest","Names":["/hopeful_kowalevski"],"Ports":[],"Status":"Exited (1) 2 days ago"}
|
160
|
+
]
|
161
|
+
http_version:
|
162
|
+
recorded_at: Mon, 30 Jun 2014 14:30:49 GMT
|
163
|
+
- request:
|
164
|
+
method: post
|
165
|
+
uri: unix:///var/run/docker.sock/v1.12/containers/f6c1ce0f958c5a584ee74ebb78f19f69016b53be5dfcf11347f4b587cabaaec8/kill?signal=SIGKILL
|
166
|
+
body:
|
167
|
+
encoding: US-ASCII
|
168
|
+
string: ''
|
169
|
+
headers:
|
170
|
+
User-Agent:
|
171
|
+
- Swipely/Docker-API 1.13.0
|
172
|
+
Content-Type:
|
173
|
+
- text/plain
|
174
|
+
response:
|
175
|
+
status:
|
176
|
+
code: 204
|
177
|
+
message:
|
178
|
+
headers:
|
179
|
+
Date:
|
180
|
+
- Mon, 30 Jun 2014 14:30:49 GMT
|
181
|
+
Connection:
|
182
|
+
- close
|
183
|
+
body:
|
184
|
+
encoding: UTF-8
|
185
|
+
string: ''
|
186
|
+
http_version:
|
187
|
+
recorded_at: Mon, 30 Jun 2014 14:30:49 GMT
|
188
|
+
- request:
|
189
|
+
method: get
|
190
|
+
uri: unix:///var/run/docker.sock/v1.12/containers/json
|
191
|
+
body:
|
192
|
+
encoding: US-ASCII
|
193
|
+
string: ''
|
194
|
+
headers:
|
195
|
+
User-Agent:
|
196
|
+
- Swipely/Docker-API 1.13.0
|
197
|
+
Content-Type:
|
198
|
+
- text/plain
|
199
|
+
response:
|
200
|
+
status:
|
201
|
+
code: 200
|
202
|
+
message:
|
203
|
+
headers:
|
204
|
+
Content-Type:
|
205
|
+
- application/json
|
206
|
+
Date:
|
207
|
+
- Mon, 30 Jun 2014 14:30:49 GMT
|
208
|
+
Content-Length:
|
209
|
+
- '2'
|
210
|
+
Connection:
|
211
|
+
- close
|
212
|
+
body:
|
213
|
+
encoding: UTF-8
|
214
|
+
string: '[]'
|
215
|
+
http_version:
|
216
|
+
recorded_at: Mon, 30 Jun 2014 14:30:49 GMT
|
217
|
+
- request:
|
218
|
+
method: get
|
219
|
+
uri: unix:///var/run/docker.sock/v1.12/containers/json?all=true
|
220
|
+
body:
|
221
|
+
encoding: US-ASCII
|
222
|
+
string: ''
|
223
|
+
headers:
|
224
|
+
User-Agent:
|
225
|
+
- Swipely/Docker-API 1.13.0
|
226
|
+
Content-Type:
|
227
|
+
- text/plain
|
228
|
+
response:
|
229
|
+
status:
|
230
|
+
code: 200
|
231
|
+
message:
|
232
|
+
headers:
|
233
|
+
Content-Type:
|
234
|
+
- application/json
|
235
|
+
Date:
|
236
|
+
- Mon, 30 Jun 2014 14:30:49 GMT
|
237
|
+
Connection:
|
238
|
+
- close
|
239
|
+
Transfer-Encoding:
|
240
|
+
- ''
|
241
|
+
body:
|
242
|
+
encoding: UTF-8
|
243
|
+
string: |-
|
244
|
+
[{"Command":"/bin/bash -c 'trap echo SIGTERM; while [ 1 ]; do echo hello; done'","Created":1404138649,"Id":"f6c1ce0f958c5a584ee74ebb78f19f69016b53be5dfcf11347f4b587cabaaec8","Image":"base:latest","Names":["/determined_kowalevski"],"Ports":[],"Status":"Exited (-1) Less than a second ago"}
|
245
|
+
,{"Command":"/bin/bash -c 'trap echo SIGTERM; while [ 1 ]; do echo hello; done'","Created":1404138612,"Id":"259a695ed0085ad730abf9ce193c9d7ee3af12b72ebdda29360603291582409d","Image":"base:latest","Names":["/condescending_mclean"],"Ports":[],"Status":"Exited (-1) 33 seconds ago"}
|
246
|
+
,{"Command":"/bin/bash -c 'trap echo SIGTERM; while [ 1 ]; do echo hello; done'","Created":1404138535,"Id":"cbfa145f2cd0130dee85c94bb70eec3c3cff23892e60a42d2404377a8b9c02ad","Image":"base:latest","Names":["/sharp_archimedes"],"Ports":[],"Status":"Exited (-1) About a minute ago"}
|
247
|
+
,{"Command":"/bin/bash -c 'while [ 1 ]; do echo hello; done'","Created":1404138533,"Id":"e7db5709022fd06d4e3c8bd0f493233d67b2a793dc07a4982b3c491ec61b2c83","Image":"base:latest","Names":["/stoic_bartik"],"Ports":[],"Status":"Exited (-1) About a minute ago"}
|
248
|
+
,{"Command":"\"/bin/bash -c 'trap \"\" SIGTERM; while [ 1 ]; do echo hello; done'\"","Created":1404138438,"Id":"3a2d6022918aa91e4d8b56d7b29420ee45476e27c0f83889d547e0cbc44483c8","Image":"base:latest","Names":["/focused_mayer"],"Ports":[],"Status":"Exited (-1) 3 minutes ago"}
|
249
|
+
,{"Command":"/bin/bash -c 'while [ 1 ]; do echo hello; done'","Created":1404138414,"Id":"05bdffae4dd9ece30ad25869ff1f616486ada32ad70916838564b32a8866cd40","Image":"base:latest","Names":["/trusting_perlman"],"Ports":[],"Status":"Exited (-1) 3 minutes ago"}
|
250
|
+
,{"Command":"\"/bin/bash -c 'trap \"\" SIGTERM; while [ 1 ]; do echo hello; done'\"","Created":1404138313,"Id":"fda96aefea21efe7a4dfd79d746ece41bb50907422d047a4e595f8e2f52e4b78","Image":"base:latest","Names":["/sharp_galileo"],"Ports":[],"Status":"Exited (-1) 5 minutes ago"}
|
251
|
+
,{"Command":"/bin/bash -c 'while [ 1 ]; do echo hello; done'","Created":1404138312,"Id":"4d12860bcd0dc646005c06fe2c171b4112dd81a0b8a1cbbf6c566ca1fa4c6953","Image":"base:latest","Names":["/agitated_engelbart"],"Ports":[],"Status":"Exited (-1) 5 minutes ago"}
|
252
|
+
,{"Command":"\"bash -c 'if [ -t 1 ]; then echo -n \"I'm a TTY!\"; fi'\"","Created":1404136615,"Id":"98a0f56b2c636d5064379b7926832f0d74cc3f943d4dd0dc2260a7026b90a96c","Image":"base:latest","Names":["/boring_thompson"],"Ports":[],"Status":"Exited (0) 33 minutes ago"}
|
253
|
+
,{"Command":"\"bash -c 'if [ -t 1 ]; then echo -n \"I'm a TTY!\"; fi'\"","Created":1404136493,"Id":"3f0e369bd075b7955f5478cade06cb8381a914b9119fa29ee9c216ae314fafdc","Image":"base:latest","Names":["/pensive_leakey"],"Ports":[],"Status":"Exited (0) 35 minutes ago"}
|
254
|
+
,{"Command":"bash","Created":1403880270,"Id":"07639598c2822237a2f047a6172dea0f45d84c4b31dfc9f63877ddf63cb30616","Image":"ubuntu:latest","Names":["/elegant_albattani"],"Ports":[],"Status":"Exited (0) 47 hours ago"}
|
255
|
+
,{"Command":"bash","Created":1403880246,"Id":"349ba74bf51d253317d94044d6c20d129b264dfd16bc5d4097a30b5bea387e48","Image":"ubuntu:latest","Names":["/lonely_bardeen"],"Ports":[],"Status":"Exited (0) 2 days ago"}
|
256
|
+
,{"Command":"\"/bin/bash -lc \"while [ 1 ]; do echo hi; done\"\"","Created":1403880236,"Id":"584efc0cdeaf5e5676b62baf3a601cb730e17ff41c49ebe0b18324fb23bbb63a","Image":"ubuntu:latest","Names":["/jolly_yonath"],"Ports":[],"Status":"Exited (1) 2 days ago"}
|
257
|
+
,{"Command":"/bin/bash -lc while [ 1 ]; do echo hi; done","Created":1403880225,"Id":"644b149356fb4cb18f4526b61581f5507d1f8fa96a54f6d9f386c57de75bd1a0","Image":"ubuntu:latest","Names":["/clever_colden"],"Ports":[],"Status":"Exited (1) 2 days ago"}
|
258
|
+
,{"Command":"while [ 1 ]; do echo hi; done","Created":1403880219,"Id":"a98acea9bd23b1e5af827f0c908115186742edf0523146eaf420b42688a2109d","Image":"ubuntu:latest","Names":["/jovial_mccarthy"],"Ports":[],"Status":"Exited (1) 2 days ago"}
|
259
|
+
,{"Command":"while [ 1 ]; do echo hi; done","Created":1403880205,"Id":"7df16e2c57020a6471a80cf13084d689d43af60cd867df78350ee893c5724f80","Image":"ubuntu:latest","Names":["/goofy_hopper"],"Ports":[],"Status":"Exited (1) 2 days ago"}
|
260
|
+
,{"Command":"/bin/bash -c 'while [ 1 ]; do echo hi; done'","Created":1403880195,"Id":"c544ec7940bd88b88b6ccbd4c8d4f33ac6056b1c27b9c0f7fc2327eb462b9c47","Image":"ubuntu:latest","Names":["/lonely_tesla"],"Ports":[],"Status":"Exited (1) 2 days ago"}
|
261
|
+
,{"Command":"/bin/bash -lc 'while [ 1 ]; do echo hi; done'","Created":1403880190,"Id":"4e725734f92afc720a56e498266f078529a2ce8bc1f325948b25ada131e9472f","Image":"ubuntu:latest","Names":["/hopeful_kowalevski"],"Ports":[],"Status":"Exited (1) 2 days ago"}
|
262
|
+
]
|
263
|
+
http_version:
|
264
|
+
recorded_at: Mon, 30 Jun 2014 14:30:49 GMT
|
265
|
+
recorded_with: VCR 2.9.2
|
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.13.
|
4
|
+
version: 1.13.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Swipely, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.38.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.38.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: json
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -223,6 +223,7 @@ files:
|
|
223
223
|
- spec/vcr/Docker_Container/_get/when_the_HTTP_response_is_a_200/materializes_the_Container_into_a_Docker_Container.yml
|
224
224
|
- spec/vcr/Docker_Container/_json/returns_the_description_as_a_Hash.yml
|
225
225
|
- spec/vcr/Docker_Container/_kill/kills_the_container.yml
|
226
|
+
- spec/vcr/Docker_Container/_kill/with_a_kill_signal/kills_the_container.yml
|
226
227
|
- spec/vcr/Docker_Container/_logs/when_not_selecting_any_stream/returns_the_error_message.yml
|
227
228
|
- spec/vcr/Docker_Container/_logs/when_selecting_stdout/returns_blank_logs.yml
|
228
229
|
- spec/vcr/Docker_Container/_pause/pauses_the_container.yml
|
@@ -322,6 +323,7 @@ test_files:
|
|
322
323
|
- spec/vcr/Docker_Container/_get/when_the_HTTP_response_is_a_200/materializes_the_Container_into_a_Docker_Container.yml
|
323
324
|
- spec/vcr/Docker_Container/_json/returns_the_description_as_a_Hash.yml
|
324
325
|
- spec/vcr/Docker_Container/_kill/kills_the_container.yml
|
326
|
+
- spec/vcr/Docker_Container/_kill/with_a_kill_signal/kills_the_container.yml
|
325
327
|
- spec/vcr/Docker_Container/_logs/when_not_selecting_any_stream/returns_the_error_message.yml
|
326
328
|
- spec/vcr/Docker_Container/_logs/when_selecting_stdout/returns_blank_logs.yml
|
327
329
|
- spec/vcr/Docker_Container/_pause/pauses_the_container.yml
|