docker-client 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. data/.gitignore +17 -0
  2. data/.rspec +2 -0
  3. data/.rvmrc +1 -0
  4. data/Gemfile +4 -0
  5. data/Guardfile +9 -0
  6. data/LICENSE.txt +22 -0
  7. data/MIT-LICENSE +21 -0
  8. data/README.md +87 -0
  9. data/Rakefile +15 -0
  10. data/docker.gemspec +40 -0
  11. data/lib/docker.rb +10 -0
  12. data/lib/docker/api.rb +32 -0
  13. data/lib/docker/connection.rb +83 -0
  14. data/lib/docker/error.rb +9 -0
  15. data/lib/docker/error/bad_parameter_error.rb +7 -0
  16. data/lib/docker/error/container_not_found.rb +7 -0
  17. data/lib/docker/error/internal_server_error.rb +7 -0
  18. data/lib/docker/error/not_found_error.rb +7 -0
  19. data/lib/docker/resource.rb +8 -0
  20. data/lib/docker/resource/base.rb +23 -0
  21. data/lib/docker/resource/container.rb +131 -0
  22. data/lib/docker/resource/image.rb +10 -0
  23. data/lib/docker/version.rb +3 -0
  24. data/spec/cassettes/Docker_Connection/returns_a_valid_response_for_a_basic_request.yml +40 -0
  25. data/spec/cassettes/Docker_Connection/returns_a_valid_response_for_get_request.yml +105 -0
  26. data/spec/cassettes/Docker_Connection/returns_a_valid_response_for_post_request.yml +30 -0
  27. data/spec/cassettes/Docker_Connection/returns_status_404_for_non_existent_path.yml +31 -0
  28. data/spec/cassettes/Docker_Connection/sets_given_query_parameters.yml +31 -0
  29. data/spec/cassettes/Docker_Connection/sets_given_request_headers.yml +33 -0
  30. data/spec/cassettes/Docker_Resource_Container/changes/inspects_the_container_s_filesystem_changes.yml +33 -0
  31. data/spec/cassettes/Docker_Resource_Container/create/raises_an_exception_when_called_with_invalid_options.yml +34 -0
  32. data/spec/cassettes/Docker_Resource_Container/create/with_many_settings.yml +36 -0
  33. data/spec/cassettes/Docker_Resource_Container/create/with_minimal_settings.yml +34 -0
  34. data/spec/cassettes/Docker_Resource_Container/kill/raises_an_exception_for_an_unknow_container.yml +31 -0
  35. data/spec/cassettes/Docker_Resource_Container/kill/the_container.yml +30 -0
  36. data/spec/cassettes/Docker_Resource_Container/lists/all_running_containers.yml +46 -0
  37. data/spec/cassettes/Docker_Resource_Container/lists/limit_last_created_containers.yml +34 -0
  38. data/spec/cassettes/Docker_Resource_Container/lists/non-running_processes_too.yml +114 -0
  39. data/spec/cassettes/Docker_Resource_Container/lists/processes_before_a_certain_created_container.yml +110 -0
  40. data/spec/cassettes/Docker_Resource_Container/lists/processes_since_a_certain_created_container.yml +34 -0
  41. data/spec/cassettes/Docker_Resource_Container/logs/returns_the_stderr_of_a_container.yml +25 -0
  42. data/spec/cassettes/Docker_Resource_Container/logs/returns_the_stdout_of_a_container.yml +25 -0
  43. data/spec/cassettes/Docker_Resource_Container/remove/deletes_the_container.yml +30 -0
  44. data/spec/cassettes/Docker_Resource_Container/remove/raises_an_exception_with_an_invalid_container.yml +31 -0
  45. data/spec/cassettes/Docker_Resource_Container/restarts/raises_an_exception_for_an_unknown_container.yml +31 -0
  46. data/spec/cassettes/Docker_Resource_Container/restarts/the_container.yml +30 -0
  47. data/spec/cassettes/Docker_Resource_Container/shows/the_low_level_details.yml +48 -0
  48. data/spec/cassettes/Docker_Resource_Container/start/brings_a_container_into_state_running.yml +30 -0
  49. data/spec/cassettes/Docker_Resource_Container/start/raises_an_exception_for_an_unknown_container.yml +31 -0
  50. data/spec/cassettes/Docker_Resource_Container/stop/halts_a_container.yml +30 -0
  51. data/spec/cassettes/Docker_Resource_Container/stop/raises_an_exception_for_an_unknown_container.yml +31 -0
  52. data/spec/cassettes/Docker_Resource_Container/wait/blocks_until_the_container_stops.yml +31 -0
  53. data/spec/cassettes/Docker_Resource_Container/wait/raises_an_exception_for_an_unknown_container.yml +31 -0
  54. data/spec/cassettes/test_setup/create_container_connection_post.yml +33 -0
  55. data/spec/cassettes/test_setup/create_container_container_changes.yml +33 -0
  56. data/spec/cassettes/test_setup/create_container_container_kill.yml +34 -0
  57. data/spec/cassettes/test_setup/create_container_container_lists1.yml +34 -0
  58. data/spec/cassettes/test_setup/create_container_container_lists2.yml +33 -0
  59. data/spec/cassettes/test_setup/create_container_container_logs.yml +33 -0
  60. data/spec/cassettes/test_setup/create_container_container_remove.yml +33 -0
  61. data/spec/cassettes/test_setup/create_container_container_restarts.yml +34 -0
  62. data/spec/cassettes/test_setup/create_container_container_shows.yml +33 -0
  63. data/spec/cassettes/test_setup/create_container_container_start.yml +33 -0
  64. data/spec/cassettes/test_setup/create_container_container_stop.yml +34 -0
  65. data/spec/cassettes/test_setup/create_container_container_wait.yml +33 -0
  66. data/spec/cassettes/test_setup/delete_container.yml +405 -0
  67. data/spec/cassettes/test_setup/start_container.yml +235 -0
  68. data/spec/cassettes/test_setup/wait_on_container.yml +63 -0
  69. data/spec/docker/api_spec.rb +37 -0
  70. data/spec/docker/connection_spec.rb +81 -0
  71. data/spec/docker/resource/container_spec.rb +288 -0
  72. data/spec/helpers.rb +48 -0
  73. data/spec/spec_helper.rb +31 -0
  74. 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
@@ -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
@@ -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
@@ -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