docker-api 1.6.0 → 1.7.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 (68) hide show
  1. checksums.yaml +4 -4
  2. data/.cane +0 -1
  3. data/README.md +6 -7
  4. data/docker-api.gemspec +3 -4
  5. data/lib/docker.rb +10 -5
  6. data/lib/docker/connection.rb +2 -0
  7. data/lib/docker/container.rb +39 -4
  8. data/lib/docker/error.rb +6 -0
  9. data/lib/docker/event.rb +40 -0
  10. data/lib/docker/image.rb +37 -13
  11. data/lib/docker/util.rb +25 -1
  12. data/lib/docker/version.rb +2 -2
  13. data/spec/docker/container_spec.rb +37 -19
  14. data/spec/docker/event_spec.rb +79 -0
  15. data/spec/docker/image_spec.rb +89 -30
  16. data/spec/docker/util_spec.rb +83 -0
  17. data/spec/docker_spec.rb +47 -2
  18. data/spec/fixtures/{Dockerfile → build_from_dir/Dockerfile} +0 -0
  19. data/spec/fixtures/top/Dockerfile +2 -0
  20. data/spec/support/vcr.rb +1 -4
  21. data/spec/vcr/Docker/_authenticate_/with_valid_credentials/logs_in_and_sets_the_creds.yml +33 -0
  22. data/spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml +7 -7
  23. data/spec/vcr/Docker/_validate_version/when_nothing_is_raised/validate_version_/.yml +6 -6
  24. data/spec/vcr/Docker/_version/returns_the_version_as_a_Hash.yml +6 -6
  25. data/spec/vcr/Docker_Container/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml +27 -97
  26. data/spec/vcr/Docker_Container/_attach/yields_each_chunk.yml +18 -19
  27. data/spec/vcr/Docker_Container/_changes/returns_the_changes_as_an_array.yml +22 -22
  28. data/spec/vcr/Docker_Container/_commit/creates_a_new_Image_from_the_Container_s_changes.yml +18 -18
  29. data/spec/vcr/Docker_Container/_commit/if_run_is_passed_it_saves_the_command_in_the_image/saves_the_command.yml +178 -0
  30. data/spec/vcr/Docker_Container/_copy/when_the_file_does_not_exist/raises_an_error.yml +54 -24
  31. data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_directory/yields_each_chunk_of_the_tarred_directory.yml +27 -60
  32. data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_file/yields_each_chunk_of_the_tarred_file.yml +27 -60
  33. 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
  34. data/spec/vcr/Docker_Container/_delete/deletes_the_container.yml +16 -46
  35. data/spec/vcr/Docker_Container/_export/yields_each_chunk.yml +24 -17
  36. data/spec/vcr/Docker_Container/_json/returns_the_description_as_a_Hash.yml +14 -14
  37. data/spec/vcr/Docker_Container/_kill/kills_the_container.yml +36 -49
  38. data/spec/vcr/Docker_Container/_restart/restarts_the_container.yml +43 -43
  39. data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_does_not_return_status_code_of_0/raises_an_error.yml +17 -17
  40. 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 +47 -47
  41. data/spec/vcr/Docker_Container/_start/starts_the_container.yml +25 -25
  42. data/spec/vcr/Docker_Container/_stop/stops_the_container.yml +40 -53
  43. data/spec/vcr/Docker_Container/_top/returns_the_top_commands_as_an_Array.yml +89 -25
  44. data/spec/vcr/Docker_Container/_wait/waits_for_the_command_to_finish.yml +17 -17
  45. data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/and_a_command_runs_for_too_long/raises_a_ServerError.yml +12 -12
  46. data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/sets_the_read_timeout_to_that_amount_of_time.yml +17 -17
  47. data/spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml +12 -12
  48. 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 +110 -0
  49. data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/{builds_an_image.yml → without_query_parameters/builds_an_image.yml} +5 -5
  50. data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml +7 -9
  51. data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_no_query_parameters/builds_the_image.yml +121 -0
  52. 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 +151 -0
  53. data/spec/vcr/Docker_Image/_create/when_the_Image_does_not_yet_exist_and_the_body_is_a_Hash/sets_the_id.yml +5 -5
  54. data/spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml +10 -10
  55. data/spec/vcr/Docker_Image/_insert/inserts_the_url_s_file_into_a_new_Image.yml +53 -109
  56. data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_exist/creates_a_new_Image_that_has_that_file.yml +32 -68
  57. data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_not_exist/raises_an_error.yml +5 -5
  58. data/spec/vcr/Docker_Image/_insert_local/when_there_are_multiple_files_passed/creates_a_new_Image_that_has_each_file.yml +40 -68
  59. data/spec/vcr/Docker_Image/_json/returns_additional_information_about_image_image.yml +10 -10
  60. data/spec/vcr/Docker_Image/_push/pushes_the_Image.yml +161 -0
  61. data/spec/vcr/Docker_Image/_remove/removes_the_Image.yml +17 -17
  62. data/spec/vcr/Docker_Image/_run/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml +23 -24
  63. data/spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml +23 -24
  64. data/spec/vcr/Docker_Image/_run/when_the_argument_is_nil/command_configured_in_image/should_normally_show_result_if_image_has_Cmd_configured.yml +148 -0
  65. 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 +68 -0
  66. data/spec/vcr/Docker_Image/_search/materializes_each_Image_into_a_Docker_Image.yml +13 -11
  67. data/spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml +10 -10
  68. metadata +32 -24
