docker-client 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/.rspec +2 -0
- data/.rvmrc +1 -0
- data/Gemfile +4 -0
- data/Guardfile +9 -0
- data/LICENSE.txt +22 -0
- data/MIT-LICENSE +21 -0
- data/README.md +87 -0
- data/Rakefile +15 -0
- data/docker.gemspec +40 -0
- data/lib/docker.rb +10 -0
- data/lib/docker/api.rb +32 -0
- data/lib/docker/connection.rb +83 -0
- data/lib/docker/error.rb +9 -0
- data/lib/docker/error/bad_parameter_error.rb +7 -0
- data/lib/docker/error/container_not_found.rb +7 -0
- data/lib/docker/error/internal_server_error.rb +7 -0
- data/lib/docker/error/not_found_error.rb +7 -0
- data/lib/docker/resource.rb +8 -0
- data/lib/docker/resource/base.rb +23 -0
- data/lib/docker/resource/container.rb +131 -0
- data/lib/docker/resource/image.rb +10 -0
- data/lib/docker/version.rb +3 -0
- data/spec/cassettes/Docker_Connection/returns_a_valid_response_for_a_basic_request.yml +40 -0
- data/spec/cassettes/Docker_Connection/returns_a_valid_response_for_get_request.yml +105 -0
- data/spec/cassettes/Docker_Connection/returns_a_valid_response_for_post_request.yml +30 -0
- data/spec/cassettes/Docker_Connection/returns_status_404_for_non_existent_path.yml +31 -0
- data/spec/cassettes/Docker_Connection/sets_given_query_parameters.yml +31 -0
- data/spec/cassettes/Docker_Connection/sets_given_request_headers.yml +33 -0
- data/spec/cassettes/Docker_Resource_Container/changes/inspects_the_container_s_filesystem_changes.yml +33 -0
- data/spec/cassettes/Docker_Resource_Container/create/raises_an_exception_when_called_with_invalid_options.yml +34 -0
- data/spec/cassettes/Docker_Resource_Container/create/with_many_settings.yml +36 -0
- data/spec/cassettes/Docker_Resource_Container/create/with_minimal_settings.yml +34 -0
- data/spec/cassettes/Docker_Resource_Container/kill/raises_an_exception_for_an_unknow_container.yml +31 -0
- data/spec/cassettes/Docker_Resource_Container/kill/the_container.yml +30 -0
- data/spec/cassettes/Docker_Resource_Container/lists/all_running_containers.yml +46 -0
- data/spec/cassettes/Docker_Resource_Container/lists/limit_last_created_containers.yml +34 -0
- data/spec/cassettes/Docker_Resource_Container/lists/non-running_processes_too.yml +114 -0
- data/spec/cassettes/Docker_Resource_Container/lists/processes_before_a_certain_created_container.yml +110 -0
- data/spec/cassettes/Docker_Resource_Container/lists/processes_since_a_certain_created_container.yml +34 -0
- data/spec/cassettes/Docker_Resource_Container/logs/returns_the_stderr_of_a_container.yml +25 -0
- data/spec/cassettes/Docker_Resource_Container/logs/returns_the_stdout_of_a_container.yml +25 -0
- data/spec/cassettes/Docker_Resource_Container/remove/deletes_the_container.yml +30 -0
- data/spec/cassettes/Docker_Resource_Container/remove/raises_an_exception_with_an_invalid_container.yml +31 -0
- data/spec/cassettes/Docker_Resource_Container/restarts/raises_an_exception_for_an_unknown_container.yml +31 -0
- data/spec/cassettes/Docker_Resource_Container/restarts/the_container.yml +30 -0
- data/spec/cassettes/Docker_Resource_Container/shows/the_low_level_details.yml +48 -0
- data/spec/cassettes/Docker_Resource_Container/start/brings_a_container_into_state_running.yml +30 -0
- data/spec/cassettes/Docker_Resource_Container/start/raises_an_exception_for_an_unknown_container.yml +31 -0
- data/spec/cassettes/Docker_Resource_Container/stop/halts_a_container.yml +30 -0
- data/spec/cassettes/Docker_Resource_Container/stop/raises_an_exception_for_an_unknown_container.yml +31 -0
- data/spec/cassettes/Docker_Resource_Container/wait/blocks_until_the_container_stops.yml +31 -0
- data/spec/cassettes/Docker_Resource_Container/wait/raises_an_exception_for_an_unknown_container.yml +31 -0
- data/spec/cassettes/test_setup/create_container_connection_post.yml +33 -0
- data/spec/cassettes/test_setup/create_container_container_changes.yml +33 -0
- data/spec/cassettes/test_setup/create_container_container_kill.yml +34 -0
- data/spec/cassettes/test_setup/create_container_container_lists1.yml +34 -0
- data/spec/cassettes/test_setup/create_container_container_lists2.yml +33 -0
- data/spec/cassettes/test_setup/create_container_container_logs.yml +33 -0
- data/spec/cassettes/test_setup/create_container_container_remove.yml +33 -0
- data/spec/cassettes/test_setup/create_container_container_restarts.yml +34 -0
- data/spec/cassettes/test_setup/create_container_container_shows.yml +33 -0
- data/spec/cassettes/test_setup/create_container_container_start.yml +33 -0
- data/spec/cassettes/test_setup/create_container_container_stop.yml +34 -0
- data/spec/cassettes/test_setup/create_container_container_wait.yml +33 -0
- data/spec/cassettes/test_setup/delete_container.yml +405 -0
- data/spec/cassettes/test_setup/start_container.yml +235 -0
- data/spec/cassettes/test_setup/wait_on_container.yml +63 -0
- data/spec/docker/api_spec.rb +37 -0
- data/spec/docker/connection_spec.rb +81 -0
- data/spec/docker/resource/container_spec.rb +288 -0
- data/spec/helpers.rb +48 -0
- data/spec/spec_helper.rb +31 -0
- metadata +361 -0
@@ -0,0 +1,31 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: delete
|
5
|
+
uri: http://10.0.5.5:4243/containers/invalid_ID?v=false
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 404
|
13
|
+
message: !binary |-
|
14
|
+
Tm90IEZvdW5k
|
15
|
+
headers:
|
16
|
+
!binary "Q29udGVudC1UeXBl":
|
17
|
+
- !binary |-
|
18
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
19
|
+
!binary "RGF0ZQ==":
|
20
|
+
- !binary |-
|
21
|
+
U2F0LCAyNSBNYXkgMjAxMyAxNjowNToxMiBHTVQ=
|
22
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
23
|
+
- !binary |-
|
24
|
+
Y2h1bmtlZA==
|
25
|
+
body:
|
26
|
+
encoding: ASCII-8BIT
|
27
|
+
string: !binary |-
|
28
|
+
Tm8gc3VjaCBjb250YWluZXI6IGludmFsaWRfSUQK
|
29
|
+
http_version:
|
30
|
+
recorded_at: Sat, 25 May 2013 16:05:15 GMT
|
31
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,31 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://10.0.5.5:4243/containers/invalid_id/restart
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 404
|
13
|
+
message: !binary |-
|
14
|
+
Tm90IEZvdW5k
|
15
|
+
headers:
|
16
|
+
!binary "Q29udGVudC1UeXBl":
|
17
|
+
- !binary |-
|
18
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
19
|
+
!binary "RGF0ZQ==":
|
20
|
+
- !binary |-
|
21
|
+
U2F0LCAyNSBNYXkgMjAxMyAxNjowNTozMyBHTVQ=
|
22
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
23
|
+
- !binary |-
|
24
|
+
Y2h1bmtlZA==
|
25
|
+
body:
|
26
|
+
encoding: ASCII-8BIT
|
27
|
+
string: !binary |-
|
28
|
+
Tm8gc3VjaCBjb250YWluZXI6IGludmFsaWRfaWQK
|
29
|
+
http_version:
|
30
|
+
recorded_at: Sat, 25 May 2013 16:05:36 GMT
|
31
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,30 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://10.0.5.5:4243/containers/3700641d93de/restart?t=3
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 204
|
13
|
+
message: !binary |-
|
14
|
+
Tm8gQ29udGVudA==
|
15
|
+
headers:
|
16
|
+
!binary "RGF0ZQ==":
|
17
|
+
- !binary |-
|
18
|
+
U2F0LCAyNSBNYXkgMjAxMyAxNjowNTozNyBHTVQ=
|
19
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
20
|
+
- !binary |-
|
21
|
+
Y2h1bmtlZA==
|
22
|
+
!binary "Q29udGVudC1UeXBl":
|
23
|
+
- !binary |-
|
24
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
25
|
+
body:
|
26
|
+
encoding: ASCII-8BIT
|
27
|
+
string: !binary ""
|
28
|
+
http_version:
|
29
|
+
recorded_at: Sat, 25 May 2013 16:05:39 GMT
|
30
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://10.0.5.5:4243/containers/7e6c6c5c2b3b/json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: !binary |-
|
14
|
+
T0s=
|
15
|
+
headers:
|
16
|
+
!binary "Q29udGVudC1UeXBl":
|
17
|
+
- !binary |-
|
18
|
+
YXBwbGljYXRpb24vanNvbg==
|
19
|
+
!binary "RGF0ZQ==":
|
20
|
+
- !binary |-
|
21
|
+
U2F0LCAyNSBNYXkgMjAxMyAxNjowNToxNiBHTVQ=
|
22
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
23
|
+
- !binary |-
|
24
|
+
Y2h1bmtlZA==
|
25
|
+
body:
|
26
|
+
encoding: ASCII-8BIT
|
27
|
+
string: !binary |-
|
28
|
+
eyJJZCI6IjdlNmM2YzVjMmIzYmFjNDdiZGFjMzU1MTU5M2U0MmQ3MmE1MTVk
|
29
|
+
ZjI3Y2YxMGM3OTNiZjNiYzA2NThiMTQ2ZGQiLCJDcmVhdGVkIjoiMjAxMy0w
|
30
|
+
NS0yNVQxNjowNToxNi45MDQwNDNaIiwiUGF0aCI6ImVudiIsIkFyZ3MiOltd
|
31
|
+
LCJDb25maWciOnsiSG9zdG5hbWUiOiI3ZTZjNmM1YzJiM2IiLCJVc2VyIjoi
|
32
|
+
IiwiTWVtb3J5IjowLCJNZW1vcnlTd2FwIjowLCJDcHVTaGFyZXMiOjAsIkF0
|
33
|
+
dGFjaFN0ZGluIjpmYWxzZSwiQXR0YWNoU3Rkb3V0IjpmYWxzZSwiQXR0YWNo
|
34
|
+
U3RkZXJyIjpmYWxzZSwiUG9ydFNwZWNzIjpudWxsLCJUdHkiOmZhbHNlLCJP
|
35
|
+
cGVuU3RkaW4iOmZhbHNlLCJTdGRpbk9uY2UiOmZhbHNlLCJFbnYiOm51bGws
|
36
|
+
IkNtZCI6WyJlbnYiXSwiRG5zIjpudWxsLCJJbWFnZSI6ImJhc2UiLCJWb2x1
|
37
|
+
bWVzIjpudWxsLCJWb2x1bWVzRnJvbSI6IiJ9LCJTdGF0ZSI6eyJSdW5uaW5n
|
38
|
+
IjpmYWxzZSwiUGlkIjowLCJFeGl0Q29kZSI6MCwiU3RhcnRlZEF0IjoiMDAw
|
39
|
+
MS0wMS0wMVQwMDowMDowMFoiLCJHaG9zdCI6ZmFsc2V9LCJJbWFnZSI6ImI3
|
40
|
+
NTBmZTc5MjY5ZDJlYzlhM2M1OTNlZjA1YjQzMzJiMWQxYTAyYTYyYjRhY2Ni
|
41
|
+
MmMyMWQ1ODlmZjJmNWYyZGMiLCJOZXR3b3JrU2V0dGluZ3MiOnsiSXBBZGRy
|
42
|
+
ZXNzIjoiIiwiSXBQcmVmaXhMZW4iOjAsIkdhdGV3YXkiOiIiLCJCcmlkZ2Ui
|
43
|
+
OiIiLCJQb3J0TWFwcGluZyI6bnVsbH0sIlN5c0luaXRQYXRoIjoiL2hvbWUv
|
44
|
+
dmFncmFudC9nby9iaW4vZG9ja2VyIiwiUmVzb2x2Q29uZlBhdGgiOiIvZXRj
|
45
|
+
L3Jlc29sdi5jb25mIiwiVm9sdW1lcyI6bnVsbH0=
|
46
|
+
http_version:
|
47
|
+
recorded_at: Sat, 25 May 2013 16:05:19 GMT
|
48
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,30 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://10.0.5.5:4243/containers/1d77a3257ed8/start
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 204
|
13
|
+
message: !binary |-
|
14
|
+
Tm8gQ29udGVudA==
|
15
|
+
headers:
|
16
|
+
!binary "RGF0ZQ==":
|
17
|
+
- !binary |-
|
18
|
+
U2F0LCAyNSBNYXkgMjAxMyAxNjowNToyNSBHTVQ=
|
19
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
20
|
+
- !binary |-
|
21
|
+
Y2h1bmtlZA==
|
22
|
+
!binary "Q29udGVudC1UeXBl":
|
23
|
+
- !binary |-
|
24
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
25
|
+
body:
|
26
|
+
encoding: ASCII-8BIT
|
27
|
+
string: !binary ""
|
28
|
+
http_version:
|
29
|
+
recorded_at: Sat, 25 May 2013 16:05:27 GMT
|
30
|
+
recorded_with: VCR 2.5.0
|
data/spec/cassettes/Docker_Resource_Container/start/raises_an_exception_for_an_unknown_container.yml
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://10.0.5.5:4243/containers/invalid_id/start
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 404
|
13
|
+
message: !binary |-
|
14
|
+
Tm90IEZvdW5k
|
15
|
+
headers:
|
16
|
+
!binary "Q29udGVudC1UeXBl":
|
17
|
+
- !binary |-
|
18
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
19
|
+
!binary "RGF0ZQ==":
|
20
|
+
- !binary |-
|
21
|
+
U2F0LCAyNSBNYXkgMjAxMyAxNjowNToyNCBHTVQ=
|
22
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
23
|
+
- !binary |-
|
24
|
+
Y2h1bmtlZA==
|
25
|
+
body:
|
26
|
+
encoding: ASCII-8BIT
|
27
|
+
string: !binary |-
|
28
|
+
Tm8gc3VjaCBjb250YWluZXI6IGludmFsaWRfaWQK
|
29
|
+
http_version:
|
30
|
+
recorded_at: Sat, 25 May 2013 16:05:27 GMT
|
31
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,30 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://10.0.5.5:4243/containers/95fbeced7a97/stop?t=5
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 204
|
13
|
+
message: !binary |-
|
14
|
+
Tm8gQ29udGVudA==
|
15
|
+
headers:
|
16
|
+
!binary "RGF0ZQ==":
|
17
|
+
- !binary |-
|
18
|
+
U2F0LCAyNSBNYXkgMjAxMyAxNjowNTozMSBHTVQ=
|
19
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
20
|
+
- !binary |-
|
21
|
+
Y2h1bmtlZA==
|
22
|
+
!binary "Q29udGVudC1UeXBl":
|
23
|
+
- !binary |-
|
24
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
25
|
+
body:
|
26
|
+
encoding: ASCII-8BIT
|
27
|
+
string: !binary ""
|
28
|
+
http_version:
|
29
|
+
recorded_at: Sat, 25 May 2013 16:05:33 GMT
|
30
|
+
recorded_with: VCR 2.5.0
|
data/spec/cassettes/Docker_Resource_Container/stop/raises_an_exception_for_an_unknown_container.yml
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://10.0.5.5:4243/containers/invalid_id/stop
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 404
|
13
|
+
message: !binary |-
|
14
|
+
Tm90IEZvdW5k
|
15
|
+
headers:
|
16
|
+
!binary "Q29udGVudC1UeXBl":
|
17
|
+
- !binary |-
|
18
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
19
|
+
!binary "RGF0ZQ==":
|
20
|
+
- !binary |-
|
21
|
+
U2F0LCAyNSBNYXkgMjAxMyAxNjowNToyNSBHTVQ=
|
22
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
23
|
+
- !binary |-
|
24
|
+
Y2h1bmtlZA==
|
25
|
+
body:
|
26
|
+
encoding: ASCII-8BIT
|
27
|
+
string: !binary |-
|
28
|
+
Tm8gc3VjaCBjb250YWluZXI6IGludmFsaWRfaWQK
|
29
|
+
http_version:
|
30
|
+
recorded_at: Sat, 25 May 2013 16:05:28 GMT
|
31
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,31 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://10.0.5.5:4243/containers/499c5c8ac48a/wait
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: !binary |-
|
14
|
+
T0s=
|
15
|
+
headers:
|
16
|
+
!binary "Q29udGVudC1UeXBl":
|
17
|
+
- !binary |-
|
18
|
+
YXBwbGljYXRpb24vanNvbg==
|
19
|
+
!binary "RGF0ZQ==":
|
20
|
+
- !binary |-
|
21
|
+
U2F0LCAyNSBNYXkgMjAxMyAxNjowNToyNCBHTVQ=
|
22
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
23
|
+
- !binary |-
|
24
|
+
Y2h1bmtlZA==
|
25
|
+
body:
|
26
|
+
encoding: ASCII-8BIT
|
27
|
+
string: !binary |-
|
28
|
+
eyJTdGF0dXNDb2RlIjowfQ==
|
29
|
+
http_version:
|
30
|
+
recorded_at: Sat, 25 May 2013 16:05:26 GMT
|
31
|
+
recorded_with: VCR 2.5.0
|
data/spec/cassettes/Docker_Resource_Container/wait/raises_an_exception_for_an_unknown_container.yml
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://10.0.5.5:4243/containers/invalid_id/wait
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 404
|
13
|
+
message: !binary |-
|
14
|
+
Tm90IEZvdW5k
|
15
|
+
headers:
|
16
|
+
!binary "Q29udGVudC1UeXBl":
|
17
|
+
- !binary |-
|
18
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
19
|
+
!binary "RGF0ZQ==":
|
20
|
+
- !binary |-
|
21
|
+
U2F0LCAyNSBNYXkgMjAxMyAxNjowNToxNyBHTVQ=
|
22
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
23
|
+
- !binary |-
|
24
|
+
Y2h1bmtlZA==
|
25
|
+
body:
|
26
|
+
encoding: ASCII-8BIT
|
27
|
+
string: !binary |-
|
28
|
+
Tm8gc3VjaCBjb250YWluZXI6IGludmFsaWRfaWQK
|
29
|
+
http_version:
|
30
|
+
recorded_at: Sat, 25 May 2013 16:05:19 GMT
|
31
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,33 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://10.0.5.5:4243/containers/create
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"Cmd":["env"],"Image":"base"}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 201
|
15
|
+
message: !binary |-
|
16
|
+
Q3JlYXRlZA==
|
17
|
+
headers:
|
18
|
+
!binary "RGF0ZQ==":
|
19
|
+
- !binary |-
|
20
|
+
U2F0LCAyNSBNYXkgMjAxMyAxNjowNTo0MCBHTVQ=
|
21
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
22
|
+
- !binary |-
|
23
|
+
Y2h1bmtlZA==
|
24
|
+
!binary "Q29udGVudC1UeXBl":
|
25
|
+
- !binary |-
|
26
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
27
|
+
body:
|
28
|
+
encoding: ASCII-8BIT
|
29
|
+
string: !binary |-
|
30
|
+
eyJJZCI6ImI4NDM5ZjMwMjUxMiIsIldhcm5pbmdzIjpudWxsfQ==
|
31
|
+
http_version:
|
32
|
+
recorded_at: Sat, 25 May 2013 16:05:43 GMT
|
33
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,33 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://10.0.5.5:4243/containers/create
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"Cmd":["touch","/tmp/changes"],"Image":"base"}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 201
|
15
|
+
message: !binary |-
|
16
|
+
Q3JlYXRlZA==
|
17
|
+
headers:
|
18
|
+
!binary "RGF0ZQ==":
|
19
|
+
- !binary |-
|
20
|
+
U2F0LCAyNSBNYXkgMjAxMyAxNjowNTozMiBHTVQ=
|
21
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
22
|
+
- !binary |-
|
23
|
+
Y2h1bmtlZA==
|
24
|
+
!binary "Q29udGVudC1UeXBl":
|
25
|
+
- !binary |-
|
26
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
27
|
+
body:
|
28
|
+
encoding: ASCII-8BIT
|
29
|
+
string: !binary |-
|
30
|
+
eyJJZCI6IjhmYWI5N2IwODA5MiIsIldhcm5pbmdzIjpudWxsfQ==
|
31
|
+
http_version:
|
32
|
+
recorded_at: Sat, 25 May 2013 16:05:34 GMT
|
33
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,34 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://10.0.5.5:4243/containers/create
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"Cmd":["/bin/sh","-c","while true; do echo hello world; sleep 1;
|
9
|
+
done"],"Image":"base"}'
|
10
|
+
headers:
|
11
|
+
Content-Type:
|
12
|
+
- application/json
|
13
|
+
response:
|
14
|
+
status:
|
15
|
+
code: 201
|
16
|
+
message: !binary |-
|
17
|
+
Q3JlYXRlZA==
|
18
|
+
headers:
|
19
|
+
!binary "RGF0ZQ==":
|
20
|
+
- !binary |-
|
21
|
+
U2F0LCAyNSBNYXkgMjAxMyAxNjowNTozMSBHTVQ=
|
22
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
23
|
+
- !binary |-
|
24
|
+
Y2h1bmtlZA==
|
25
|
+
!binary "Q29udGVudC1UeXBl":
|
26
|
+
- !binary |-
|
27
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
28
|
+
body:
|
29
|
+
encoding: ASCII-8BIT
|
30
|
+
string: !binary |-
|
31
|
+
eyJJZCI6IjlmNzliNDAxY2Y1NyIsIldhcm5pbmdzIjpudWxsfQ==
|
32
|
+
http_version:
|
33
|
+
recorded_at: Sat, 25 May 2013 16:05:34 GMT
|
34
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,34 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://10.0.5.5:4243/containers/create
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"Cmd":["/bin/sh","-c","while true; do echo hello world; sleep 1;
|
9
|
+
done"],"Image":"base"}'
|
10
|
+
headers:
|
11
|
+
Content-Type:
|
12
|
+
- application/json
|
13
|
+
response:
|
14
|
+
status:
|
15
|
+
code: 201
|
16
|
+
message: !binary |-
|
17
|
+
Q3JlYXRlZA==
|
18
|
+
headers:
|
19
|
+
!binary "RGF0ZQ==":
|
20
|
+
- !binary |-
|
21
|
+
U2F0LCAyNSBNYXkgMjAxMyAxNjowNToxMiBHTVQ=
|
22
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
23
|
+
- !binary |-
|
24
|
+
Y2h1bmtlZA==
|
25
|
+
!binary "Q29udGVudC1UeXBl":
|
26
|
+
- !binary |-
|
27
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
28
|
+
body:
|
29
|
+
encoding: ASCII-8BIT
|
30
|
+
string: !binary |-
|
31
|
+
eyJJZCI6IjEyNDMzZGNkNWI3YSIsIldhcm5pbmdzIjpudWxsfQ==
|
32
|
+
http_version:
|
33
|
+
recorded_at: Sat, 25 May 2013 16:05:15 GMT
|
34
|
+
recorded_with: VCR 2.5.0
|