docker-api 1.5.4 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +19 -10
  3. data/docker-api.gemspec +1 -1
  4. data/lib/docker.rb +14 -7
  5. data/lib/docker/connection.rb +6 -1
  6. data/lib/docker/image.rb +6 -5
  7. data/lib/docker/version.rb +1 -1
  8. data/spec/docker/connection_spec.rb +14 -6
  9. data/spec/docker/container_spec.rb +27 -8
  10. data/spec/docker/image_spec.rb +23 -5
  11. data/spec/docker_spec.rb +36 -28
  12. data/spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml +16 -13
  13. data/spec/vcr/Docker/_validate_version/when_nothing_is_raised/validate_version_/.yml +16 -13
  14. data/spec/vcr/Docker/_version/returns_the_version_as_a_Hash.yml +16 -13
  15. data/spec/vcr/Docker_Container/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml +120 -211
  16. data/spec/vcr/Docker_Container/_attach/yields_each_chunk.yml +46 -38
  17. data/spec/vcr/Docker_Container/_changes/returns_the_changes_as_an_array.yml +65 -53
  18. data/spec/vcr/Docker_Container/_commit/creates_a_new_Image_from_the_Container_s_changes.yml +50 -41
  19. data/spec/vcr/Docker_Container/_copy/when_the_file_does_not_exist/raises_an_error.yml +62 -48
  20. data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_directory/yields_each_chunk_of_the_tarred_directory.yml +194 -119
  21. data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_file/yields_each_chunk_of_the_tarred_file.yml +127 -52
  22. data/spec/vcr/Docker_Container/_create/when_the_Container_does_not_yet_exist/when_the_HTTP_request_returns_a_200/sets_the_id.yml +18 -15
  23. data/spec/vcr/Docker_Container/_delete/deletes_the_container.yml +62 -126
  24. data/spec/vcr/Docker_Container/_export/yields_each_chunk.yml +49 -66
  25. data/spec/vcr/Docker_Container/_json/returns_the_description_as_a_Hash.yml +33 -27
  26. data/spec/vcr/Docker_Container/_kill/kills_the_container.yml +91 -129
  27. data/spec/vcr/Docker_Container/_restart/restarts_the_container.yml +116 -95
  28. data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_does_not_return_status_code_of_0/raises_an_error.yml +50 -41
  29. 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 +135 -109
  30. data/spec/vcr/Docker_Container/_start/starts_the_container.yml +28 -57
  31. data/spec/vcr/Docker_Container/_stop/stops_the_container.yml +107 -143
  32. data/spec/vcr/Docker_Container/_top/returns_the_top_commands_as_an_Array.yml +78 -39
  33. data/spec/vcr/Docker_Container/_wait/waits_for_the_command_to_finish.yml +50 -41
  34. data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/and_a_command_runs_for_too_long/raises_a_ServerError.yml +35 -29
  35. data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/sets_the_read_timeout_to_that_amount_of_time.yml +50 -41
  36. data/spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml +34 -26
  37. data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/builds_an_image.yml +17 -17
  38. data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml +20 -15
  39. data/spec/vcr/Docker_Image/_create/when_the_Image_does_not_yet_exist_and_the_body_is_a_Hash/sets_the_id.yml +19 -14
  40. data/spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml +34 -26
  41. data/spec/vcr/Docker_Image/_insert/inserts_the_url_s_file_into_a_new_Image.yml +134 -95
  42. data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_exist/creates_a_new_Image_that_has_that_file.yml +29 -29
  43. data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_not_exist/raises_an_error.yml +5 -5
  44. data/spec/vcr/Docker_Image/_insert_local/when_there_are_multiple_files_passed/creates_a_new_Image_that_has_each_file.yml +30 -30
  45. data/spec/vcr/Docker_Image/_json/returns_additional_information_about_image_image.yml +34 -26
  46. data/spec/vcr/Docker_Image/_remove/removes_the_Image.yml +49 -38
  47. data/spec/vcr/Docker_Image/_run/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml +64 -51
  48. data/spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml +64 -51
  49. data/spec/vcr/Docker_Image/_search/materializes_each_Image_into_a_Docker_Image.yml +20 -14
  50. data/spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml +33 -25
  51. metadata +29 -54
  52. data/spec/vcr/Docker_Container/_create/when_the_Container_does_not_yet_exist_and_the_body_is_a_Hash/when_the_HTTP_request_returns_a_200/sets_the_id.yml +0 -30