@@ -2,26 +2,26 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://unix/v1.4/images/create?fromImage=base
5
+ uri: unix:///var/run/docker.sock/v1.6/images/create?fromImage=base
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - Swipely/Docker-API 1.5.4
11
+ - Swipely/Docker-API 1.6.0
12
12
  Content-Type:
13
13
  - text/plain
14
14
  response:
15
15
  status:
16
16
  code: 200
17
- message: ''
17
+ message:
18
18
  headers:
19
19
  !binary "Q29udGVudC1UeXBl":
20
20
  - !binary |-
21
21
  YXBwbGljYXRpb24vanNvbg==
22
22
  !binary "RGF0ZQ==":
23
23
  - !binary |-
24
- TW9uLCAwNyBPY3QgMjAxMyAxNDozNTo0OSBHTVQ=
24
+ RnJpLCAyNSBPY3QgMjAxMyAxNjozMzoxMSBHTVQ=
25
25
  !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
26
26
  - !binary |-
27
27
  Y2h1bmtlZA==
@@ -32,52 +32,52 @@ http_interactions:
32
32
  (ubuntu-quantl) from base, endpoint: https://cdn-registry-1.docker.io/v1/","id":"b750fe79269d"}{"status":"Pulling","progress":"dependend
33
33
  layers","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"27cf78414709"}{"status":"Download","progress":"complete","id":"b750fe79269d"}'
34
34
  http_version:
35
- recorded_at: Mon, 07 Oct 2013 14:35:50 GMT
35
+ recorded_at: Fri, 25 Oct 2013 16:33:13 GMT
36
36
  - request:
37
37
  method: delete
38
- uri: http://unix/v1.4/images/base
38
+ uri: unix:///var/run/docker.sock/v1.6/images/base
39
39
  body:
40
40
  encoding: US-ASCII
41
41
  string: ''
42
42
  headers:
43
43
  User-Agent:
44
- - Swipely/Docker-API 1.5.4
44
+ - Swipely/Docker-API 1.6.0
45
45
  Content-Type:
46
46
  - text/plain
47
47
  response:
48
48
  status:
49
49
  code: 200
50
- message: ''
50
+ message:
51
51
  headers:
52
52
  !binary "Q29udGVudC1UeXBl":
53
53
  - !binary |-
54
54
  YXBwbGljYXRpb24vanNvbg==
55
55
  !binary "Q29udGVudC1MZW5ndGg=":
56
56
  - !binary |-
