docker-api 1.22.2 → 1.22.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/docker/container.rb +10 -7
- data/lib/docker/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 117d898640ffe2329cae78db491920f1dd942034
|
4
|
+
data.tar.gz: 50c85dd32c4df0709fb643cbf457291cdfe286b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efdd1ad76e89d1a369377382479fe98b1d83b311f7f05a8635732fb67d0222219b6b3fe126180fc898951a9857894fc9923e5c94383965eb9258bf2232881bfa
|
7
|
+
data.tar.gz: 7625bea32eb364d2911c7ddc4e42bf07387629002ef5b58fec9d6af9a9087b44dd469f950db7bb137326ba0bf4d2d9fc56b09b1ea091052b5333b5a2ab95c50e
|
data/README.md
CHANGED
@@ -390,6 +390,10 @@ Docker::Container.get('500f53b25e6e')
|
|
390
390
|
# Request all of the Containers. By default, will only return the running Containers.
|
391
391
|
Docker::Container.all(:all => true)
|
392
392
|
# => [Docker::Container { :id => , :connection => Docker::Connection { :url => tcp://localhost, :options => {:port=>2375} } }]
|
393
|
+
|
394
|
+
# Request all of the Containers, filtering by status exited.
|
395
|
+
Docker::Container.all(all: true, filters: { status: ["exited"] }.to_json)
|
396
|
+
# => [Docker::Container { :id => , :connection => Docker::Connection { :url => tcp://localhost, :options => {:port=>2375} } }]
|
393
397
|
```
|
394
398
|
|
395
399
|
## Events
|
data/lib/docker/container.rb
CHANGED
@@ -50,13 +50,16 @@ class Docker::Container
|
|
50
50
|
|
51
51
|
# Create Exec Instance
|
52
52
|
instance = Docker::Exec.create(
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
53
|
+
{
|
54
|
+
'Container' => self.id,
|
55
|
+
'User' => user,
|
56
|
+
'AttachStdin' => !!stdin,
|
57
|
+
'AttachStdout' => stdout,
|
58
|
+
'AttachStderr' => stderr,
|
59
|
+
'Tty' => tty,
|
60
|
+
'Cmd' => command
|
61
|
+
},
|
62
|
+
self.connection
|
60
63
|
)
|
61
64
|
|
62
65
|
start_opts = {
|
data/lib/docker/version.rb
CHANGED
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
|
+
version: 1.22.3
|
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-
|
11
|
+
date: 2015-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|