docker-api 1.11.2 → 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/docker/image.rb +10 -10
- data/lib/docker/version.rb +2 -2
- data/spec/docker/container_spec.rb +0 -8
- data/spec/docker/image_spec.rb +3 -3
- data/spec/docker_spec.rb +6 -4
- data/spec/vcr/Docker/_authenticate_/with_valid_credentials/logs_in_and_sets_the_creds.yml +6 -6
- data/spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml +7 -7
- data/spec/vcr/Docker/_validate_version/when_nothing_is_raised/validate_version_/.yml +7 -7
- data/spec/vcr/Docker/_version/returns_the_version_as_a_Hash.yml +7 -7
- data/spec/vcr/Docker_Container/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml +77 -65
- data/spec/vcr/Docker_Container/_attach/with_normal_sized_chunks/yields_each_chunk.yml +15 -15
- data/spec/vcr/Docker_Container/_attach/with_very_small_chunks/yields_each_chunk.yml +15 -15
- data/spec/vcr/Docker_Container/_changes/returns_the_changes_as_an_array.yml +22 -24
- data/spec/vcr/Docker_Container/_commit/creates_a_new_Image_from_the_Container_s_changes.yml +17 -17
- data/spec/vcr/Docker_Container/_commit/if_run_is_passed_it_saves_the_command_in_the_image/saves_the_command.yml +12 -12
- data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_directory/yields_each_chunk_of_the_tarred_directory.yml +41 -41
- data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_file/yields_each_chunk_of_the_tarred_file.yml +26 -26
- data/spec/vcr/Docker_Container/_create/when_creating_a_container_named_bob/should_have_name_set_to_bob.yml +13 -13
- data/spec/vcr/Docker_Container/_create/when_the_Container_does_not_yet_exist/when_the_HTTP_request_returns_a_200/sets_the_id.yml +7 -7
- data/spec/vcr/Docker_Container/_delete/deletes_the_container.yml +17 -17
- data/spec/vcr/Docker_Container/_export/yields_each_chunk.yml +453693 -17
- data/spec/vcr/Docker_Container/_get/when_the_HTTP_response_is_a_200/materializes_the_Container_into_a_Docker_Container.yml +13 -13
- data/spec/vcr/Docker_Container/_json/returns_the_description_as_a_Hash.yml +13 -13
- data/spec/vcr/Docker_Container/_kill/kills_the_container.yml +41 -35
- data/spec/vcr/Docker_Container/_logs/when_not_selecting_any_stream/returns_the_error_message.yml +11 -11
- data/spec/vcr/Docker_Container/_logs/when_selecting_stdout/returns_blank_logs.yml +11 -11
- data/spec/vcr/Docker_Container/_restart/restarts_the_container.yml +42 -42
- data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_does_not_return_status_code_of_0/raises_an_error.yml +16 -16
- data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_returns_a_status_code_of_0/creates_a_new_container_to_run_the_specified_command.yml +46 -47
- data/spec/vcr/Docker_Container/_start/starts_the_container.yml +23 -23
- data/spec/vcr/Docker_Container/_stop/stops_the_container.yml +45 -39
- data/spec/vcr/Docker_Container/_top/returns_the_top_commands_as_an_Array.yml +27 -23
- data/spec/vcr/Docker_Container/_wait/waits_for_the_command_to_finish.yml +16 -16
- data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/and_a_command_runs_for_too_long/raises_a_ServerError.yml +12 -12
- data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/sets_the_read_timeout_to_that_amount_of_time.yml +16 -16
- data/spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml +13 -33
- data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/with_a_block_capturing_build_output/calls_the_block_and_passes_build_output.yml +6 -6
- data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/with_specifying_a_repo_in_the_query_parameters/builds_an_image_and_tags_it.yml +25 -27
- data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/without_query_parameters/builds_an_image.yml +6 -6
- data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml +6 -6
- data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_a_block_capturing_build_output/calls_the_block_and_passes_build_output.yml +11 -7
- data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_credentials_passed/sends_Docker_creds.yml +8 -196
- data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_no_query_parameters/builds_the_image.yml +24 -20
- data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_specifying_a_repo_in_the_query_parameters/builds_the_image_and_tags_it.yml +46 -30
- data/spec/vcr/Docker_Image/_create/when_the_Image_does_not_yet_exist_and_the_body_is_a_Hash/sets_the_id_and_sends_Docker_creds.yml +21 -669
- data/spec/vcr/Docker_Image/_get/when_the_image_does_exist/returns_the_new_image.yml +7 -7
- data/spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml +9 -9
- data/spec/vcr/Docker_Image/_import/when_the_argument_is_a_URI/when_the_URI_is_invalid/raises_an_error.yml +27 -25
- data/spec/vcr/Docker_Image/_import/when_the_argument_is_a_URI/when_the_URI_is_valid/returns_an_Image.yml +12 -12
- data/spec/vcr/Docker_Image/_import/when_the_file_does_exist/creates_the_Image.yml +6 -6
- data/spec/vcr/Docker_Image/_insert/inserts_the_url_s_file_into_a_new_Image.yml +27 -33
- data/spec/vcr/Docker_Image/_insert_local/when_a_direcory_is_passed/inserts_the_directory.yml +29 -878
- data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/creates_a_new_image.yml +29 -45
- data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/leave_no_intermediate_containers.yml +29 -51
- data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_exist/creates_a_new_Image_that_has_that_file.yml +29 -28
- data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_not_exist/raises_an_error.yml +6 -6
- data/spec/vcr/Docker_Image/_insert_local/when_there_are_multiple_files_passed/creates_a_new_Image_that_has_each_file.yml +32 -31
- data/spec/vcr/Docker_Image/_json/returns_additional_information_about_image_image.yml +11 -11
- data/spec/vcr/Docker_Image/_push/pushes_the_Image.yml +67 -227
- data/spec/vcr/Docker_Image/_push/when_there_are_no_credentials/still_pushes.yml +61 -43
- data/spec/vcr/Docker_Image/_refresh_/updates_the_info_hash.yml +40 -203
- data/spec/vcr/Docker_Image/_remove/removes_the_Image.yml +22 -23
- data/spec/vcr/Docker_Image/_run/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml +19 -19
- data/spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml +19 -19
- data/spec/vcr/Docker_Image/_run/when_the_argument_is_nil/no_command_configured_in_image/should_raise_an_error_if_no_command_is_specified.yml +10 -10
- data/spec/vcr/Docker_Image/_search/materializes_each_Image_into_a_Docker_Image.yml +77 -72
- data/spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml +9 -9
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f674334f3696be23602d5b034b0708d8e4397f43
|
4
|
+
data.tar.gz: ffd9edaae68211c2ba892bd149f697b00160bcc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f51d6900da3f6f294fc1206736097e4572081a6e811093d263887d1128bfb240ef3be5c880f2c4e92ab1c0fd6768bebfd4a6000243c450b998249c853d8ea9a9
|
7
|
+
data.tar.gz: c6bce084b08a3c9083c90a8d9645c8752c54e12a8b88ad2370356e1ef9edc775e286c08e4d8284c685d24d67ea8b309a8000edc1d3f4f37d34615ef9696dd8a5
|
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
|
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.11.*.
|
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
|
|
data/lib/docker/image.rb
CHANGED
@@ -146,16 +146,16 @@ class Docker::Image
|
|
146
146
|
raise Docker::Error::IOError, "Could not import '#{imp}'"
|
147
147
|
end
|
148
148
|
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
149
|
+
def import_stream(options = {}, connection = Docker.connection, &block)
|
150
|
+
body = connection.post(
|
151
|
+
'/images/create',
|
152
|
+
options.merge('fromSrc' => '-'),
|
153
|
+
:headers => { 'Content-Type' => 'application/tar',
|
154
|
+
'Transfer-Encoding' => 'chunked' },
|
155
|
+
&block
|
156
|
+
)
|
157
|
+
new(connection, 'id'=> Docker::Util.parse_json(body)['status'])
|
158
|
+
end
|
159
159
|
|
160
160
|
# Given a Dockerfile as a string, builds an Image.
|
161
161
|
def build(commands, opts = {}, connection = Docker.connection, &block)
|
data/lib/docker/version.rb
CHANGED
@@ -77,14 +77,6 @@ describe Docker::Container do
|
|
77
77
|
|
78
78
|
it 'returns the changes as an array', :vcr do
|
79
79
|
expect(changes).to eq [
|
80
|
-
{
|
81
|
-
"Path" => "/dev",
|
82
|
-
"Kind" => 0
|
83
|
-
},
|
84
|
-
{
|
85
|
-
"Path" => "/dev/kmsg",
|
86
|
-
"Kind" => 0
|
87
|
-
},
|
88
80
|
{
|
89
81
|
"Path" => "/root",
|
90
82
|
"Kind" => 2
|
data/spec/docker/image_spec.rb
CHANGED
@@ -242,9 +242,9 @@ describe Docker::Image do
|
|
242
242
|
let(:image) { subject.create('fromImage' => 'ubuntu') }
|
243
243
|
let(:creds) {
|
244
244
|
{
|
245
|
-
:username => '
|
246
|
-
:password => '
|
247
|
-
:email => '
|
245
|
+
:username => 'tlunter',
|
246
|
+
:password => '************',
|
247
|
+
:email => 'tlunter@gmail.com'
|
248
248
|
}
|
249
249
|
}
|
250
250
|
|
data/spec/docker_spec.rb
CHANGED
@@ -93,7 +93,9 @@ describe Docker do
|
|
93
93
|
subject.url = nil
|
94
94
|
subject.options = nil
|
95
95
|
end
|
96
|
-
let(:expected) {
|
96
|
+
let(:expected) {
|
97
|
+
%w[ApiVersion Arch GitCommit GoVersion KernelVersion Os Version]
|
98
|
+
}
|
97
99
|
|
98
100
|
let(:version) { subject.version }
|
99
101
|
it 'returns the version as a Hash', :vcr do
|
@@ -137,9 +139,9 @@ describe Docker do
|
|
137
139
|
# cassette to match these credentials
|
138
140
|
let(:credentials) {
|
139
141
|
{
|
140
|
-
:username => '
|
141
|
-
:password => '
|
142
|
-
:email => '
|
142
|
+
:username => 'tlunter',
|
143
|
+
:password => '************',
|
144
|
+
:email => 'tlunter@gmail.com',
|
143
145
|
:serveraddress => 'https://index.docker.io/v1/'
|
144
146
|
}
|
145
147
|
}
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: unix:///var/run/docker.sock/v1.
|
5
|
+
uri: unix:///var/run/docker.sock/v1.11/auth
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: '{"username":"tlunter","password":"************","email":"tlunter@gmail.com","serveraddress":"https://index.docker.io/v1/"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.
|
11
|
+
- Swipely/Docker-API 1.11.1
|
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
|
+
- Thu, 26 Jun 2014 19:20:39 GMT
|
23
23
|
Content-Length:
|
24
24
|
- '29'
|
25
25
|
Connection:
|
@@ -29,5 +29,5 @@ http_interactions:
|
|
29
29
|
string: |
|
30
30
|
{"Status":"Login Succeeded"}
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
33
|
-
recorded_with: VCR 2.
|
32
|
+
recorded_at: Thu, 26 Jun 2014 19:20:39 GMT
|
33
|
+
recorded_with: VCR 2.9.2
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: unix:///var/run/docker.sock/v1.
|
5
|
+
uri: unix:///var/run/docker.sock/v1.11/info
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.
|
11
|
+
- Swipely/Docker-API 1.11.1
|
12
12
|
Content-Type:
|
13
13
|
- text/plain
|
14
14
|
response:
|
@@ -21,15 +21,15 @@ http_interactions:
|
|
21
21
|
Job-Name:
|
22
22
|
- info
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Thu, 26 Jun 2014 19:17:07 GMT
|
25
25
|
Content-Length:
|
26
|
-
- '
|
26
|
+
- '697'
|
27
27
|
Connection:
|
28
28
|
- close
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
31
|
string: |
|
32
|
-
{"Containers":
|
32
|
+
{"Containers":31,"Debug":0,"Driver":"devicemapper","DriverStatus":[["Pool Name","docker-8:2-5393690-pool"],["Data file","/var/lib/docker/devicemapper/devicemapper/data"],["Metadata file","/var/lib/docker/devicemapper/devicemapper/metadata"],["Data Space Used","9805.6 Mb"],["Data Space Total","102400.0 Mb"],["Metadata Space Used","16.1 Mb"],["Metadata Space Total","2048.0 Mb"]],"ExecutionDriver":"native-0.2","IPv4Forwarding":1,"Images":204,"IndexServerAddress":"https://index.docker.io/v1/","InitPath":"/usr/lib/docker/dockerinit","InitSha1":"728ea391473ec106b15a6486b3b1a2e8a07e4ff5","KernelVersion":"3.15.1-1-ARCH","MemoryLimit":1,"NEventsListener":0,"NFd":20,"NGoroutines":27,"SwapLimit":0}
|
33
33
|
http_version:
|
34
|
-
recorded_at:
|
35
|
-
recorded_with: VCR 2.
|
34
|
+
recorded_at: Thu, 26 Jun 2014 19:17:07 GMT
|
35
|
+
recorded_with: VCR 2.9.2
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: unix:///var/run/docker.sock/v1.
|
5
|
+
uri: unix:///var/run/docker.sock/v1.11/info
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.
|
11
|
+
- Swipely/Docker-API 1.11.1
|
12
12
|
Content-Type:
|
13
13
|
- text/plain
|
14
14
|
response:
|
@@ -21,15 +21,15 @@ http_interactions:
|
|
21
21
|
Job-Name:
|
22
22
|
- info
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Thu, 26 Jun 2014 19:18:54 GMT
|
25
25
|
Content-Length:
|
26
|
-
- '
|
26
|
+
- '697'
|
27
27
|
Connection:
|
28
28
|
- close
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
31
|
string: |
|
32
|
-
{"Containers":
|
32
|
+
{"Containers":31,"Debug":0,"Driver":"devicemapper","DriverStatus":[["Pool Name","docker-8:2-5393690-pool"],["Data file","/var/lib/docker/devicemapper/devicemapper/data"],["Metadata file","/var/lib/docker/devicemapper/devicemapper/metadata"],["Data Space Used","9805.8 Mb"],["Data Space Total","102400.0 Mb"],["Metadata Space Used","16.1 Mb"],["Metadata Space Total","2048.0 Mb"]],"ExecutionDriver":"native-0.2","IPv4Forwarding":1,"Images":204,"IndexServerAddress":"https://index.docker.io/v1/","InitPath":"/usr/lib/docker/dockerinit","InitSha1":"728ea391473ec106b15a6486b3b1a2e8a07e4ff5","KernelVersion":"3.15.1-1-ARCH","MemoryLimit":1,"NEventsListener":0,"NFd":20,"NGoroutines":27,"SwapLimit":0}
|
33
33
|
http_version:
|
34
|
-
recorded_at:
|
35
|
-
recorded_with: VCR 2.
|
34
|
+
recorded_at: Thu, 26 Jun 2014 19:18:54 GMT
|
35
|
+
recorded_with: VCR 2.9.2
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: unix:///var/run/docker.sock/v1.
|
5
|
+
uri: unix:///var/run/docker.sock/v1.11/version
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.
|
11
|
+
- Swipely/Docker-API 1.11.1
|
12
12
|
Content-Type:
|
13
13
|
- text/plain
|
14
14
|
response:
|
@@ -21,15 +21,15 @@ http_interactions:
|
|
21
21
|
Job-Name:
|
22
22
|
- version
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Thu, 26 Jun 2014 19:16:20 GMT
|
25
25
|
Content-Length:
|
26
|
-
- '
|
26
|
+
- '142'
|
27
27
|
Connection:
|
28
28
|
- close
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
31
|
string: |
|
32
|
-
{"Arch":"amd64","GitCommit":"
|
32
|
+
{"ApiVersion":"1.12","Arch":"amd64","GitCommit":"990021a","GoVersion":"go1.3","KernelVersion":"3.15.1-1-ARCH","Os":"linux","Version":"1.0.1"}
|
33
33
|
http_version:
|
34
|
-
recorded_at:
|
35
|
-
recorded_with: VCR 2.
|
34
|
+
recorded_at: Thu, 26 Jun 2014 19:16:20 GMT
|
35
|
+
recorded_with: VCR 2.9.2
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: unix:///var/run/docker.sock/v1.
|
5
|
+
uri: unix:///var/run/docker.sock/v1.11/containers/create
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: '{"Cmd":["ls"],"Image":"base"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Swipely/Docker-API 1.
|
11
|
+
- Swipely/Docker-API 1.11.1
|
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
|
+
- Fri, 06 Jun 2014 13:37:00 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":"10fccd5d80b9d5e1464c8745961bb2bb53eeaeda179a5737c4ec3e2f0c2324e2","Warnings":null}
|
31
31
|
http_version:
|
32
|
-
recorded_at:
|
32
|
+
recorded_at: Fri, 06 Jun 2014 13:37:00 GMT
|
33
33
|
- request:
|
34
34
|
method: get
|
35
|
-
uri: unix:///var/run/docker.sock/v1.
|
35
|
+
uri: unix:///var/run/docker.sock/v1.11/containers/json?all=true
|
36
36
|
body:
|
37
37
|
encoding: US-ASCII
|
38
38
|
string: ''
|
39
39
|
headers:
|
40
40
|
User-Agent:
|
41
|
-
- Swipely/Docker-API 1.
|
41
|
+
- Swipely/Docker-API 1.11.1
|
42
42
|
Content-Type:
|
43
43
|
- text/plain
|
44
44
|
response:
|
@@ -49,7 +49,7 @@ http_interactions:
|
|
49
49
|
Content-Type:
|
50
50
|
- application/json
|
51
51
|
Date:
|
52
|
-
-
|
52
|
+
- Fri, 06 Jun 2014 13:37:00 GMT
|
53
53
|
Connection:
|
54
54
|
- close
|
55
55
|
Transfer-Encoding:
|
@@ -57,43 +57,49 @@ http_interactions:
|
|
57
57
|
body:
|
58
58
|
encoding: UTF-8
|
59
59
|
string: |-
|
60
|
-
[{"Command":"ls","Created":
|
61
|
-
,{"Command":"ls","Created":
|
62
|
-
,{"Command":"date","Created":
|
63
|
-
,{"Command":"true","Created":
|
64
|
-
,{"Command":"true","Created":
|
65
|
-
,{"Command":"ls","Created":
|
66
|
-
,{"Command":"
|
67
|
-
,{"Command":"
|
68
|
-
,{"Command":"sleep 5","Created":
|
69
|
-
,{"Command":"sleep 5","Created":
|
70
|
-
,{"Command":"tar nonsense","Created":
|
71
|
-
,{"Command":"sleep 50","Created":
|
72
|
-
,{"Command":"ls","Created":
|
73
|
-
,{"Command":"true","Created":
|
74
|
-
,{"Command":"
|
75
|
-
,{"Command":"
|
76
|
-
,{"Command":"pwd","Created":
|
77
|
-
,{"Command":"rm -rf / --no-preserve-root","Created":
|
78
|
-
,{"Command":"
|
79
|
-
,{"Command":"
|
80
|
-
,{"Command":"/
|
81
|
-
,{"Command":"
|
82
|
-
,{"Command":"
|
83
|
-
,{"Command":"
|
84
|
-
,{"Command":"true","Created":
|
60
|
+
[{"Command":"ls","Created":1402061820,"Id":"10fccd5d80b9d5e1464c8745961bb2bb53eeaeda179a5737c4ec3e2f0c2324e2","Image":"base:latest","Names":["/agitated_brown"],"Ports":[],"Status":""}
|
61
|
+
,{"Command":"ls","Created":1402061819,"Id":"864a3251d9c7a5a06d7bb64ed24bb790e1b3bcce9f91094d1d788b395821346e","Image":"base:latest","Names":["/clever_colden"],"Ports":[],"Status":""}
|
62
|
+
,{"Command":"date","Created":1402061819,"Id":"a223b5b4fcd93f795ddb65df4ec1616ffa2e764120941d0dd65c7fe126bc1311","Image":"base:latest","Names":["/sad_wozniak"],"Ports":[],"Status":""}
|
63
|
+
,{"Command":"true","Created":1402061819,"Id":"d837dc03361179b175961dd9231bb69611a98c8e9188c5d1f45005d9ec84455e","Image":"base:latest","Names":["/kickass_mestorf"],"Ports":[],"Status":"Exited (0) Less than a second ago"}
|
64
|
+
,{"Command":"true","Created":1402061817,"Id":"bc8a010930c40c2b93ae67076bd83cba37a88201f1438aee70d4917c9ca1f2f3","Image":"base:latest","Names":["/nostalgic_sinoussi4"],"Ports":[],"Status":"Exited (0) 2 seconds ago"}
|
65
|
+
,{"Command":"ls","Created":1402061816,"Id":"cdf087a3327652217345367963fa0c16177c742c13107b1702bcf3d21cf0591d","Image":"7364e1f83f7b","Names":["/determined_colden"],"Ports":[],"Status":"Exited (0) 3 seconds ago"}
|
66
|
+
,{"Command":"lol not a real command","Created":1402061814,"Id":"e54a107e5ceda43c339a39ed8024a96f25acf5d52bffcc241e664bb12f7f8d18","Image":"base:latest","Names":["/prickly_perlman"],"Ports":[],"Status":"Exited (1) 5 seconds ago"}
|
67
|
+
,{"Command":"pwd","Created":1402061814,"Id":"e069285efbe59702426c48608bd49e0e50ead091b8e97ad425e215ad9e6b3f7a","Image":"base:latest","Names":["/agitated_archimedes"],"Ports":[],"Status":"Exited (0) 5 seconds ago"}
|
68
|
+
,{"Command":"sleep 5","Created":1402061813,"Id":"4725efd445a3d695fd1334972a0f09f963369f108a3823709ffe1cdadbf48635","Image":"base:latest","Names":["/suspicious_perlman"],"Ports":[],"Status":"Exited (0) 1 seconds ago"}
|
69
|
+
,{"Command":"sleep 5","Created":1402061808,"Id":"aa7e2ecdf17a537bebbb26ebf03bb737a44e73ad3e0bc0c4291f70f5a788f561","Image":"base:latest","Names":["/silly_turing"],"Ports":[],"Status":"Exited (0) 6 seconds ago"}
|
70
|
+
,{"Command":"tar nonsense","Created":1402061807,"Id":"c70cfabe185292f9f8ee870411426a5f395ddff7154b0d33c4856077251ef07b","Image":"base:latest","Names":["/backstabbing_nobel"],"Ports":[],"Status":"Exited (64) 12 seconds ago"}
|
71
|
+
,{"Command":"sleep 50","Created":1402061806,"Id":"8f21d51b034b2312381b6fecb6f64daf4e27d9383adde881f293ba76a41b13e1","Image":"base:latest","Names":["/sharp_lalande"],"Ports":[],"Status":"Up 12 seconds"}
|
72
|
+
,{"Command":"ls","Created":1402061805,"Id":"c843e3cc949ba97facdf6ce574af1e19abaed630a7a5118000f2baac202daf3f","Image":"base:latest","Names":["/pensive_hopper"],"Ports":[],"Status":""}
|
73
|
+
,{"Command":"true","Created":1402061804,"Id":"443df8d63a3a3072d0bf8d556f798702446bb58240a20c7209943c4fd673cbb6","Image":"base:latest","Names":["/lonely_lumiere"],"Ports":[],"Status":"Exited (2) 15 seconds ago"}
|
74
|
+
,{"Command":"pwd","Created":1402061803,"Id":"ca222127cb8b1cfd32b49f7bce67a65551ca95c06a39df9d533e526cdd6b3012","Image":"base:latest","Names":["/determined_bartik"],"Ports":[],"Status":"Exited (0) 16 seconds ago"}
|
75
|
+
,{"Command":"test -d /foo","Created":1402061803,"Id":"931f5a5a5c2b4fad7b87e7348d08278321467f83bacf32c8c8a397f08c51646d","Image":"base:latest","Names":["/cranky_curie"],"Ports":[],"Status":"Exited (0) 16 seconds ago"}
|
76
|
+
,{"Command":"pwd","Created":1402061802,"Id":"1cbce47c914fad3c7d384c91cae92c025e3ef68293fcc96cb100e6f88c9a2ef2","Image":"base:latest","Names":["/berserk_sammet"],"Ports":[],"Status":"Exited (0) 17 seconds ago"}
|
77
|
+
,{"Command":"rm -rf / --no-preserve-root","Created":1402061800,"Id":"46a466141579783967dcbc035bc6399649bd43b7f4408ce4e709d233aac5ef14","Image":"base:latest","Names":["/grave_poincare"],"Ports":[],"Status":"Exited (1) 18 seconds ago"}
|
78
|
+
,{"Command":"/while","Created":1402061799,"Id":"74553200d912dda35c0f8641028d3e42faaf6e41b4337a4e202328414bb2da5e","Image":"5964d75bfbd2","Names":["/angry_brown"],"Ports":[],"Status":"Up 20 seconds"}
|
79
|
+
,{"Command":"/bin/sh -c 'printf '#! /bin/sh\nwhile true\ndo\ntrue\ndone\n' \u003e /while \u0026\u0026 chmod +x /while'","Created":1402061795,"Id":"9bae4f8c6a162a4751230b334d7a1883fc05898c5a8674fb2e5f74d13b5fd535","Image":"base:latest","Names":["/stupefied_darwin"],"Ports":[],"Status":"Exited (0) 24 seconds ago"}
|
80
|
+
,{"Command":"rm -rf /root","Created":1402061793,"Id":"e2aa3bf983f31a26fa4ea31f915f33dbb800210fe5155f3e5ec2b7ef2f6f011a","Image":"base:latest","Names":["/agitated_lumiere"],"Ports":[],"Status":"Exited (0) 26 seconds ago"}
|
81
|
+
,{"Command":"echo hello","Created":1402061792,"Id":"3b94c2244b65ee461a8de220f689efc4f5139952c3acfbcc62b54754fc2d42af","Image":"base:latest","Names":["/loving_mccarthy"],"Ports":[],"Status":""}
|
82
|
+
,{"Command":"true","Created":1402061792,"Id":"b2fffac62786c5b22eebc6e89dcc6146f6d5c7c2d1c87f4047c224594f9fd626","Image":"base:latest","Names":["/bob"],"Ports":[],"Status":""}
|
83
|
+
,{"Command":"echo hello","Created":1402061792,"Id":"43a9245ac3f67d2150845dbe4bb014d1b33f6fe7755f53c0795b793abec025e6","Image":"base:latest","Names":["/nostalgic_brattain"],"Ports":[],"Status":""}
|
84
|
+
,{"Command":"true","Created":1402061791,"Id":"9f7808dd7512fa74bd22f748b04c02694ac13f9fdb3936ddf73858cdfc667627","Image":"base:latest","Names":["/berserk_albattani"],"Ports":[],"Status":""}
|
85
|
+
,{"Command":"bash","Created":1401993112,"Id":"a4a956e5908713eeeeacd438d9b1af76aee3a2d2cfd286509879d66688a51a96","Image":"base:latest","Names":["/distracted_davinci"],"Ports":[],"Status":"Exited (0) 19 hours ago"}
|
86
|
+
,{"Command":"pwd","Created":1401992998,"Id":"84417dce0437109b3da550a5e9b26c53cd3c470a10f140665f50936c4cbc6e5c","Image":"cd20e353a62d","Names":["/nostalgic_sinoussi"],"Ports":[],"Status":"Exited (0) 19 hours ago"}
|
87
|
+
,{"Command":"bash","Created":1401992997,"Id":"3fa30cf9b82e719a9e599350e25321ead36454995621c18da0873991911b5dcf","Image":"base:latest","Names":["/jolly_leakey"],"Ports":[],"Status":"Exited (0) 19 hours ago"}
|
88
|
+
,{"Command":"true","Created":1401992995,"Id":"75b8e7c8f01a5ce68062a91fa05b7aea1a6c71a030207ae1ad266633a6cdd4cc","Image":"base:latest","Names":["/sad_wright"],"Ports":[],"Status":""}
|
89
|
+
,{"Command":"bash","Created":1401992994,"Id":"a39a9b9e48ea2a4e0e7448ce2e895284911dad63e1e4a5cf0f4ee23ea11f62a6","Image":"base:latest","Names":["/distracted_yonath"],"Ports":[],"Status":"Exited (0) 19 hours ago"}
|
90
|
+
,{"Command":"touch /test","Created":1401992992,"Id":"bbe024cccc9898f753a96119eb761d447e4d5d750b45c833a573aec71cc2392e","Image":"base:latest","Names":["/prickly_heisenberg"],"Ports":[],"Status":"Exited (0) 19 hours ago"}
|
85
91
|
]
|
86
92
|
http_version:
|
87
|
-
recorded_at:
|
93
|
+
recorded_at: Fri, 06 Jun 2014 13:37:00 GMT
|
88
94
|
- request:
|
89
95
|
method: get
|
90
|
-
uri: unix:///var/run/docker.sock/v1.
|
96
|
+
uri: unix:///var/run/docker.sock/v1.11/containers/json?all=true
|
91
97
|
body:
|
92
98
|
encoding: US-ASCII
|
93
99
|
string: ''
|
94
100
|
headers:
|
95
101
|
User-Agent:
|
96
|
-
- Swipely/Docker-API 1.
|
102
|
+
- Swipely/Docker-API 1.11.1
|
97
103
|
Content-Type:
|
98
104
|
- text/plain
|
99
105
|
response:
|
@@ -104,7 +110,7 @@ http_interactions:
|
|
104
110
|
Content-Type:
|
105
111
|
- application/json
|
106
112
|
Date:
|
107
|
-
-
|
113
|
+
- Fri, 06 Jun 2014 13:37:00 GMT
|
108
114
|
Connection:
|
109
115
|
- close
|
110
116
|
Transfer-Encoding:
|
@@ -112,32 +118,38 @@ http_interactions:
|
|
112
118
|
body:
|
113
119
|
encoding: UTF-8
|
114
120
|
string: |-
|
115
|
-
[{"Command":"ls","Created":
|
116
|
-
,{"Command":"ls","Created":
|
117
|
-
,{"Command":"date","Created":
|
118
|
-
,{"Command":"true","Created":
|
119
|
-
,{"Command":"true","Created":
|
120
|
-
,{"Command":"ls","Created":
|
121
|
-
,{"Command":"
|
122
|
-
,{"Command":"
|
123
|
-
,{"Command":"sleep 5","Created":
|
124
|
-
,{"Command":"sleep 5","Created":
|
125
|
-
,{"Command":"tar nonsense","Created":
|
126
|
-
,{"Command":"sleep 50","Created":
|
127
|
-
,{"Command":"ls","Created":
|
128
|
-
,{"Command":"true","Created":
|
129
|
-
,{"Command":"
|
130
|
-
,{"Command":"
|
131
|
-
,{"Command":"pwd","Created":
|
132
|
-
,{"Command":"rm -rf / --no-preserve-root","Created":
|
133
|
-
,{"Command":"
|
134
|
-
,{"Command":"
|
135
|
-
,{"Command":"/
|
136
|
-
,{"Command":"
|
137
|
-
,{"Command":"
|
138
|
-
,{"Command":"
|
139
|
-
,{"Command":"true","Created":
|
121
|
+
[{"Command":"ls","Created":1402061820,"Id":"10fccd5d80b9d5e1464c8745961bb2bb53eeaeda179a5737c4ec3e2f0c2324e2","Image":"base:latest","Names":["/agitated_brown"],"Ports":[],"Status":""}
|
122
|
+
,{"Command":"ls","Created":1402061819,"Id":"864a3251d9c7a5a06d7bb64ed24bb790e1b3bcce9f91094d1d788b395821346e","Image":"base:latest","Names":["/clever_colden"],"Ports":[],"Status":""}
|
123
|
+
,{"Command":"date","Created":1402061819,"Id":"a223b5b4fcd93f795ddb65df4ec1616ffa2e764120941d0dd65c7fe126bc1311","Image":"base:latest","Names":["/sad_wozniak"],"Ports":[],"Status":""}
|
124
|
+
,{"Command":"true","Created":1402061819,"Id":"d837dc03361179b175961dd9231bb69611a98c8e9188c5d1f45005d9ec84455e","Image":"base:latest","Names":["/kickass_mestorf"],"Ports":[],"Status":"Exited (0) Less than a second ago"}
|
125
|
+
,{"Command":"true","Created":1402061817,"Id":"bc8a010930c40c2b93ae67076bd83cba37a88201f1438aee70d4917c9ca1f2f3","Image":"base:latest","Names":["/nostalgic_sinoussi4"],"Ports":[],"Status":"Exited (0) 2 seconds ago"}
|
126
|
+
,{"Command":"ls","Created":1402061816,"Id":"cdf087a3327652217345367963fa0c16177c742c13107b1702bcf3d21cf0591d","Image":"7364e1f83f7b","Names":["/determined_colden"],"Ports":[],"Status":"Exited (0) 3 seconds ago"}
|
127
|
+
,{"Command":"lol not a real command","Created":1402061814,"Id":"e54a107e5ceda43c339a39ed8024a96f25acf5d52bffcc241e664bb12f7f8d18","Image":"base:latest","Names":["/prickly_perlman"],"Ports":[],"Status":"Exited (1) 5 seconds ago"}
|
128
|
+
,{"Command":"pwd","Created":1402061814,"Id":"e069285efbe59702426c48608bd49e0e50ead091b8e97ad425e215ad9e6b3f7a","Image":"base:latest","Names":["/agitated_archimedes"],"Ports":[],"Status":"Exited (0) 5 seconds ago"}
|
129
|
+
,{"Command":"sleep 5","Created":1402061813,"Id":"4725efd445a3d695fd1334972a0f09f963369f108a3823709ffe1cdadbf48635","Image":"base:latest","Names":["/suspicious_perlman"],"Ports":[],"Status":"Exited (0) 1 seconds ago"}
|
130
|
+
,{"Command":"sleep 5","Created":1402061808,"Id":"aa7e2ecdf17a537bebbb26ebf03bb737a44e73ad3e0bc0c4291f70f5a788f561","Image":"base:latest","Names":["/silly_turing"],"Ports":[],"Status":"Exited (0) 6 seconds ago"}
|
131
|
+
,{"Command":"tar nonsense","Created":1402061807,"Id":"c70cfabe185292f9f8ee870411426a5f395ddff7154b0d33c4856077251ef07b","Image":"base:latest","Names":["/backstabbing_nobel"],"Ports":[],"Status":"Exited (64) 12 seconds ago"}
|
132
|
+
,{"Command":"sleep 50","Created":1402061806,"Id":"8f21d51b034b2312381b6fecb6f64daf4e27d9383adde881f293ba76a41b13e1","Image":"base:latest","Names":["/sharp_lalande"],"Ports":[],"Status":"Up 12 seconds"}
|
133
|
+
,{"Command":"ls","Created":1402061805,"Id":"c843e3cc949ba97facdf6ce574af1e19abaed630a7a5118000f2baac202daf3f","Image":"base:latest","Names":["/pensive_hopper"],"Ports":[],"Status":""}
|
134
|
+
,{"Command":"true","Created":1402061804,"Id":"443df8d63a3a3072d0bf8d556f798702446bb58240a20c7209943c4fd673cbb6","Image":"base:latest","Names":["/lonely_lumiere"],"Ports":[],"Status":"Exited (2) 15 seconds ago"}
|
135
|
+
,{"Command":"pwd","Created":1402061803,"Id":"ca222127cb8b1cfd32b49f7bce67a65551ca95c06a39df9d533e526cdd6b3012","Image":"base:latest","Names":["/determined_bartik"],"Ports":[],"Status":"Exited (0) 16 seconds ago"}
|
136
|
+
,{"Command":"test -d /foo","Created":1402061803,"Id":"931f5a5a5c2b4fad7b87e7348d08278321467f83bacf32c8c8a397f08c51646d","Image":"base:latest","Names":["/cranky_curie"],"Ports":[],"Status":"Exited (0) 16 seconds ago"}
|
137
|
+
,{"Command":"pwd","Created":1402061802,"Id":"1cbce47c914fad3c7d384c91cae92c025e3ef68293fcc96cb100e6f88c9a2ef2","Image":"base:latest","Names":["/berserk_sammet"],"Ports":[],"Status":"Exited (0) 17 seconds ago"}
|
138
|
+
,{"Command":"rm -rf / --no-preserve-root","Created":1402061800,"Id":"46a466141579783967dcbc035bc6399649bd43b7f4408ce4e709d233aac5ef14","Image":"base:latest","Names":["/grave_poincare"],"Ports":[],"Status":"Exited (1) 18 seconds ago"}
|
139
|
+
,{"Command":"/while","Created":1402061799,"Id":"74553200d912dda35c0f8641028d3e42faaf6e41b4337a4e202328414bb2da5e","Image":"5964d75bfbd2","Names":["/angry_brown"],"Ports":[],"Status":"Up 20 seconds"}
|
140
|
+
,{"Command":"/bin/sh -c 'printf '#! /bin/sh\nwhile true\ndo\ntrue\ndone\n' \u003e /while \u0026\u0026 chmod +x /while'","Created":1402061795,"Id":"9bae4f8c6a162a4751230b334d7a1883fc05898c5a8674fb2e5f74d13b5fd535","Image":"base:latest","Names":["/stupefied_darwin"],"Ports":[],"Status":"Exited (0) 24 seconds ago"}
|
141
|
+
,{"Command":"rm -rf /root","Created":1402061793,"Id":"e2aa3bf983f31a26fa4ea31f915f33dbb800210fe5155f3e5ec2b7ef2f6f011a","Image":"base:latest","Names":["/agitated_lumiere"],"Ports":[],"Status":"Exited (0) 26 seconds ago"}
|
142
|
+
,{"Command":"echo hello","Created":1402061792,"Id":"3b94c2244b65ee461a8de220f689efc4f5139952c3acfbcc62b54754fc2d42af","Image":"base:latest","Names":["/loving_mccarthy"],"Ports":[],"Status":""}
|
143
|
+
,{"Command":"true","Created":1402061792,"Id":"b2fffac62786c5b22eebc6e89dcc6146f6d5c7c2d1c87f4047c224594f9fd626","Image":"base:latest","Names":["/bob"],"Ports":[],"Status":""}
|
144
|
+
,{"Command":"echo hello","Created":1402061792,"Id":"43a9245ac3f67d2150845dbe4bb014d1b33f6fe7755f53c0795b793abec025e6","Image":"base:latest","Names":["/nostalgic_brattain"],"Ports":[],"Status":""}
|
145
|
+
,{"Command":"true","Created":1402061791,"Id":"9f7808dd7512fa74bd22f748b04c02694ac13f9fdb3936ddf73858cdfc667627","Image":"base:latest","Names":["/berserk_albattani"],"Ports":[],"Status":""}
|
146
|
+
,{"Command":"bash","Created":1401993112,"Id":"a4a956e5908713eeeeacd438d9b1af76aee3a2d2cfd286509879d66688a51a96","Image":"base:latest","Names":["/distracted_davinci"],"Ports":[],"Status":"Exited (0) 19 hours ago"}
|
147
|
+
,{"Command":"pwd","Created":1401992998,"Id":"84417dce0437109b3da550a5e9b26c53cd3c470a10f140665f50936c4cbc6e5c","Image":"cd20e353a62d","Names":["/nostalgic_sinoussi"],"Ports":[],"Status":"Exited (0) 19 hours ago"}
|
148
|
+
,{"Command":"bash","Created":1401992997,"Id":"3fa30cf9b82e719a9e599350e25321ead36454995621c18da0873991911b5dcf","Image":"base:latest","Names":["/jolly_leakey"],"Ports":[],"Status":"Exited (0) 19 hours ago"}
|
149
|
+
,{"Command":"true","Created":1401992995,"Id":"75b8e7c8f01a5ce68062a91fa05b7aea1a6c71a030207ae1ad266633a6cdd4cc","Image":"base:latest","Names":["/sad_wright"],"Ports":[],"Status":""}
|
150
|
+
,{"Command":"bash","Created":1401992994,"Id":"a39a9b9e48ea2a4e0e7448ce2e895284911dad63e1e4a5cf0f4ee23ea11f62a6","Image":"base:latest","Names":["/distracted_yonath"],"Ports":[],"Status":"Exited (0) 19 hours ago"}
|
151
|
+
,{"Command":"touch /test","Created":1401992992,"Id":"bbe024cccc9898f753a96119eb761d447e4d5d750b45c833a573aec71cc2392e","Image":"base:latest","Names":["/prickly_heisenberg"],"Ports":[],"Status":"Exited (0) 19 hours ago"}
|
140
152
|
]
|
141
153
|
http_version:
|
142
|
-
recorded_at:
|
143
|
-
recorded_with: VCR 2.
|
154
|
+
recorded_at: Fri, 06 Jun 2014 13:37:00 GMT
|
155
|
+
recorded_with: VCR 2.9.2
|