57
- ODM=
57
+ MTM3
58
58
  !binary "RGF0ZQ==":
59
59
  - !binary |-
60
- TW9uLCAwNyBPY3QgMjAxMyAxNDozNTo1MCBHTVQ=
60
+ RnJpLCAyNSBPY3QgMjAxMyAxNjozMzoxMyBHTVQ=
61
61
  body:
62
62
  encoding: US-ASCII
63
- string: ! '[{"Untagged":"b750fe79269d"},{"Deleted":"b750fe79269d"},{"Deleted":"27cf78414709"}]'
63
+ string: ! '[{"Untagged":"b750fe79269d"},{"Deleted":"ab6357d3e739"},{"Deleted":"e861b7367861"},{"Deleted":"b750fe79269d"},{"Deleted":"27cf78414709"}]'
64
64
  http_version:
65
- recorded_at: Mon, 07 Oct 2013 14:35:50 GMT
65
+ recorded_at: Fri, 25 Oct 2013 16:33:13 GMT
66
66
  - request:
67
67
  method: get
68
- uri: http://unix/v1.4/images/json
68
+ uri: unix:///var/run/docker.sock/v1.6/images/json
69
69
  body:
70
70
  encoding: US-ASCII
71
71
  string: ''
72
72
  headers:
73
73
  User-Agent:
74
- - Swipely/Docker-API 1.5.4
74
+ - Swipely/Docker-API 1.6.0
75
75
  Content-Type:
76
76
  - text/plain
77
77
  response:
78
78
  status:
79
79
  code: 200
80
- message: ''
80
+ message:
81
81
  headers:
82
82
  !binary "Q29udGVudC1UeXBl":
83
83
  - !binary |-
@@ -87,10 +87,10 @@ http_interactions:
87
87
  Mg==
88
88
  !binary "RGF0ZQ==":
89
89
  - !binary |-
90
- TW9uLCAwNyBPY3QgMjAxMyAxNDozNTo1MCBHTVQ=
90
+ RnJpLCAyNSBPY3QgMjAxMyAxNjozMzoxMyBHTVQ=
91
91
  body:
92
92
  encoding: US-ASCII
93
93
  string: ! '[]'
94
94
  http_version:
95
- recorded_at: Mon, 07 Oct 2013 14:35:50 GMT
95
+ recorded_at: Fri, 25 Oct 2013 16:33:13 GMT
96
96
  recorded_with: VCR 2.6.0
@@ -2,26 +2,26 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://unix/v1.4/images/create?fromImage=base
5
+ uri: unix:///var/run/docker.sock/v1.6/images/create?fromImage=base
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - Swipely/Docker-API 1.5.4
11
+ - Swipely/Docker-API 1.6.0
12
12
  Content-Type:
13
13
  - text/plain
14
14
  response:
15
15
  status:
16
16
  code: 200
17
- message: ''
17
+ message:
18
18
  headers:
19
19
  !binary "Q29udGVudC1UeXBl":
20
20
  - !binary |-
21
21
  YXBwbGljYXRpb24vanNvbg==
22
22
  !binary "RGF0ZQ==":
23
23
  - !binary |-
24
- TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo1MyBHTVQ=
24
+ V2VkLCAzMCBPY3QgMjAxMyAxNjo1ODo1NSBHTVQ=
25
25
  !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
26
26
  - !binary |-
27
27
  Y2h1bmtlZA==
@@ -32,52 +32,52 @@ http_interactions:
32
32
  (ubuntu-quantl) from base, endpoint: https://cdn-registry-1.docker.io/v1/","id":"b750fe79269d"}{"status":"Pulling","progress":"dependend
33
33
  layers","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"27cf78414709"}{"status":"Download","progress":"complete","id":"b750fe79269d"}'
34
34
  http_version:
35
- recorded_at: Mon, 07 Oct 2013 00:47:55 GMT
35
+ recorded_at: Wed, 30 Oct 2013 16:58:57 GMT
36
36
  - request:
37
37
  method: post
