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,29 +2,32 @@
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: '{"Hostname":"","User":"","Memory":0,"MemorySwap":0,"AttachStdin":false,"AttachStdout":false,"AttachStderr":false,"PortSpecs":null,"Tty":false,"OpenStdin":false,"StdinOnce":false,"Env":null,"Cmd":["date"],"Dns":null,"Image":"base","Volumes":{},"VolumesFrom":""}'
8
+ string: ! '{"Hostname":"","User":"","Memory":0,"MemorySwap":0,"AttachStdin":false,"AttachStdout":false,"AttachStderr":false,"PortSpecs":null,"Tty":false,"OpenStdin":false,"StdinOnce":false,"Env":null,"Cmd":["date"],"Dns":null,"Image":"base","Volumes":{},"VolumesFrom":""}'
9
9
  headers:
10
- Content-Type:
11
- - text/plain
12
10
  User-Agent:
13
- - Swipely/Docker-API 1.4.0
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
- - Thu, 08 Aug 2013 14:47:05 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":"3e4587069eb0"}'
29
+ encoding: US-ASCII
30
+ string: ! '{"Id":"8f9ec1ca0aba","Warnings":["IPv4 forwarding is disabled."]}'
28
31
  http_version:
29
- recorded_at: Thu, 08 Aug 2013 14:47:05 GMT
30
- recorded_with: VCR 2.4.0
32
+ recorded_at: Mon, 07 Oct 2013 00:47:40 GMT
33
+ recorded_with: VCR 2.6.0
@@ -2,186 +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":["ls"],"Image":"base"}'
8
+ string: ! '{"Cmd":["ls"],"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
+ MjE=
25
+ !binary "RGF0ZQ==":
26
+ - !binary |-
27
+ TW9uLCAwNyBPY3QgMjAxMyAxNDoxMjowNSBHTVQ=
25
28
  body:
26
- encoding: UTF-8
27
- string: '{"Id":"537bb9f5d9eb"}'
29
+ encoding: US-ASCII
30
+ string: ! '{"Id":"4efb5152acc7"}'
28
31
  http_version:
29
- recorded_at: Wed, 07 Aug 2013 16:51:14 GMT
32
+ recorded_at: Mon, 07 Oct 2013 14:12:05 GMT
30
33
  - request:
31
34
  method: delete
32
- uri: http://localhost:4243/v1.4/containers/537bb9f5d9eb
35
+ uri: http://unix/v1.4/containers/4efb5152acc7
33
36
  body:
34
37
  encoding: US-ASCII
35
38
  string: ''
36
39
  headers:
40
+ User-Agent:
41
+ - Swipely/Docker-API 1.5.4
37
42
  Content-Type:
38
43
  - text/plain
39
- User-Agent:
40
- - Swipely/Docker-API 1.3.1
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
+ TW9uLCAwNyBPY3QgMjAxMyAxNDoxMjowNSBHTVQ=
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 14:12:05 GMT
57
63
  - request:
58
64
  method: get
59
- uri: http://localhost:4243/v1.4/containers/json
65
+ uri: http://unix/v1.4/containers/json
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
- - '2'
77
- Date:
78
- - Wed, 07 Aug 2013 16:51:14 GMT
79
+ !binary "Q29udGVudC1UeXBl":
80
+ - !binary |-
81
+ YXBwbGljYXRpb24vanNvbg==
82
+ !binary "Q29udGVudC1MZW5ndGg=":
83
+ - !binary |-
84
+ Mg==
85
+ !binary "RGF0ZQ==":
86
+ - !binary |-
87
+ TW9uLCAwNyBPY3QgMjAxMyAxNDoxMjowNSBHTVQ=
79
88
  body:
80
- encoding: UTF-8
81
- string: '[]'
89
+ encoding: US-ASCII
90
+ string: ! '[]'
82
91
  http_version:
83
- recorded_at: Wed, 07 Aug 2013 16:51:14 GMT
92
+ recorded_at: Mon, 07 Oct 2013 14:12:05 GMT
84
93
  - request:
85
94
  method: get
86
- uri: http://localhost:4243/v1.4/containers/json?all=true
95
+ uri: http://unix/v1.4/containers/json?all=true
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
- Date:
103
- - Wed, 07 Aug 2013 16:51:14 GMT
104
- Transfer-Encoding:
105
- - chunked
109
+ !binary "Q29udGVudC1UeXBl":
110
+ - !binary |-
111
+ YXBwbGljYXRpb24vanNvbg==
112
+ !binary "Q29udGVudC1MZW5ndGg=":
113
+ - !binary |-
114
+ Mg==
115
+ !binary "RGF0ZQ==":
116
+ - !binary |-
117
+ TW9uLCAwNyBPY3QgMjAxMyAxNDoxMjowNSBHTVQ=
106
118
  body:
107
- encoding: UTF-8
108
- string: '[{"Id":"537bb9f5d9eb0ef4b5cb689f43b3c12f059ab124abe13eaaec09794633ea08e5","Image":"base2:latest","Command":"ls
109
- ","Created":1375894274,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"2c33f140d30e9f9993c180969f46a83e9dc24d3e29e4e39b930583bb5a6a9ea9","Image":"base2:latest","Command":"true
110
- ","Created":1375894274,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"006a81e3a9efb2d6b6b1bf7b25031f7c0ca972e731c4efeaaab30b75997d5804","Image":"base2:latest","Command":"true
111
- ","Created":1375894274,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"fe03763be9b4bd2b01495f0e6bf7a10eb26842a7b40a5022fd7412a1d9eb0566","Image":"base2:latest","Command":"pwd
112
- ","Created":1375894274,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"98607cce607e028051a81cf299a0d3f9b059ae83526e33990b7f2e455aeb079e","Image":"base2:latest","Command":"rm
113
- -rf / --no-preserve-root","Created":1375894272,"Status":"Exit 1","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"04f3e636c31dce687eab604eaa686dca8aec5d1a2962e564c2dfd286ba80fbf3","Image":"base2:latest","Command":"rm
114
- -rf /root","Created":1375894272,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"ed9fe2fe70fa397e2106bb33d90f07b8a8ea3adadf4fd63ff54152b655a63e88","Image":"base2:latest","Command":"true
115
- ","Created":1375894272,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"06afcc6410930daf822789196f347c84259b571c318828ca1483ecec8fb02f01","Image":"base2:latest","Command":"which
116
- pwd","Created":1375894181,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"77bbd7097c1c05be2049dddda4017b77301777647aa6255ecb69de9e714c5ed2","Image":"base2:latest","Command":"ls
117
- /lib64/","Created":1375894178,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"2c11ad17d509bab7652e178612c476907d5623445bbf3f5d59e994e5986ca279","Image":"411834e14abb","Command":"ls
118
- /","Created":1375894165,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"3a21d210b2f3cc3aba925005eb176709cda0e5ca021a6ba47a1e1a2c2443bf03","Image":"base2:latest","Command":"echo
119
- insert http://stallman.org /stallman","Created":1375894164,"Status":"Exit
120
- 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"12912e1d0631e90c3c6693c820fe8a29e41c4c74ec949d12e17e4909c26ee0ba","Image":"base2:latest","Command":"ls
121
- ","Created":1375894158,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"3444bbae3b7d32a7cf60ea00a2af0093d04decab7a19e39f90a786d3e125ef27","Image":"base2:latest","Command":"date
122
- ","Created":1375894158,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"68f2e43ee3912be5612bd2e290cd56aa936608abcc741944c9b17ef5c00608f9","Image":"base2:latest","Command":"true
123
- ","Created":1375894158,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"57f6f441aa02055a5128c1d1aff5475ce7b518e660abdad8af912d52631623b6","Image":"8e9fb6b2aa34","Command":"ls
124
- ","Created":1375894158,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"be8918b0aafcb0d227998149ab3687db6fed928927c6fa0b7fcefc132a152a7f","Image":"base2:latest","Command":"pwd
125
- ","Created":1375894157,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"d5206a051f9cdc4c52f56ff3147f747efbbdc47467eb968c2c40447096d0bacc","Image":"base2:latest","Command":"lol
126
- not a real command","Created":1375894157,"Status":"Exit 127","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"c8a4cf0f4b2ddc90ff2e49f3fb38eeb400297d417e74fbe97138a550938e6bdd","Image":"base2:latest","Command":"sleep
127
- 5","Created":1375894157,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"5cb82c1d32a021aedfe13845b40073094059c9af8b39fb3a334122d25d6bcd5f","Image":"base2:latest","Command":"sleep
128
- 5","Created":1375894151,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"0da1c4d80aa9498c498cc0c63281f458540b85b3b552a3091630a36104da7fae","Image":"base2:latest","Command":"tar
129
- nonsense","Created":1375894151,"Status":"Exit 64","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"014c3c1928e3b323ed0c7831a7c0823bd4bed04849b5b457983dacc459ff1867","Image":"base2:latest","Command":"sleep
130
- 50","Created":1375894141,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"b3a9b7acf0b5fbf2bfee311e7dd63541122a8f32a3fbe1b6fd58e8f4614d3dbc","Image":"base2:latest","Command":"ls
131
- ","Created":1375894141,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"317bb1ad354fe6fc3b654ae7d0a468284048a471dd22227da5cf8d3722d4e4c1","Image":"base2:latest","Command":"true
132
- ","Created":1375894140,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"6abab24b6893eed8da2f3737ab2b1372a8690b85359c22e77fa01a37d20422e7","Image":"base2:latest","Command":"true
133
- ","Created":1375894140,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"5b691c209673397731b198030f6ad177643cf73103e1ff91ff6ecba0570937ae","Image":"base2:latest","Command":"pwd
134
- ","Created":1375894140,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"302c743e53e711c497c22d63d84730f9f4c9cfa09f4c453f6de15a603a87e2fa","Image":"base2:latest","Command":"rm
135
- -rf / --no-preserve-root","Created":1375894139,"Status":"Exit 1","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"eb68e13fb678b59cc38c2bd5790b18ef6bf6ce78c0e41e27f215fe260cbaf38d","Image":"base2:latest","Command":"rm
136
- -rf /root","Created":1375894139,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"4df1d1b90929f2f8cc37889afeb526a0d7d8e7ca74a599d2cd61fce19d8af6d8","Image":"base2:latest","Command":"true
137
- ","Created":1375894139,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"3a3d259236331666e5713a3142a2827aeb03fea7c6cd9d675b216a75a6bb0dd1","Image":"base2:latest","Command":"rm
138
- -rf /root","Created":1375891315,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"4767d6043328ad1b0e6f2a0ceb63c5bd78003a1ac9912fbf8ef976bd5dce6000","Image":"base2:latest","Command":"/bin/sh
139
- -c rm -rf /root","Created":1375891241,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"e6733b0b48f8b9f5e2706bbafe56736fdf8d66c1f1946489c35a08a35d6e53f6","Image":"base2:latest","Command":"pwd
140
- ","Created":1375890792,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"7df85ea5aa2995b3f92eb93768461cc10bbbd8f6ed34a4b3d517637ef2679485","Image":"base2:latest","Command":"which
141
- pwd","Created":1375890059,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"d78de7d782e78be897fa99458fd00dc9ea473109fcd24a0693f9093735e7b41c","Image":"base2:latest","Command":"ls
142
- /lib64/","Created":1375890057,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"79d4ae84d84a4d05eb74e40704f0a410ccd7c4ca854c659112af985f6604aec1","Image":"ea96e006d00c","Command":"ls
143
- /","Created":1375890051,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"9828255e8e92561b85124acdc41a098b89af57b8c4d12eaf1b22c611c30eb9ed","Image":"base2:latest","Command":"echo
144
- insert http://stallman.org /stallman","Created":1375890050,"Status":"Exit
145
- 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"237478db500f2e2821ec2987160bce59b5d5eca4e0efe5cf4dcc6666bff7787f","Image":"base2:latest","Command":"ls
146
- ","Created":1375890046,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"9613b519c6487f3d2775caa4a44d63388222bcdebdea26e027f9cb3262d302db","Image":"base2:latest","Command":"date
147
- ","Created":1375890046,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"963140b97bb571bff5b64748af1ea3450e2440a36e11cb0b35a5071685a54e05","Image":"base2:latest","Command":"true
148
- ","Created":1375890046,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"923fcaa31245e030d41a348d870342a152905f0b78547ddbe7a966fcfbfafe4a","Image":"3fdce89c662f","Command":"ls
149
- ","Created":1375890046,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"6aa794eb15a6545a328e1d790124d91d26dc25ece6abd37c7cf3098544df2d55","Image":"base2:latest","Command":"pwd
150
- ","Created":1375890045,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"4a2b95ad1d8f7e156deec8cbd19a3eee58d96fd9b2837e35b21c408edee07248","Image":"base2:latest","Command":"lol
151
- not a real command","Created":1375890045,"Status":"Exit 127","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"151697f98ee848c55ef96173a27b3aafe337d09c6657b5fbb9bfaa03d48af15c","Image":"base2:latest","Command":"sleep
152
- 5","Created":1375890045,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"0ce91d722a264f25a18c3c340092d9f5db305d9fefe37c597104572100e34cde","Image":"base2:latest","Command":"sleep
153
- 5","Created":1375890040,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"88675033704ce895377364f7853afd2ee5956e44c295ef014b665f1b1e8c2814","Image":"base2:latest","Command":"tar
154
- nonsense","Created":1375890039,"Status":"Exit 64","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"990e511b3a02b07b5dd6dd911fa411896d9e3ed924ade94706f2c938ff82ea39","Image":"base2:latest","Command":"sleep
155
- 50","Created":1375890029,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"4706f87c9f4f51bfbf455e21016a810a642fb695188411da9359ada779baee0c","Image":"base2:latest","Command":"ls
156
- ","Created":1375890029,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"7e5674e2054db019ec8755e742d4d2a7a38c3a6f4f3914dcc31784c6df902e85","Image":"base2:latest","Command":"true
157
- ","Created":1375890029,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"9c8c25bd6011a1edb9c19b0e0f21ea9c851b0750f34e474f4d7a12903231b2f0","Image":"base2:latest","Command":"true
158
- ","Created":1375890029,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"480e6d7a543e91f31c43e34031bef39c48762f7f6243463688fe2e47b5e45a88","Image":"base2:latest","Command":"uname
159
- -r","Created":1375890029,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"7f7e82d95bb4ec3ae4e3de3fc6ab2c55252f044baf3c3cd549be49e419a05ca5","Image":"base2:latest","Command":"rm
160
- -rf / --no-preserve-root","Created":1375890027,"Status":"Exit 1","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"91928a69831d95021b2eb49f63003597771a18aebb82046ef0524e2669a9328e","Image":"base2:latest","Command":"true
161
- ","Created":1375890027,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"6043a6dbce22ce06004a941a1dc9a1252dee6f35497bd0619f67f3230642b9ca","Image":"base2:latest","Command":"true
162
- ","Created":1375890027,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"90201367dfc862df2cc20781ee6695a0c41780d72f93eb6d660ebc85c7e418eb","Image":"base2:latest","Command":"which
163
- pwd","Created":1374855178,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"8f5a777b3d941ff04685a05a8742d8114248997cae6851b41c2d6ea583e07585","Image":"base2:latest","Command":"ls
164
- /lib64/","Created":1374855177,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"e7aa11468936aa5c69cb075522490d6303a6bb902d495d7443a1448ea553346b","Image":"31cc782331e9","Command":"ls
165
- /","Created":1374855171,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"1418f2e8b032b4c1565ecb071aafbb8f219e3ec852c3d1c9a7ca3961809716d5","Image":"base2:latest","Command":"echo
166
- insert http://stallman.org /stallman","Created":1374855170,"Status":"Exit
167
- 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"d5d71ea48805b02c3eae5e3c507ea7b478c668e2f2f33213f0e0d238d98ee330","Image":"base2:latest","Command":"ls
168
- ","Created":1374855082,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"c1ad9ade3ee2e3945f3623341b1e1b4197d4ab7b1f1e6deb4a7be1ae67cb93e5","Image":"base2:latest","Command":"date
169
- ","Created":1374855082,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"8365aaf7629a9d51fc831fe5ec9c04aeef0012411ae4653f3dc1be48edbb0725","Image":"base2:latest","Command":"true
170
- ","Created":1374855082,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"3663ad5661d91fae12b67219de41fd8d9b607c75588568a93b3fd66434314a23","Image":"a7e4813cedd1","Command":"ls
171
- ","Created":1374855082,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"f9679f5588f084b1df199573979fdf1bc03d1f14a0f225773b1a6e87f18136f8","Image":"base2:latest","Command":"pwd
172
- ","Created":1374855082,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"c854d4cd92ca4db695209cc7015c84a609ef14429f2188ea9b5e3237d3c3a136","Image":"base2:latest","Command":"lol
173
- not a real command","Created":1374855081,"Status":"Exit 127","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"2acbe41c2c3c9632a606427aa907e24af4b7ba15a3e50b9cf34ea28e1797458b","Image":"base2:latest","Command":"sleep
174
- 5","Created":1374855081,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"8f951f4e643899fb9ef75376961bffaea4bdffe7277bec99d4c08184790af264","Image":"base2:latest","Command":"sleep
175
- 5","Created":1374855076,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"ccc138464e03af407af017027a11697f4f3e55370d53d27062d530e39b85d5cb","Image":"base2:latest","Command":"tar
176
- nonsense","Created":1374855075,"Status":"Exit 64","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"5086540c2501795c0b7cdb7b7bbacdeadd65b3f32df7a030a835c6e28bd329ff","Image":"base2:latest","Command":"sleep
177
- 50","Created":1374855065,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"348121471d9c3fbbb7f95a41d58184e8cfe316160544d8e9fd2cc54c09199c96","Image":"base2:latest","Command":"ls
178
- ","Created":1374855065,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"bcd6004f227795922b875619bbbc0db53490ee3dac0487bc3d68fb3abb0a4943","Image":"base2:latest","Command":"true
179
- ","Created":1374855065,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"9fd9abedfc616a79e590a93629167d7350aff8df06b6d0f88ccaf75da6dd482a","Image":"base2:latest","Command":"true
180
- ","Created":1374855065,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"6cd83a35b3931071d198ef4c9f4c8a2db710a5143d847c562191904922855dcd","Image":"base2:latest","Command":"uname
181
- -r","Created":1374855065,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"3b11b31217836ccf55b9df7ac666f5bf6cae2ba6a24116c9b7230fb69e45dbbf","Image":"base2:latest","Command":"rm
182
- -rf / --no-preserve-root","Created":1374855062,"Status":"Exit 1","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"82879e0a9b1e718a0bb8b6bbad3574f01c0fa6c55e12f795a1dbcba812851b2c","Image":"base2:latest","Command":"true
183
- ","Created":1374855061,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0},{"Id":"714ae4978ddf85b1795471163e9d6595c098cc42417b6bcb34c190e5c5d268df","Image":"base2:latest","Command":"true
184
- ","Created":1374855061,"Status":"Exit 0","Ports":"","SizeRw":0,"SizeRootFs":0}]'
119
+ encoding: US-ASCII
120
+ string: ! '[]'
185
121
  http_version:
186
- recorded_at: Wed, 07 Aug 2013 16:51:14 GMT
187
- recorded_with: VCR 2.4.0
122
+ recorded_at: Mon, 07 Oct 2013 14:12:05 GMT
123
+ recorded_with: VCR 2.6.0
@@ -2,115 +2,98 @@
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","/","--no-preserve-root"],"Image":"base"}'
8
+ string: ! '{"Cmd":["rm","-rf","/","--no-preserve-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
+ MjE=
25
+ !binary "RGF0ZQ==":
26
+ - !binary |-
27
+ VHVlLCAwOCBPY3QgMjAxMyAxNDoxMTozNiBHTVQ=
25
28
  body:
26
- encoding: UTF-8
27
- string: '{"Id":"98607cce607e"}'
29
+ encoding: US-ASCII
30
+ string: ! '{"Id":"f96716ac239d"}'
28
31
  http_version:
29
- recorded_at: Wed, 07 Aug 2013 16:51:12 GMT
32
+ recorded_at: Tue, 08 Oct 2013 14:11:36 GMT
30
33
  - request:
31
34
  method: post
32
- uri: http://localhost:4243/v1.4/containers/98607cce607e/start
35
+ uri: http://unix/v1.4/containers/f96716ac239d/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
+ VHVlLCAwOCBPY3QgMjAxMyAxNDoxMTozNiBHTVQ=
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: Tue, 08 Oct 2013 14:11:36 GMT
57
63
  - request:
58
64
  method: get
59
- uri: http://localhost:4243/v1.4/containers/98607cce607e/export
65
+ uri: http://unix/v1.4/containers/f96716ac239d/export
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/octet-stream
75
- Date:
76
- - Wed, 07 Aug 2013 16:51:12 GMT
77
- Transfer-Encoding:
78
- - chunked
79
+ !binary "Q29udGVudC1UeXBl":
80
+ - !binary |-
81
+ YXBwbGljYXRpb24vb2N0ZXQtc3RyZWFt
82
+ !binary "RGF0ZQ==":
83
+ - !binary |-
84
+ VHVlLCAwOCBPY3QgMjAxMyAxNDoxMTozNiBHTVQ=
85
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
86
+ - !binary |-
87
+ Y2h1bmtlZA==
79
88
  body:
80
89
  encoding: ASCII-8BIT
81
90
  string: !binary |-
82
91
  Li8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
83
92
  AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
84
93
  AAAAAAAAAAAAADAwMDA3NTUAMDAwMDAwMAAwMDAwMDAwADAwMDAwMDAwMDAw
85
- ADEyMjAwNDc1NDAwADAwNjA3MwAgNQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
94
+ ADEyMjI1MDExMjMwADAwNjA2NQAgNQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
86
95
  AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
87
96
  AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB1c3RhciAgAAAAAAAA
88
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
89
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
90
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
91
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
92
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
93
- AAAAAAAAAAAAAAAAAAAAAAAuL2Rldi8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA
94
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
95
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMDAwMDc1NQAwMDAwMDAwADAw
96
- MDAwMDAAMDAwMDAwMDAwMDAAMTIxNzQ1MTc2NTYAMDA2Njc1ACA1AAAAAAAA
97
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
98
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
99
- AAAAAHVzdGFyICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
100
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
101
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
102
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
103
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
104
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC4vZGV2L2ttc2cA
105
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
106
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAw
107
- MDAwNzc3ADAwMDAwMDAAMDAwMDAwMAAwMDAwMDAwMDAwMAAxMjEyMzUwNjcz
108
- MgAwMTExMjYAIDJjb25zb2xlAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
109
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
110
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAdXN0YXIgIAAAAAAAAAAAAAAAAAAAAAAA
111
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
112
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
113
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
114
97
  http_version:
115
- recorded_at: Wed, 07 Aug 2013 16:51:14 GMT
116
- recorded_with: VCR 2.4.0
98
+ recorded_at: Tue, 08 Oct 2013 14:11:37 GMT
99
+ recorded_with: VCR 2.6.0