@@ -2,84 +2,95 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://localhost:4243/v1.4/images/create?fromImage=base
5
+ uri: http://unix/v1.4/images/create?fromImage=base
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
+ User-Agent:
11
+ - Swipely/Docker-API 1.5.4
10
12
  Content-Type:
11
13
  - text/plain
12
- User-Agent:
13
- - Swipely/Docker-API 1.3.1
14
14
  response:
15
15
  status:
16
16
  code: 200
17
17
  message: ''
18
18
  headers:
19
- Content-Type:
20
- - application/json
21
- Date:
22
- - Wed, 07 Aug 2013 16:51:31 GMT
23
- Transfer-Encoding:
24
- - chunked
19
+ !binary "Q29udGVudC1UeXBl":
20
+ - !binary |-
21
+ YXBwbGljYXRpb24vanNvbg==
22
+ !binary "RGF0ZQ==":
23
+ - !binary |-
24
+ TW9uLCAwNyBPY3QgMjAxMyAxNDozNTo0OSBHTVQ=
25
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
26
+ - !binary |-
27
+ Y2h1bmtlZA==
25
28
  body:
26
- encoding: UTF-8
27
- string: '{"status":"Pulling repository base"}{"status":"Pulling image b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc
28
- (ubuntu-quantl) from base"}'
29
+ encoding: US-ASCII
30
+ string: ! '{"status":"Pulling repository base"}{"status":"Pulling","progress":"image
31
+ (ubuntu-quantl) from base","id":"b750fe79269d"}{"status":"Pulling","progress":"image
32
+ (ubuntu-quantl) from base, endpoint: https://cdn-registry-1.docker.io/v1/","id":"b750fe79269d"}{"status":"Pulling","progress":"dependend
33
+ layers","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"27cf78414709"}{"status":"Download","progress":"complete","id":"b750fe79269d"}'
29
34
  http_version:
30
- recorded_at: Wed, 07 Aug 2013 16:51:34 GMT
35
+ recorded_at: Mon, 07 Oct 2013 14:35:50 GMT
31
36
  - request:
32
37
  method: delete
33
- uri: http://localhost:4243/v1.4/images/base
38
+ uri: http://unix/v1.4/images/base
34
39
  body:
35
40
  encoding: US-ASCII
36
41
  string: ''
37
42
  headers:
43
+ User-Agent:
44
+ - Swipely/Docker-API 1.5.4
38
45
  Content-Type:
39
46
  - text/plain
40
- User-Agent:
41
- - Swipely/Docker-API 1.3.1
42
47
  response:
43
48
  status:
44
49
  code: 200
45
50
  message: ''
46
51
  headers:
47
- Content-Type:
48
- - application/json
49
- Content-Length:
50
- - '29'
51
- Date:
52
- - Wed, 07 Aug 2013 16:51:34 GMT
52
+ !binary "Q29udGVudC1UeXBl":
53
+ - !binary |-
54
+ YXBwbGljYXRpb24vanNvbg==
55
+ !binary "Q29udGVudC1MZW5ndGg=":
56
+ - !binary |-
57
+ ODM=
58
+ !binary "RGF0ZQ==":
59
+ - !binary |-
60
+ TW9uLCAwNyBPY3QgMjAxMyAxNDozNTo1MCBHTVQ=
53
61
  body:
54
- encoding: UTF-8
55
- string: '[{"Untagged":"b750fe79269d"}]'
62
+ encoding: US-ASCII
63
+ string: ! '[{"Untagged":"b750fe79269d"},{"Deleted":"b750fe79269d"},{"Deleted":"27cf78414709"}]'
56
64
  http_version:
57
- recorded_at: Wed, 07 Aug 2013 16:51:34 GMT
65
+ recorded_at: Mon, 07 Oct 2013 14:35:50 GMT
58
66
  - request:
59
67
  method: get
60
- uri: http://localhost:4243/v1.4/images/json
68
+ uri: http://unix/v1.4/images/json
61
69
  body:
62
70
  encoding: US-ASCII
63
71
  string: ''
64
72
  headers:
73
+ User-Agent:
74
+ - Swipely/Docker-API 1.5.4
65
75
  Content-Type:
66
76
  - text/plain