38
- uri: http://unix/v1.4/containers/create
38
+ uri: unix:///var/run/docker.sock/v1.6/containers/create
39
39
  body:
40
40
  encoding: UTF-8
41
41
  string: ! '{"Image":"base","Cmd":["ls","/lib64/"]}'
42
42
  headers:
43
43
  User-Agent:
44
- - Swipely/Docker-API 1.5.4
44
+ - Swipely/Docker-API 1.6.0
45
45
  Content-Type:
46
46
  - application/json
47
47
  response:
48
48
  status:
49
49
  code: 201
50
- message: ''
50
+ message:
51
51
  headers:
52
52
  !binary "Q29udGVudC1UeXBl":
53
53
  - !binary |-
54
54
  YXBwbGljYXRpb24vanNvbg==
55
55
  !binary "Q29udGVudC1MZW5ndGg=":
56
56
  - !binary |-
57
- NjU=
57
+ MjE=
58
58
  !binary "RGF0ZQ==":
59
59
  - !binary |-
60
- TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo1NSBHTVQ=
60
+ V2VkLCAzMCBPY3QgMjAxMyAxNjo1ODo1NyBHTVQ=
61
61
  body:
62
62
  encoding: US-ASCII
63
- string: ! '{"Id":"f07e23c5a658","Warnings":["IPv4 forwarding is disabled."]}'
63
+ string: ! '{"Id":"43d2709b42d7"}'
64
64
  http_version:
65
- recorded_at: Mon, 07 Oct 2013 00:47:55 GMT
65
+ recorded_at: Wed, 30 Oct 2013 16:58:57 GMT
66
66
  - request:
67
67
  method: post
68
- uri: http://unix/v1.4/containers/f07e23c5a658/start
68
+ uri: unix:///var/run/docker.sock/v1.6/containers/43d2709b42d7/start
69
69
  body:
70
70
  encoding: UTF-8
71
71
  string: ! '{}'
72
72
  headers:
73
73
  User-Agent:
74
- - Swipely/Docker-API 1.5.4
74
+ - Swipely/Docker-API 1.6.0
75
75
  Content-Type:
76
76
  - application/json
77
77
  response:
78
78
  status:
79
79
  code: 204
80
- message: ''
80
+ message:
81
81
  headers:
82
82
  !binary "Q29udGVudC1UeXBl":
83
83
  - !binary |-
@@ -87,36 +87,35 @@ http_interactions:
87
87
  MA==
88
88
  !binary "RGF0ZQ==":
89
89
  - !binary |-
90
- TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo1NSBHTVQ=
90
+ V2VkLCAzMCBPY3QgMjAxMyAxNjo1ODo1NyBHTVQ=
91
91
  body:
92
92
  encoding: US-ASCII
93
93
  string: ''
94
94
  http_version:
95
- recorded_at: Mon, 07 Oct 2013 00:47:55 GMT
95
+ recorded_at: Wed, 30 Oct 2013 16:58:57 GMT
96
96
  - request:
97
97
  method: post
98
- uri: http://unix/v1.4/containers/f07e23c5a658/attach?stdout=true&stream=true
98
+ uri: unix:///var/run/docker.sock/v1.6/containers/43d2709b42d7/attach?stderr=true&stdout=true&stream=true
99
99
  body:
100
100
  encoding: US-ASCII
101
101
  string: ''
102
102
  headers:
103
103
  User-Agent:
104
- - Swipely/Docker-API 1.5.4
104
+ - Swipely/Docker-API 1.6.0
105
105
  Content-Type:
106
106
  - text/plain
107
107
  response:
108
108
  status:
109
109
  code: 200
110
- message: ''
110
+ message:
111
111
  headers:
112
112
  !binary "Q29udGVudC1UeXBl":
113
113
  - !binary |-
114
114
  YXBwbGljYXRpb24vdm5kLmRvY2tlci5yYXctc3RyZWFt
115
115
  body:
116
116
  encoding: US-ASCII
