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,80 +2,88 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://localhost:4243/v1.4/containers/create
5
+ uri: http://unix/v1.4/containers/create
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"Cmd":["pwd"],"Image":"base"}'
8
+ string: ! '{"Cmd":["pwd"],"Image":"base"}'
9
9
  headers:
10
- Content-Type:
11
- - text/plain
12
10
  User-Agent:
13
- - Swipely/Docker-API 1.3.1
11
+ - Swipely/Docker-API 1.5.4
12
+ Content-Type:
13
+ - application/json
14
14
  response:
15
15
  status:
16
16
  code: 201
17
17
  message: ''
18
18
  headers:
19
- Content-Type:
20
- - text/plain; charset=utf-8
21
- Content-Length:
22
- - '21'
23
- Date:
24
- - Wed, 07 Aug 2013 16:51:14 GMT
19
+ !binary "Q29udGVudC1UeXBl":
20
+ - !binary |-
21
+ YXBwbGljYXRpb24vanNvbg==
22
+ !binary "Q29udGVudC1MZW5ndGg=":
23
+ - !binary |-
24
+ NjU=
25
+ !binary "RGF0ZQ==":
26
+ - !binary |-
27
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0NzoyMCBHTVQ=
25
28
  body:
26
- encoding: UTF-8
27
- string: '{"Id":"fe03763be9b4"}'
29
+ encoding: US-ASCII
30
+ string: ! '{"Id":"f401329d4fd9","Warnings":["IPv4 forwarding is disabled."]}'
28
31
  http_version:
29
- recorded_at: Wed, 07 Aug 2013 16:51:14 GMT
32
+ recorded_at: Mon, 07 Oct 2013 00:47:20 GMT
30
33
  - request:
31
34
  method: post
32
- uri: http://localhost:4243/v1.4/containers/fe03763be9b4/start
35
+ uri: http://unix/v1.4/containers/f401329d4fd9/start
33
36
  body:
34
- encoding: US-ASCII
35
- string: ''
37
+ encoding: UTF-8
38
+ string: ! '{}'
36
39
  headers:
37
- Content-Type:
38
- - text/plain
39
40
  User-Agent:
40
- - Swipely/Docker-API 1.3.1
41
+ - Swipely/Docker-API 1.5.4
42
+ Content-Type:
43
+ - application/json
41
44
  response:
42
45
  status:
43
46
  code: 204
44
47
  message: ''
45
48
  headers:
46
- Content-Type:
47
- - text/plain; charset=utf-8
48
- Content-Length:
49
- - '0'
50
- Date:
51
- - Wed, 07 Aug 2013 16:51:14 GMT
49
+ !binary "Q29udGVudC1UeXBl":
50
+ - !binary |-
51
+ dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
52
+ !binary "Q29udGVudC1MZW5ndGg=":
53
+ - !binary |-
54
+ MA==
55
+ !binary "RGF0ZQ==":
56
+ - !binary |-
57
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0NzoyMCBHTVQ=
52
58
  body:
53
- encoding: UTF-8
59
+ encoding: US-ASCII
54
60
  string: ''
55
61
  http_version:
56
- recorded_at: Wed, 07 Aug 2013 16:51:14 GMT
62
+ recorded_at: Mon, 07 Oct 2013 00:47:20 GMT
57
63
  - request:
58
64
  method: post
59
- uri: http://localhost:4243/v1.4/containers/fe03763be9b4/attach?stdout=true&stream=true
65
+ uri: http://unix/v1.4/containers/f401329d4fd9/attach?stdout=true&stream=true
60
66
  body:
61
67
  encoding: US-ASCII
62
68
  string: ''
63
69
  headers:
70
+ User-Agent:
71
+ - Swipely/Docker-API 1.5.4
64
72
  Content-Type:
65
73
  - text/plain
66
- User-Agent:
67
- - Swipely/Docker-API 1.3.1
68
74
  response:
69
75
  status:
70
76
  code: 200
71
77
  message: ''
72
78
  headers:
73
- Content-Type:
74
- - application/vnd.docker.raw-stream
79
+ !binary "Q29udGVudC1UeXBl":
80
+ - !binary |-
81
+ YXBwbGljYXRpb24vdm5kLmRvY2tlci5yYXctc3RyZWFt
75
82
  body:
76
- encoding: UTF-8
77
- string: |
78
- /
83
+ encoding: US-ASCII
84
+ string: ! '/
85
+
86
+ '
79
87
  http_version:
80
- recorded_at: Wed, 07 Aug 2013 16:51:14 GMT
81
- recorded_with: VCR 2.4.0
88
+ recorded_at: Mon, 07 Oct 2013 00:47:21 GMT
89
+ recorded_with: VCR 2.6.0
@@ -2,110 +2,122 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://localhost:4243/v1.4/containers/create
5
+ uri: http://unix/v1.4/containers/create
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"Cmd":["rm","-rf","/root"],"Image":"base"}'
8
+ string: ! '{"Cmd":["rm","-rf","/root"],"Image":"base"}'
9
9
  headers:
10
- Content-Type:
11
- - text/plain
12
10
  User-Agent:
13
- - Swipely/Docker-API 1.3.1
11
+ - Swipely/Docker-API 1.5.4
12
+ Content-Type:
13
+ - application/json
14
14
  response:
15
15
  status:
16
16
  code: 201
17
17
  message: ''
18
18
  headers:
19
- Content-Type:
20
- - text/plain; charset=utf-8
21
- Content-Length:
22
- - '21'
23
- Date:
24
- - Wed, 07 Aug 2013 16:51:12 GMT
19
+ !binary "Q29udGVudC1UeXBl":
20
+ - !binary |-
21
+ YXBwbGljYXRpb24vanNvbg==
22
+ !binary "Q29udGVudC1MZW5ndGg=":
23
+ - !binary |-
24
+ NjU=
25
+ !binary "RGF0ZQ==":
26
+ - !binary |-
27
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0NzoxMyBHTVQ=
25
28
  body:
26
- encoding: UTF-8
27
- string: '{"Id":"04f3e636c31d"}'
29
+ encoding: US-ASCII
30
+ string: ! '{"Id":"3aecf08d8d31","Warnings":["IPv4 forwarding is disabled."]}'
28
31
  http_version:
29
- recorded_at: Wed, 07 Aug 2013 16:51:12 GMT
32
+ recorded_at: Mon, 07 Oct 2013 00:47:13 GMT
30
33
  - request:
31
34
  method: post
32
- uri: http://localhost:4243/v1.4/containers/04f3e636c31d/start
35
+ uri: http://unix/v1.4/containers/3aecf08d8d31/start
33
36
  body:
34
- encoding: US-ASCII
35
- string: ''
37
+ encoding: UTF-8
38
+ string: ! '{}'
36
39
  headers:
37
- Content-Type:
38
- - text/plain
39
40
  User-Agent:
40
- - Swipely/Docker-API 1.3.1
41
+ - Swipely/Docker-API 1.5.4
42
+ Content-Type:
43
+ - application/json
41
44
  response:
42
45
  status:
43
46
  code: 204
44
47
  message: ''
45
48
  headers:
46
- Content-Type:
47
- - text/plain; charset=utf-8
48
- Content-Length:
49
- - '0'
50
- Date:
51
- - Wed, 07 Aug 2013 16:51:12 GMT
49
+ !binary "Q29udGVudC1UeXBl":
50
+ - !binary |-
51
+ dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
52
+ !binary "Q29udGVudC1MZW5ndGg=":
53
+ - !binary |-
54
+ MA==
55
+ !binary "RGF0ZQ==":
56
+ - !binary |-
57
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0NzoxMyBHTVQ=
52
58
  body:
53
- encoding: UTF-8
59
+ encoding: US-ASCII
54
60
  string: ''
55
61
  http_version:
56
- recorded_at: Wed, 07 Aug 2013 16:51:12 GMT
62
+ recorded_at: Mon, 07 Oct 2013 00:47:13 GMT
57
63
  - request:
58
64
  method: post
59
- uri: http://localhost:4243/v1.4/containers/04f3e636c31d/wait
65
+ uri: http://unix/v1.4/containers/3aecf08d8d31/wait
60
66
  body:
61
67
  encoding: US-ASCII
62
68
  string: ''
63
69
  headers:
70
+ User-Agent:
71
+ - Swipely/Docker-API 1.5.4
64
72
  Content-Type:
65
73
  - text/plain
66
- User-Agent:
67
- - Swipely/Docker-API 1.3.1
68
74
  response:
69
75
  status:
70
76
  code: 200
71
77
  message: ''
72
78
  headers:
73
- Content-Type:
74
- - application/json
75
- Content-Length:
76
- - '16'
77
- Date:
78
- - Wed, 07 Aug 2013 16:51:12 GMT
79
+ !binary "Q29udGVudC1UeXBl":
80
+ - !binary |-
81
+ YXBwbGljYXRpb24vanNvbg==
82
+ !binary "Q29udGVudC1MZW5ndGg=":
83
+ - !binary |-
84
+ MTY=
85
+ !binary "RGF0ZQ==":
86
+ - !binary |-
87
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0NzoxMyBHTVQ=
79
88
  body:
80
- encoding: UTF-8
81
- string: '{"StatusCode":0}'
89
+ encoding: US-ASCII
90
+ string: ! '{"StatusCode":0}'
82
91
  http_version:
83
- recorded_at: Wed, 07 Aug 2013 16:51:12 GMT
92
+ recorded_at: Mon, 07 Oct 2013 00:47:13 GMT
84
93
  - request:
85
94
  method: get
86
- uri: http://localhost:4243/v1.4/containers/04f3e636c31d/changes
95
+ uri: http://unix/v1.4/containers/3aecf08d8d31/changes
87
96
  body:
88
97
  encoding: US-ASCII
89
98
  string: ''
90
99
  headers:
100
+ User-Agent:
101
+ - Swipely/Docker-API 1.5.4
91
102
  Content-Type:
92
103
  - text/plain
93
- User-Agent:
94
- - Swipely/Docker-API 1.3.1
95
104
  response:
96
105
  status:
97
106
  code: 200
98
107
  message: ''
99
108
  headers:
100
- Content-Type:
101
- - application/json
102
- Content-Length:
103
- - '27'
104
- Date:
105
- - Wed, 07 Aug 2013 16:51:12 GMT
109
+ !binary "Q29udGVudC1UeXBl":
110
+ - !binary |-
111
+ YXBwbGljYXRpb24vanNvbg==
112
+ !binary "Q29udGVudC1MZW5ndGg=":
113
+ - !binary |-
114
+ ODI=
115
+ !binary "RGF0ZQ==":
116
+ - !binary |-
117
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0NzoxMyBHTVQ=
106
118
  body:
107
- encoding: UTF-8
108
- string: '[{"Path":"/root","Kind":2}]'
119
+ encoding: US-ASCII
120
+ string: ! '[{"Path":"/root","Kind":2},{"Path":"/dev","Kind":0},{"Path":"/dev/kmsg","Kind":1}]'
109
121
  http_version:
110
- recorded_at: Wed, 07 Aug 2013 16:51:12 GMT
111
- recorded_with: VCR 2.4.0
122
+ recorded_at: Mon, 07 Oct 2013 00:47:13 GMT
123
+ recorded_with: VCR 2.6.0
@@ -2,83 +2,92 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://localhost:4243/v1.4/containers/create
5
+ uri: http://unix/v1.4/containers/create
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"Cmd":["true"],"Image":"base"}'
8
+ string: ! '{"Cmd":["true"],"Image":"base"}'
9
9
  headers:
10
- Content-Type:
11
- - text/plain
12
10
  User-Agent:
13
- - Swipely/Docker-API 1.3.1
11
+ - Swipely/Docker-API 1.5.4
12
+ Content-Type:
13
+ - application/json
14
14
  response:
15
15
  status:
16
16
  code: 201
17
17
  message: ''
18
18
  headers:
19
- Content-Type:
20
- - text/plain; charset=utf-8
21
- Content-Length:
22
- - '21'
23
- Date:
24
- - Wed, 07 Aug 2013 16:51:31 GMT
19
+ !binary "Q29udGVudC1UeXBl":
20
+ - !binary |-
21
+ YXBwbGljYXRpb24vanNvbg==
22
+ !binary "Q29udGVudC1MZW5ndGg=":
23
+ - !binary |-
24
+ NjU=
25
+ !binary "RGF0ZQ==":
26
+ - !binary |-
27
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo0MCBHTVQ=
25
28
  body:
26
- encoding: UTF-8
27
- string: '{"Id":"f46aa3aea35f"}'
29
+ encoding: US-ASCII
30
+ string: ! '{"Id":"b22a5da9949c","Warnings":["IPv4 forwarding is disabled."]}'
28
31
  http_version:
29
- recorded_at: Wed, 07 Aug 2013 16:51:31 GMT
32
+ recorded_at: Mon, 07 Oct 2013 00:47:40 GMT
30
33
  - request:
31
34
  method: post
32
- uri: http://localhost:4243/v1.4/containers/f46aa3aea35f/start
35
+ uri: http://unix/v1.4/containers/b22a5da9949c/start
33
36
  body:
34
- encoding: US-ASCII
35
- string: ''
37
+ encoding: UTF-8
38
+ string: ! '{}'
36
39
  headers:
37
- Content-Type:
38
- - text/plain
39
40
  User-Agent:
40
- - Swipely/Docker-API 1.3.1
41
+ - Swipely/Docker-API 1.5.4
42
+ Content-Type:
43
+ - application/json
41
44
  response:
42
45
  status:
43
46
  code: 204
44
47
  message: ''
45
48
  headers:
46
- Content-Type:
47
- - text/plain; charset=utf-8
48
- Content-Length:
49
- - '0'
50
- Date:
51
- - Wed, 07 Aug 2013 16:51:31 GMT
49
+ !binary "Q29udGVudC1UeXBl":
50
+ - !binary |-
51
+ dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
52
+ !binary "Q29udGVudC1MZW5ndGg=":
53
+ - !binary |-
54
+ MA==
55
+ !binary "RGF0ZQ==":
56
+ - !binary |-
57
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo0MCBHTVQ=
52
58
  body:
53
- encoding: UTF-8
59
+ encoding: US-ASCII
54
60
  string: ''
55
61
  http_version:
56
- recorded_at: Wed, 07 Aug 2013 16:51:31 GMT
62
+ recorded_at: Mon, 07 Oct 2013 00:47:40 GMT
57
63
  - request:
58
64
  method: post
59
- uri: http://localhost:4243/v1.4/commit?container=f46aa3ae
65
+ uri: http://unix/v1.4/commit?container=b22a5da9
60
66
  body:
61
67
  encoding: US-ASCII
62
68
  string: ''
63
69
  headers:
70
+ User-Agent:
71
+ - Swipely/Docker-API 1.5.4
64
72
  Content-Type:
65
73
  - text/plain
66
- User-Agent:
67
- - Swipely/Docker-API 1.3.1
68
74
  response:
69
75
  status:
70
76
  code: 201
71
77
  message: ''
72
78
  headers:
73
- Content-Type:
74
- - text/plain; charset=utf-8
75
- Content-Length:
76
- - '21'
77
- Date:
78
- - Wed, 07 Aug 2013 16:51:31 GMT
79
+ !binary "Q29udGVudC1UeXBl":
80
+ - !binary |-
81
+ YXBwbGljYXRpb24vanNvbg==
82
+ !binary "Q29udGVudC1MZW5ndGg=":
83
+ - !binary |-
84
+ MjE=
85
+ !binary "RGF0ZQ==":
86
+ - !binary |-
87
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo0MCBHTVQ=
79
88
  body:
80
- encoding: UTF-8
81
- string: '{"Id":"c8fab65ab6d9"}'
89
+ encoding: US-ASCII
90
+ string: ! '{"Id":"6218f82de6de"}'
82
91
  http_version:
83
- recorded_at: Wed, 07 Aug 2013 16:51:31 GMT
84
- recorded_with: VCR 2.4.0
92
+ recorded_at: Mon, 07 Oct 2013 00:47:40 GMT
93
+ recorded_with: VCR 2.6.0
@@ -2,13 +2,13 @@
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
10
  User-Agent:
11
- - Swipely/Docker-API 1.5.0
11
+ - Swipely/Docker-API 1.5.4
12
12
  Content-Type:
13
13
  - text/plain
14
14
  response:
@@ -16,29 +16,32 @@ http_interactions:
16
16
  code: 200
17
17
  message: ''
18
18
  headers:
19
- Content-Type:
20
- - application/json
21
- Date:
22
- - Thu, 29 Aug 2013 21:12:49 GMT
23
- Transfer-Encoding:
24
- - chunked
19
+ !binary "Q29udGVudC1UeXBl":
20
+ - !binary |-
21
+ YXBwbGljYXRpb24vanNvbg==
22
+ !binary "RGF0ZQ==":
23
+ - !binary |-
24
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0NzoxMyBHTVQ=
25
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
26
+ - !binary |-
27
+ Y2h1bmtlZA==
25
28
  body:
26
- encoding: UTF-8
27
- string: '{"status":"Pulling repository base"}{"status":"Pulling","progress":"image
29
+ encoding: US-ASCII
30
+ string: ! '{"status":"Pulling repository base"}{"status":"Pulling","progress":"image
28
31
  (ubuntu-quantl) from base","id":"b750fe79269d"}{"status":"Pulling","progress":"image
29
32
  (ubuntu-quantl) from base, endpoint: https://cdn-registry-1.docker.io/v1/","id":"b750fe79269d"}{"status":"Pulling","progress":"dependend
30
33
  layers","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"27cf78414709"}{"status":"Download","progress":"complete","id":"b750fe79269d"}'
31
34
  http_version:
32
- recorded_at: Thu, 29 Aug 2013 21:12:52 GMT
35
+ recorded_at: Mon, 07 Oct 2013 00:47:15 GMT
33
36
  - request:
34
37
  method: post
35
- uri: http://localhost:4243/v1.4/containers/create
38
+ uri: http://unix/v1.4/containers/create
36
39
  body:
37
40
  encoding: UTF-8
38
- string: '{"Image":"base","Cmd":["ls"]}'
41
+ string: ! '{"Image":"base","Cmd":["ls"]}'
39
42
  headers:
40
43
  User-Agent:
41
- - Swipely/Docker-API 1.5.0
44
+ - Swipely/Docker-API 1.5.4
42
45
  Content-Type:
43
46
  - application/json
44
47
  response:
@@ -46,26 +49,29 @@ http_interactions:
46
49
  code: 201
47
50
  message: ''
48
51
  headers:
49
- Content-Type:
50
- - text/plain; charset=utf-8
51
- Content-Length:
52
- - '21'
53
- Date:
54
- - Thu, 29 Aug 2013 21:12:51 GMT
52
+ !binary "Q29udGVudC1UeXBl":
53
+ - !binary |-
54
+ YXBwbGljYXRpb24vanNvbg==
55
+ !binary "Q29udGVudC1MZW5ndGg=":
56
+ - !binary |-
57
+ NjU=
58
+ !binary "RGF0ZQ==":
59
+ - !binary |-
60
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0NzoxNSBHTVQ=
55
61
  body:
56
- encoding: UTF-8
57
- string: '{"Id":"79e5b20fa15c"}'
62
+ encoding: US-ASCII
63
+ string: ! '{"Id":"0b545bc9f0f0","Warnings":["IPv4 forwarding is disabled."]}'
58
64
  http_version:
59
- recorded_at: Thu, 29 Aug 2013 21:12:52 GMT
65
+ recorded_at: Mon, 07 Oct 2013 00:47:15 GMT
60
66
  - request:
61
67
  method: post
62
- uri: http://localhost:4243/v1.4/containers/79e5b20fa15c/start
68
+ uri: http://unix/v1.4/containers/0b545bc9f0f0/start
63
69
  body:
64
70
  encoding: UTF-8
65
- string: '{}'
71
+ string: ! '{}'
66
72
  headers:
67
73
  User-Agent:
68
- - Swipely/Docker-API 1.5.0
74
+ - Swipely/Docker-API 1.5.4
69
75
  Content-Type:
70
76
  - application/json
71
77
  response:
@@ -73,26 +79,29 @@ http_interactions:
73
79
  code: 204
74
80
  message: ''
75
81
  headers:
76
- Content-Type:
77
- - text/plain; charset=utf-8
78
- Content-Length:
79
- - '0'
80
- Date:
81
- - Thu, 29 Aug 2013 21:12:51 GMT
82
+ !binary "Q29udGVudC1UeXBl":
83
+ - !binary |-
84
+ dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
85
+ !binary "Q29udGVudC1MZW5ndGg=":
86
+ - !binary |-
87
+ MA==
88
+ !binary "RGF0ZQ==":
89
+ - !binary |-
90
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0NzoxNSBHTVQ=
82
91
  body:
83
- encoding: UTF-8
92
+ encoding: US-ASCII
84
93
  string: ''
85
94
  http_version:
86
- recorded_at: Thu, 29 Aug 2013 21:12:52 GMT
95
+ recorded_at: Mon, 07 Oct 2013 00:47:15 GMT
87
96
  - request:
88
97
  method: post
89
- uri: http://localhost:4243/v1.4/containers/79e5b20fa15c/copy
98
+ uri: http://unix/v1.4/containers/0b545bc9f0f0/copy
90
99
  body:
91
100
  encoding: UTF-8
92
- string: '{"Resource":"/lol/not/a/real/file"}'
101
+ string: ! '{"Resource":"/lol/not/a/real/file"}'
93
102
  headers:
94
103
  User-Agent:
95
- - Swipely/Docker-API 1.5.0
104
+ - Swipely/Docker-API 1.5.4
96
105
  Content-Type:
97
106
  - application/json
98
107
  response:
@@ -100,16 +109,21 @@ http_interactions:
100
109
  code: 500
101
110
  message: ''
102
111
  headers:
103
- Content-Type:
104
- - text/plain; charset=utf-8
105
- Content-Length:
106
- - '151'
107
- Date:
108
- - Thu, 29 Aug 2013 21:12:51 GMT
112
+ !binary "Q29udGVudC1UeXBl":
113
+ - !binary |-
114
+ dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
115
+ !binary "Q29udGVudC1MZW5ndGg=":
116
+ - !binary |-
117
+ MTUx
118
+ !binary "RGF0ZQ==":
119
+ - !binary |-
120
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0NzoxNSBHTVQ=
109
121
  body:
110
- encoding: UTF-8
111
- string: |
112
- stat /var/lib/docker/containers/79e5b20fa15ccb0e746665f6f12a87e8dbea736311d04c1230a5ae6368716be0/rootfs/lol/not/a/real/file: no such file or directory
122
+ encoding: US-ASCII
123
+ string: ! 'stat /var/lib/docker/containers/0b545bc9f0f0f207207b62f7f19ea1c3e3d93993aefa38e14c66f06ce5559279/rootfs/lol/not/a/real/file:
124
+ no such file or directory
125
+
126
+ '
113
127
  http_version:
114
- recorded_at: Thu, 29 Aug 2013 21:12:52 GMT
115
- recorded_with: VCR 2.5.0
128
+ recorded_at: Mon, 07 Oct 2013 00:47:15 GMT
129
+ recorded_with: VCR 2.6.0