67
- User-Agent:
68
- - Swipely/Docker-API 1.3.1
69
77
  response:
70
78
  status:
71
79
  code: 200
72
80
  message: ''
73
81
  headers:
74
- Content-Type:
75
- - application/json
76
- Content-Length:
77
- - '1763'
78
- Date:
79
- - Wed, 07 Aug 2013 16:51:34 GMT
82
+ !binary "Q29udGVudC1UeXBl":
83
+ - !binary |-
84
+ YXBwbGljYXRpb24vanNvbg==
85
+ !binary "Q29udGVudC1MZW5ndGg=":
86
+ - !binary |-
87
+ Mg==
88
+ !binary "RGF0ZQ==":
89
+ - !binary |-
90
+ TW9uLCAwNyBPY3QgMjAxMyAxNDozNTo1MCBHTVQ=
80
91
  body:
81
- encoding: UTF-8
82
- string: '[{"Repository":"base2","Tag":"latest","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":24653,"VirtualSize":180116135},{"Id":"3fdce89c662f6871e14007c22a313a2fa10a48e03a2b6be1b9f8aed95e98a9dd","Created":1375890046,"Size":12288,"VirtualSize":180128423},{"Id":"7d416afc91fda6739e7f36e1eca0bde93bc11b0a5c6ac5d447dd3e5216fd839d","Created":1375890046,"Size":12288,"VirtualSize":180128423},{"Id":"8e9fb6b2aa3413e51817e2ead29bcc2abf4f2510bac20b319362ec71377953df","Created":1375894158,"Size":12288,"VirtualSize":180128423},{"Id":"c428fc1118e9bdf51158682671fa3d0821d518121bc277684fd41bde4806e766","Created":1375893899,"Size":180111989,"VirtualSize":180111989},{"Id":"c8fab65ab6d962f8728e8892cf79899eb572efcbec53c448bb8b3421baa3d7a5","Created":1375894291,"Size":12288,"VirtualSize":180128423},{"Id":"d2113c8f46540f0622ae215ca254ee190a2d6435a9ce0e4d4fa3ecd67d1a68cc","Created":1375894158,"Size":12288,"VirtualSize":180128423},{"Id":"ea96e006d00c9f431c9e3f90171b80b0eb1aa94b85da44e9cebf810e1a4c92bf","Created":1375890051,"Size":106109,"VirtualSize":180222244},{"Id":"fce068f57d199b2345f4dcece6569350a84e7bb3211a52a4d6e0c3ae3273ccef","Created":1375894291,"Size":12288,"VirtualSize":180128423},{"Id":"31cc782331e985819c7e7a93c41a3c2935a08073b7c36759431b2b5e815038c9","Created":1374855171,"Size":98970,"VirtualSize":180215105},{"Id":"411834e14abb371e09313b355274bc0055fb452348473eacd99904c956c16790","Created":1375894165,"Size":106109,"VirtualSize":180222244},{"Id":"b958fb162006910a0ddac2c19ba8479f7249b88680f321bc7133fd70c6632e4c","Created":1375891241,"Size":12288,"VirtualSize":180128423},{"Id":"e1f5c81f44b87869da2ea3f3624f9d472ec0b3844c706c9c9616f07cc71e97ac","Created":1375894111,"Size":180111989,"VirtualSize":180111989}]'
92
+ encoding: US-ASCII
93
+ string: ! '[]'
83
94
  http_version:
84
- recorded_at: Wed, 07 Aug 2013 16:51:34 GMT
85
- recorded_with: VCR 2.4.0
95
+ recorded_at: Mon, 07 Oct 2013 14:35:50 GMT
96
+ recorded_with: VCR 2.6.0
@@ -2,108 +2,121 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://localhost:4243/v1.4/images/create?fromImage=base
5
+ uri: http://unix/v1.4/images/create?fromImage=base
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
+ User-Agent:
11
+ - Swipely/Docker-API 1.5.4
10
12
  Content-Type:
11
13
  - text/plain
12
- User-Agent:
13
- - Swipely/Docker-API 1.3.1
14
14
  response:
15
15
  status:
16
16
  code: 200
17
17
  message: ''
18
18
  headers:
19
- Content-Type:
20
- - application/json
21
- Date:
22
- - Wed, 07 Aug 2013 16:51:44 GMT
23
- Transfer-Encoding:
24
- - chunked
19
+ !binary "Q29udGVudC1UeXBl":
20
+ - !binary |-
21
+ YXBwbGljYXRpb24vanNvbg==
22
+ !binary "RGF0ZQ==":
23
+ - !binary |-
24
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo1MyBHTVQ=
25
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
26
+ - !binary |-
27
+ Y2h1bmtlZA==
25
28
  body:
26
- encoding: UTF-8
27
- string: '{"status":"Pulling repository base"}{"status":"Pulling image b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc
28
- (ubuntu-quantl) from base"}'
29
+ encoding: US-ASCII
30
+ string: ! '{"status":"Pulling repository base"}{"status":"Pulling","progress":"image
31
+ (ubuntu-quantl) from base","id":"b750fe79269d"}{"status":"Pulling","progress":"image
32
+ (ubuntu-quantl) from base, endpoint: https://cdn-registry-1.docker.io/v1/","id":"b750fe79269d"}{"status":"Pulling","progress":"dependend
33
+ layers","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"27cf78414709"}{"status":"Download","progress":"complete","id":"b750fe79269d"}'
29
34
  http_version:
30
- recorded_at: Wed, 07 Aug 2013 16:51:46 GMT
35
+ recorded_at: Mon, 07 Oct 2013 00:47:55 GMT
31
36
  - request:
32
37
  method: post
33
- uri: http://localhost:4243/v1.4/containers/create
38
+ uri: http://unix/v1.4/containers/create
34
39
  body:
35
40
  encoding: UTF-8
36
- string: '{"Image":"base","Cmd":["ls","/lib64/"]}'
41
+ string: ! '{"Image":"base","Cmd":["ls","/lib64/"]}'
37
42
  headers:
38
- Content-Type:
39
- - text/plain
40
43
  User-Agent:
41
- - Swipely/Docker-API 1.3.1
44
+ - Swipely/Docker-API 1.5.4
45
+ Content-Type:
46
+ - application/json
42
47
  response:
43
48
  status:
44
49
  code: 201
45
50
  message: ''
46
51
  headers:
47
- Content-Type:
48
- - text/plain; charset=utf-8
49
- Content-Length:
50
- - '21'
51
- Date:
52
- - Wed, 07 Aug 2013 16:51:46 GMT
52
+ !binary "Q29udGVudC1UeXBl":
53
+ - !binary |-
54
+ YXBwbGljYXRpb24vanNvbg==
55
+ !binary "Q29udGVudC1MZW5ndGg=":
56
+ - !binary |-
57
+ NjU=
58
+ !binary "RGF0ZQ==":
59
+ - !binary |-
60
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo1NSBHTVQ=
53
61
  body:
54
- encoding: UTF-8
55
- string: '{"Id":"fce34948788f"}'
62
+ encoding: US-ASCII
63
+ string: ! '{"Id":"f07e23c5a658","Warnings":["IPv4 forwarding is disabled."]}'
56
64
  http_version:
57
- recorded_at: Wed, 07 Aug 2013 16:51:46 GMT
65
+ recorded_at: Mon, 07 Oct 2013 00:47:55 GMT
58
66
  - request:
59
67
  method: post
60
- uri: http://localhost:4243/v1.4/containers/fce34948788f/start
68
+ uri: http://unix/v1.4/containers/f07e23c5a658/start
61
69
  body:
62
- encoding: US-ASCII
63
- string: ''
70
+ encoding: UTF-8
71
+ string: ! '{}'
64
72
  headers:
65
- Content-Type:
66
- - text/plain
67
73
  User-Agent:
68
- - Swipely/Docker-API 1.3.1
74
+ - Swipely/Docker-API 1.5.4
75
+ Content-Type:
76
+ - application/json
69
77
  response:
70
78
  status:
71
79
  code: 204
72
80
  message: ''
73
81
  headers:
74
- Content-Type:
75
- - text/plain; charset=utf-8
76
- Content-Length:
77
- - '0'
78
- Date:
79
- - Wed, 07 Aug 2013 16:51:46 GMT
82
+ !binary "Q29udGVudC1UeXBl":
83
+ - !binary |-
84
+ dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
85
+ !binary "Q29udGVudC1MZW5ndGg=":
86
+ - !binary |-
87
+ MA==
88
+ !binary "RGF0ZQ==":
89
+ - !binary |-
90
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo1NSBHTVQ=
80
91
  body:
81
- encoding: UTF-8
92
+ encoding: US-ASCII
82
93
  string: ''
83
94
  http_version:
84
- recorded_at: Wed, 07 Aug 2013 16:51:46 GMT
95
+ recorded_at: Mon, 07 Oct 2013 00:47:55 GMT
85
96
  - request:
86
97
  method: post
87
- uri: http://localhost:4243/v1.4/containers/fce34948788f/attach?stdout=true&stream=true
98
+ uri: http://unix/v1.4/containers/f07e23c5a658/attach?stdout=true&stream=true
88
99
  body:
89
100
  encoding: US-ASCII
90
101
  string: ''
91
102
  headers:
103
+ User-Agent:
104
+ - Swipely/Docker-API 1.5.4
92
105
  Content-Type:
93
106
  - text/plain
94
- User-Agent:
95
- - Swipely/Docker-API 1.3.1
96
107
  response:
97
108
  status:
98
109
  code: 200
99
110
  message: ''
100
111
  headers:
101
- Content-Type:
102
- - application/vnd.docker.raw-stream
112
+ !binary "Q29udGVudC1UeXBl":
113
+ - !binary |-
114
+ YXBwbGljYXRpb24vdm5kLmRvY2tlci5yYXctc3RyZWFt
103
115
  body:
104
- encoding: UTF-8
105
- string: |
106
- ld-linux-x86-64.so.2
116
+ encoding: US-ASCII
117
+ string: ! 'ld-linux-x86-64.so.2
118
+
119
+ '
107
120
  http_version:
108
- recorded_at: Wed, 07 Aug 2013 16:51:46 GMT
109
- recorded_with: VCR 2.4.0
121
+ recorded_at: Mon, 07 Oct 2013 00:47:55 GMT
122
+ recorded_with: VCR 2.6.0
@@ -2,108 +2,121 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://localhost:4243/v1.4/images/create?fromImage=base
5
+ uri: http://unix/v1.4/images/create?fromImage=base
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
+ User-Agent:
11
+ - Swipely/Docker-API 1.5.4
10
12
  Content-Type:
11
13
  - text/plain
12
- User-Agent:
13
- - Swipely/Docker-API 1.3.1
14
14
  response:
15
15
  status:
16
16
  code: 200
17
17
  message: ''
18
18
  headers:
19
- Content-Type:
20
- - application/json
21
- Date:
22
- - Wed, 07 Aug 2013 16:51:46 GMT
23
- Transfer-Encoding:
24
- - chunked
19
+ !binary "Q29udGVudC1UeXBl":
20
+ - !binary |-
21
+ YXBwbGljYXRpb24vanNvbg==
22
+ !binary "RGF0ZQ==":
23
+ - !binary |-
24
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo1NSBHTVQ=
25
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
26
+ - !binary |-
27
+ Y2h1bmtlZA==
25
28
  body:
26
- encoding: UTF-8
27
- string: '{"status":"Pulling repository base"}{"status":"Pulling image b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc
28
- (ubuntu-quantl) from base"}'
29
+ encoding: US-ASCII
30
+ string: ! '{"status":"Pulling repository base"}{"status":"Pulling","progress":"image
31
+ (ubuntu-quantl) from base","id":"b750fe79269d"}{"status":"Pulling","progress":"image
32
+ (ubuntu-quantl) from base, endpoint: https://cdn-registry-1.docker.io/v1/","id":"b750fe79269d"}{"status":"Pulling","progress":"dependend
33
+ layers","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"27cf78414709"}{"status":"Download","progress":"complete","id":"b750fe79269d"}'
29
34
  http_version:
30
- recorded_at: Wed, 07 Aug 2013 16:51:48 GMT
35
+ recorded_at: Mon, 07 Oct 2013 00:47:57 GMT
31
36
  - request:
32
37
  method: post
33
- uri: http://localhost:4243/v1.4/containers/create
38
+ uri: http://unix/v1.4/containers/create
34
39
  body:
35
40
  encoding: UTF-8
36
- string: '{"Image":"base","Cmd":["which","pwd"]}'
41
+ string: ! '{"Image":"base","Cmd":["which","pwd"]}'
37
42
  headers:
38
- Content-Type:
39
- - text/plain
40
43
  User-Agent:
41
- - Swipely/Docker-API 1.3.1
44
+ - Swipely/Docker-API 1.5.4
45
+ Content-Type:
46
+ - application/json
42
47
  response:
43
48
  status:
44
49
  code: 201
45
50
  message: ''
46
51
  headers:
47
- Content-Type:
48
- - text/plain; charset=utf-8
49
- Content-Length:
50
- - '21'
51
- Date:
52
- - Wed, 07 Aug 2013 16:51:48 GMT
52
+ !binary "Q29udGVudC1UeXBl":
53
+ - !binary |-
54
+ YXBwbGljYXRpb24vanNvbg==
55
+ !binary "Q29udGVudC1MZW5ndGg=":
56
+ - !binary |-
57
+ NjU=
58
+ !binary "RGF0ZQ==":
59
+ - !binary |-
60
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo1NyBHTVQ=
53
61
  body:
54
- encoding: UTF-8
55
- string: '{"Id":"b9c891789cf7"}'
62
+ encoding: US-ASCII
63
+ string: ! '{"Id":"5d5a5a1799ac","Warnings":["IPv4 forwarding is disabled."]}'
56
64
  http_version:
57
- recorded_at: Wed, 07 Aug 2013 16:51:48 GMT
65
+ recorded_at: Mon, 07 Oct 2013 00:47:57 GMT
58
66
  - request:
59
67
  method: post
60
- uri: http://localhost:4243/v1.4/containers/b9c891789cf7/start
68
+ uri: http://unix/v1.4/containers/5d5a5a1799ac/start
61
69
  body:
62
- encoding: US-ASCII
63
- string: ''
70
+ encoding: UTF-8
71
+ string: ! '{}'
64
72
  headers:
65
- Content-Type:
66
- - text/plain
67
73
  User-Agent:
68
- - Swipely/Docker-API 1.3.1
74
+ - Swipely/Docker-API 1.5.4
75
+ Content-Type:
76
+ - application/json
69
77
  response:
70
78
  status:
71
79
  code: 204
72
80
  message: ''
73
81
  headers:
74
- Content-Type:
75
- - text/plain; charset=utf-8
76
- Content-Length:
77
- - '0'
78
- Date:
79
- - Wed, 07 Aug 2013 16:51:48 GMT
82
+ !binary "Q29udGVudC1UeXBl":
83
+ - !binary |-
84
+ dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
85
+ !binary "Q29udGVudC1MZW5ndGg=":
86
+ - !binary |-
87
+ MA==
88
+ !binary "RGF0ZQ==":
89
+ - !binary |-
90
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo1NyBHTVQ=
80
91
  body:
81
- encoding: UTF-8
92
+ encoding: US-ASCII
82
93
  string: ''
83
94
  http_version:
84
- recorded_at: Wed, 07 Aug 2013 16:51:48 GMT
95
+ recorded_at: Mon, 07 Oct 2013 00:47:57 GMT
85
96
  - request:
86
97
  method: post
87
- uri: http://localhost:4243/v1.4/containers/b9c891789cf7/attach?stdout=true&stream=true
98
+ uri: http://unix/v1.4/containers/5d5a5a1799ac/attach?stdout=true&stream=true
88
99
  body:
89
100
  encoding: US-ASCII
90
101
  string: ''
91
102
  headers:
103
+ User-Agent:
104
+ - Swipely/Docker-API 1.5.4
92
105
  Content-Type:
93
106
  - text/plain
94
- User-Agent:
95
- - Swipely/Docker-API 1.3.1
96
107
  response:
97
108
  status:
98
109
  code: 200
99
110
  message: ''
100
111
  headers:
101
- Content-Type:
102
- - application/vnd.docker.raw-stream
112
+ !binary "Q29udGVudC1UeXBl":
113
+ - !binary |-
114
+ YXBwbGljYXRpb24vdm5kLmRvY2tlci5yYXctc3RyZWFt
103
115
  body:
104
- encoding: UTF-8
105
- string: |
106
- /bin/pwd
116
+ encoding: US-ASCII
117
+ string: ! '/bin/pwd
118
+
119
+ '
107
120
  http_version:
108
- recorded_at: Wed, 07 Aug 2013 16:51:48 GMT
109
- recorded_with: VCR 2.4.0
121
+ recorded_at: Mon, 07 Oct 2013 00:47:57 GMT
122
+ recorded_with: VCR 2.6.0