117
- string: ! 'ld-linux-x86-64.so.2
118
-
119
- '
117
+ string: !binary |-
118
+ AQAAAAAAABVsZC1saW51eC14ODYtNjQuc28uMgo=
120
119
  http_version:
121
- recorded_at: Mon, 07 Oct 2013 00:47:55 GMT
120
+ recorded_at: Wed, 30 Oct 2013 16:58:57 GMT
122
121
  recorded_with: VCR 2.6.0
@@ -2,26 +2,26 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://unix/v1.4/images/create?fromImage=base
5
+ uri: unix:///var/run/docker.sock/v1.6/images/create?fromImage=base
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - Swipely/Docker-API 1.5.4
11
+ - Swipely/Docker-API 1.6.0
12
12
  Content-Type:
13
13
  - text/plain
14
14
  response:
15
15
  status:
16
16
  code: 200
17
- message: ''
17
+ message:
18
18
  headers:
19
19
  !binary "Q29udGVudC1UeXBl":
20
20
  - !binary |-
21
21
  YXBwbGljYXRpb24vanNvbg==
22
22
  !binary "RGF0ZQ==":
23
23
  - !binary |-
24
- TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo1NSBHTVQ=
24
+ V2VkLCAzMCBPY3QgMjAxMyAxNjo1ODo1NyBHTVQ=
25
25
  !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
26
26
  - !binary |-
27
27
  Y2h1bmtlZA==
@@ -32,52 +32,52 @@ http_interactions:
32
32
  (ubuntu-quantl) from base, endpoint: https://cdn-registry-1.docker.io/v1/","id":"b750fe79269d"}{"status":"Pulling","progress":"dependend
33
33
  layers","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"27cf78414709"}{"status":"Download","progress":"complete","id":"b750fe79269d"}'
34
34
  http_version:
35
- recorded_at: Mon, 07 Oct 2013 00:47:57 GMT
35
+ recorded_at: Wed, 30 Oct 2013 16:58:58 GMT
36
36
  - request:
37
37
  method: post
38
- uri: http://unix/v1.4/containers/create
38
+ uri: unix:///var/run/docker.sock/v1.6/containers/create
39
39
  body:
40
40
  encoding: UTF-8
41
41
  string: ! '{"Image":"base","Cmd":["which","pwd"]}'
42
42
  headers:
43
43
  User-Agent:
44
- - Swipely/Docker-API 1.5.4
44
+ - Swipely/Docker-API 1.6.0
45
45
  Content-Type:
46
46
  - application/json
47
47
  response:
48
48
  status:
49
49
  code: 201
50
- message: ''
50
+ message:
51
51
  headers:
52
52
  !binary "Q29udGVudC1UeXBl":
53
53
  - !binary |-
54
54
  YXBwbGljYXRpb24vanNvbg==
55
55
  !binary "Q29udGVudC1MZW5ndGg=":
56
56
  - !binary |-
57
- NjU=
57
+ MjE=
58
58
  !binary "RGF0ZQ==":
59
59
  - !binary |-
60
- TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo1NyBHTVQ=
60
+ V2VkLCAzMCBPY3QgMjAxMyAxNjo1ODo1OCBHTVQ=
61
61
  body:
62
62
  encoding: US-ASCII
63
- string: ! '{"Id":"5d5a5a1799ac","Warnings":["IPv4 forwarding is disabled."]}'
63
+ string: ! '{"Id":"fb03cde2fcfb"}'
64
64
  http_version:
65
- recorded_at: Mon, 07 Oct 2013 00:47:57 GMT
65
+ recorded_at: Wed, 30 Oct 2013 16:58:58 GMT
66
66
  - request:
67
67
  method: post
68
- uri: http://unix/v1.4/containers/5d5a5a1799ac/start
68
+ uri: unix:///var/run/docker.sock/v1.6/containers/fb03cde2fcfb/start
69
69
  body:
70
70
  encoding: UTF-8
71
71
  string: ! '{}'
72
72
  headers:
73
73
  User-Agent:
74
- - Swipely/Docker-API 1.5.4
74
+ - Swipely/Docker-API 1.6.0
75
75
  Content-Type:
76
76
  - application/json
77
77
  response:
78
78
  status:
79
79
  code: 204
80
- message: ''
80
+ message:
81
81
  headers:
82
82
  !binary "Q29udGVudC1UeXBl":
83
83
  - !binary |-
@@ -87,36 +87,35 @@ http_interactions:
87
87
  MA==
88
88
  !binary "RGF0ZQ==":
89
89
  - !binary |-
90
- TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo1NyBHTVQ=
90
+ V2VkLCAzMCBPY3QgMjAxMyAxNjo1ODo1OCBHTVQ=
91
91
  body:
92
92
  encoding: US-ASCII
93
93
  string: ''
94
94
  http_version:
95
- recorded_at: Mon, 07 Oct 2013 00:47:57 GMT
95
+ recorded_at: Wed, 30 Oct 2013 16:58:58 GMT
96
96
  - request:
97
97
  method: post
98
- uri: http://unix/v1.4/containers/5d5a5a1799ac/attach?stdout=true&stream=true
98
+ uri: unix:///var/run/docker.sock/v1.6/containers/fb03cde2fcfb/attach?stderr=true&stdout=true&stream=true
99
99
  body:
100
100
  encoding: US-ASCII
101
101
  string: ''
102
102
  headers:
103
103
  User-Agent:
104
- - Swipely/Docker-API 1.5.4
104
+ - Swipely/Docker-API 1.6.0
105
105
  Content-Type:
106
106
  - text/plain
107
107
  response:
108
108
  status:
109
109
  code: 200
110
- message: ''
110
+ message:
111
111
  headers:
112
112
  !binary "Q29udGVudC1UeXBl":
113
113
  - !binary |-
114
114
  YXBwbGljYXRpb24vdm5kLmRvY2tlci5yYXctc3RyZWFt
115
115
  body:
116
116
  encoding: US-ASCII
117
- string: ! '/bin/pwd
118
-
119
- '
117
+ string: !binary |-
118
+ AQAAAAAAAAkvYmluL3B3ZAo=
120
119
  http_version:
121
- recorded_at: Mon, 07 Oct 2013 00:47:57 GMT
120
+ recorded_at: Wed, 30 Oct 2013 16:58:58 GMT
122
121
  recorded_with: VCR 2.6.0
@@ -0,0 +1,148 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: unix:///var/run/docker.sock/v1.6/containers/create
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"Cmd":["true"],"Image":"base"}'
9
+ headers:
10
+ User-Agent:
11
+ - Swipely/Docker-API 1.6.0
12
+ Content-Type:
13
+ - application/json
14
+ response:
15
+ status:
16
+ code: 201
17
+ message:
18
+ headers:
19
+ !binary "Q29udGVudC1UeXBl":
20
+ - !binary |-
21
+ YXBwbGljYXRpb24vanNvbg==
22
+ !binary "Q29udGVudC1MZW5ndGg=":
23
+ - !binary |-
24
+ MjE=
25
+ !binary "RGF0ZQ==":
26
+ - !binary |-
27
+ VGh1LCAzMSBPY3QgMjAxMyAxODoxNzo0NyBHTVQ=
28
+ body:
29
+ encoding: US-ASCII
30
+ string: ! '{"Id":"dc9e3ac95fc5"}'
31
+ http_version:
32
+ recorded_at: Thu, 31 Oct 2013 18:17:47 GMT
33
+ - request:
34
+ method: post
35
+ uri: unix:///var/run/docker.sock/v1.6/commit?container=dc9e3ac9
36
+ body:
37
+ encoding: UTF-8
38
+ string: ! '{"Cmd":["pwd"]}'
39
+ headers:
40
+ User-Agent:
41
+ - Swipely/Docker-API 1.6.0
42
+ Content-Type:
43
+ - application/json
44
+ response:
45
+ status:
46
+ code: 201
47
+ message:
48
+ headers:
49
+ !binary "Q29udGVudC1UeXBl":
50
+ - !binary |-
51
+ YXBwbGljYXRpb24vanNvbg==
52
+ !binary "Q29udGVudC1MZW5ndGg=":
53
+ - !binary |-
54
+ MjE=
55
+ !binary "RGF0ZQ==":
56
+ - !binary |-
57
+ VGh1LCAzMSBPY3QgMjAxMyAxODoxNzo0NyBHTVQ=
58
+ body:
59
+ encoding: US-ASCII
60
+ string: ! '{"Id":"3a83fe5e49bf"}'
61
+ http_version:
62
+ recorded_at: Thu, 31 Oct 2013 18:17:47 GMT
63
+ - request:
64
+ method: post
65
+ uri: unix:///var/run/docker.sock/v1.6/containers/create
66
+ body:
67
+ encoding: UTF-8
68
+ string: ! '{"Image":"3a83fe5e49bf"}'
69
+ headers:
70
+ User-Agent:
71
+ - Swipely/Docker-API 1.6.0
72
+ Content-Type:
73
+ - application/json
74
+ response:
75
+ status:
76
+ code: 201
77
+ message:
78
+ headers:
79
+ !binary "Q29udGVudC1UeXBl":
80
+ - !binary |-
81
+ YXBwbGljYXRpb24vanNvbg==
82
+ !binary "Q29udGVudC1MZW5ndGg=":
83
+ - !binary |-
84
+ MjE=
85
+ !binary "RGF0ZQ==":
86
+ - !binary |-
87
+ VGh1LCAzMSBPY3QgMjAxMyAxODoxNzo0NyBHTVQ=
88
+ body:
89
+ encoding: US-ASCII
90
+ string: ! '{"Id":"ac8e28bf5cb0"}'
91
+ http_version:
92
+ recorded_at: Thu, 31 Oct 2013 18:17:47 GMT
93
+ - request:
94
+ method: post
95
+ uri: unix:///var/run/docker.sock/v1.6/containers/ac8e28bf5cb0/start
96
+ body:
97
+ encoding: UTF-8
98
+ string: ! '{}'
99
+ headers:
100
+ User-Agent:
101
+ - Swipely/Docker-API 1.6.0
102
+ Content-Type:
103
+ - application/json
104
+ response:
105
+ status:
106
+ code: 204
107
+ message:
108
+ headers:
109
+ !binary "Q29udGVudC1UeXBl":
110
+ - !binary |-
111
+ dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
112
+ !binary "Q29udGVudC1MZW5ndGg=":
113
+ - !binary |-
114
+ MA==
115
+ !binary "RGF0ZQ==":
116
+ - !binary |-
117
+ VGh1LCAzMSBPY3QgMjAxMyAxODoxNzo0NyBHTVQ=
118
+ body:
119
+ encoding: US-ASCII
120
+ string: ''
121
+ http_version:
122
+ recorded_at: Thu, 31 Oct 2013 18:17:47 GMT
123
+ - request:
124
+ method: post
125
+ uri: unix:///var/run/docker.sock/v1.6/containers/ac8e28bf5cb0/attach?stderr=true&stdout=true&stream=true
126
+ body:
127
+ encoding: US-ASCII
128
+ string: ''
129
+ headers:
130
+ User-Agent:
131
+ - Swipely/Docker-API 1.6.0
132
+ Content-Type:
133
+ - text/plain
134
+ response:
135
+ status:
136
+ code: 200
137
+ message:
138
+ headers:
139
+ !binary "Q29udGVudC1UeXBl":
140
+ - !binary |-
141
+ YXBwbGljYXRpb24vdm5kLmRvY2tlci5yYXctc3RyZWFt
142
+ body:
143
+ encoding: US-ASCII
144
+ string: !binary |-
145
+ AQAAAAAAAAIvCg==
146
+ http_version:
147
+ recorded_at: Thu, 31 Oct 2013 18:17:47 GMT
148
+ recorded_with: VCR 2.7.0