docker-api 1.7.6 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +7 -0
  2. data/lib/docker.rb +9 -9
  3. data/lib/docker/connection.rb +1 -1
  4. data/lib/docker/container.rb +1 -2
  5. data/lib/docker/image.rb +7 -6
  6. data/lib/docker/version.rb +2 -2
  7. data/spec/docker/connection_spec.rb +2 -2
  8. data/spec/docker/container_spec.rb +12 -10
  9. data/spec/docker/image_spec.rb +13 -13
  10. data/spec/docker_spec.rb +5 -4
  11. data/spec/vcr/Docker/_authenticate_/with_valid_credentials/logs_in_and_sets_the_creds.yml +1 -1
  12. data/spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml +17 -15
  13. data/spec/vcr/Docker/_validate_version/when_nothing_is_raised/validate_version_/.yml +17 -15
  14. data/spec/vcr/Docker/_version/returns_the_version_as_a_Hash.yml +17 -15
  15. data/spec/vcr/Docker_Container/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml +96 -46
  16. data/spec/vcr/Docker_Container/_attach/with_normal_sized_chunks/yields_each_chunk.yml +35 -37
  17. data/spec/vcr/Docker_Container/_attach/with_very_small_chunks/yields_each_chunk.yml +35 -37
  18. data/spec/vcr/Docker_Container/_changes/returns_the_changes_as_an_array.yml +60 -58
  19. data/spec/vcr/Docker_Container/_commit/creates_a_new_Image_from_the_Container_s_changes.yml +46 -47
  20. data/spec/vcr/Docker_Container/_commit/if_run_is_passed_it_saves_the_command_in_the_image/saves_the_command.yml +78 -81
  21. data/spec/vcr/Docker_Container/_copy/when_the_file_does_not_exist/raises_an_error.yml +77 -80
  22. data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_directory/yields_each_chunk_of_the_tarred_directory.yml +91 -182
  23. data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_file/yields_each_chunk_of_the_tarred_file.yml +80 -273
  24. data/spec/vcr/Docker_Container/_create/when_creating_a_container_named_bob/should_have_name_set_to_bob.yml +20 -15
  25. data/spec/vcr/Docker_Container/_create/when_the_Container_does_not_yet_exist/when_the_HTTP_request_returns_a_200/sets_the_id.yml +16 -16
  26. data/spec/vcr/Docker_Container/_delete/deletes_the_container.yml +41 -43
  27. data/spec/vcr/Docker_Container/_export/yields_each_chunk.yml +82759 -46
  28. data/spec/vcr/Docker_Container/_get/when_the_HTTP_response_is_a_200/materializes_the_Container_into_a_Docker_Container.yml +29 -30
  29. data/spec/vcr/Docker_Container/_json/returns_the_description_as_a_Hash.yml +29 -30
  30. data/spec/vcr/Docker_Container/_kill/kills_the_container.yml +69 -71
  31. data/spec/vcr/Docker_Container/_restart/restarts_the_container.yml +98 -102
  32. data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_does_not_return_status_code_of_0/raises_an_error.yml +43 -44
  33. 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 +117 -122
  34. data/spec/vcr/Docker_Container/_start/starts_the_container.yml +58 -59
  35. data/spec/vcr/Docker_Container/_stop/stops_the_container.yml +81 -84
  36. data/spec/vcr/Docker_Container/_top/returns_the_top_commands_as_an_Array.yml +116 -87
  37. data/spec/vcr/Docker_Container/_wait/waits_for_the_command_to_finish.yml +43 -44
  38. data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/and_a_command_runs_for_too_long/raises_a_ServerError.yml +29 -30
  39. data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/sets_the_read_timeout_to_that_amount_of_time.yml +43 -44
  40. data/spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml +46 -32
  41. data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/with_a_block_capturing_build_output/calls_the_block_and_passes_build_output.yml +10 -9
  42. 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 +42 -31
  43. data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/without_query_parameters/builds_an_image.yml +16 -16
  44. data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml +17 -19
  45. data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_a_block_capturing_build_output/calls_the_block_and_passes_build_output.yml +9 -8
  46. data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_no_query_parameters/builds_the_image.yml +50 -52
  47. 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 +76 -66
  48. data/spec/vcr/Docker_Image/_create/when_the_Image_does_not_yet_exist_and_the_body_is_a_Hash/sets_the_id.yml +20 -18
  49. data/spec/vcr/Docker_Image/_get/when_the_image_does_exist/returns_the_new_image.yml +14 -15
  50. data/spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml +36 -32
  51. data/spec/vcr/Docker_Image/_insert/inserts_the_url_s_file_into_a_new_Image.yml +70 -86
  52. data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/creates_a_new_image.yml +69 -47
  53. data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/leave_no_intermediate_containers.yml +118 -47
  54. data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_exist/creates_a_new_Image_that_has_that_file.yml +68 -70
  55. data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_not_exist/raises_an_error.yml +16 -16
  56. data/spec/vcr/Docker_Image/_insert_local/when_there_are_multiple_files_passed/creates_a_new_Image_that_has_each_file.yml +70 -72
  57. data/spec/vcr/Docker_Image/_json/returns_additional_information_about_image_image.yml +33 -32
  58. data/spec/vcr/Docker_Image/_push/pushes_the_Image.yml +162 -105
  59. data/spec/vcr/Docker_Image/_remove/removes_the_Image.yml +53 -46
  60. data/spec/vcr/Docker_Image/_run/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml +54 -54
  61. data/spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml +54 -54
  62. 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 +46 -101
  63. 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 +35 -35
  64. data/spec/vcr/Docker_Image/_search/materializes_each_Image_into_a_Docker_Image.yml +94 -35
  65. data/spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml +32 -31
  66. metadata +29 -49
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: unix:///var/run/docker.sock/v1.6/containers/create
5
+ uri: unix:///var/run/docker.sock/v1.8/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
10
  User-Agent:
11
- - Swipely/Docker-API 1.6.0
11
+ - Swipely/Docker-API 1.7.6
12
12
  Content-Type:
13
13
  - application/json
14
14
  response:
@@ -16,29 +16,29 @@ http_interactions:
16
16
  code: 201
17
17
  message:
18
18
  headers:
19
- !binary "Q29udGVudC1UeXBl":
20
- - !binary |-
21
- YXBwbGljYXRpb24vanNvbg==
22
- !binary "Q29udGVudC1MZW5ndGg=":
23
- - !binary |-
24
- MjE=
25
- !binary "RGF0ZQ==":
26
- - !binary |-
27
- TW9uLCAyOCBPY3QgMjAxMyAxNDozNTozNiBHTVQ=
19
+ Content-Type:
20
+ - application/json
21
+ Date:
22
+ - Wed, 12 Feb 2014 17:05:55 GMT
23
+ Content-Length:
24
+ - '90'
25
+ Connection:
26
+ - close
28
27
  body:
29
- encoding: US-ASCII
30
- string: ! '{"Id":"86e7cfd11b94"}'
28
+ encoding: UTF-8
29
+ string: |
30
+ {"Id":"00b03137788eaa1b92c66a9ef299d967f3ef1fa181df0ce8ad608b6e453e95b7","Warnings":null}
31
31
  http_version:
32
- recorded_at: Mon, 28 Oct 2013 14:35:36 GMT
32
+ recorded_at: Wed, 12 Feb 2014 17:05:55 GMT
33
33
  - request:
34
34
  method: get
35
- uri: unix:///var/run/docker.sock/v1.6/containers/json?all=true
35
+ uri: unix:///var/run/docker.sock/v1.8/containers/json?all=true
36
36
  body:
37
37
  encoding: US-ASCII
38
38
  string: ''
39
39
  headers:
40
40
  User-Agent:
41
- - Swipely/Docker-API 1.6.0
41
+ - Swipely/Docker-API 1.7.6
42
42
  Content-Type:
43
43
  - text/plain
44
44
  response:
@@ -46,30 +46,55 @@ http_interactions:
46
46
  code: 200
47
47
  message:
48
48
  headers:
49
- !binary "Q29udGVudC1UeXBl":
50
- - !binary |-
51
- YXBwbGljYXRpb24vanNvbg==
52
- !binary "Q29udGVudC1MZW5ndGg=":
53
- - !binary |-
54
- MTkx
55
- !binary "RGF0ZQ==":
56
- - !binary |-
57
- TW9uLCAyOCBPY3QgMjAxMyAxNDozNTozNiBHTVQ=
49
+ Date:
50
+ - Wed, 12 Feb 2014 17:05:55 GMT
51
+ Content-Type:
52
+ - text/plain; charset=utf-8
53
+ Connection:
54
+ - close
55
+ Transfer-Encoding:
56
+ - ''
58
57
  body:
59
- encoding: US-ASCII
60
- string: ! '[{"Id":"86e7cfd11b94c982d011dc6b9f5414dae7f92065f8ad444ec5254fc92ed6ffd3","Image":"base:latest","Command":"ls
61
- ","Created":1382970936,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0}]'
58
+ encoding: UTF-8
59
+ string: |-
60
+ [{"Command":"ls ","Created":1392224755,"Id":"00b03137788eaa1b92c66a9ef299d967f3ef1fa181df0ce8ad608b6e453e95b7","Image":"base2:latest","Names":["/jolly_franklin"],"Ports":[],"Status":"Exit 0"}
61
+ ,{"Command":"ls ","Created":1392224754,"Id":"083d93f684c015450c2870ed3272f92f3eaf9488db088b6a0bb0527486c74480","Image":"base2:latest","Names":["/thirsty_ptolemy"],"Ports":[],"Status":"Exit 0"}
62
+ ,{"Command":"date ","Created":1392224754,"Id":"b95fc91a57b0342a30991266de97a29f509eccf1b4c5c34a299a463bfbd95766","Image":"base2:latest","Names":["/angry_einstein"],"Ports":[],"Status":"Exit 0"}
63
+ ,{"Command":"pwd ","Created":1392224754,"Id":"ccc53890fd4d75f71d0d762ea8f293263abb046cccecf7f2c2fb6c1736c112ab","Image":"dae27da5a73f","Names":["/berserk_pasteur"],"Ports":[],"Status":"Exit 0"}
64
+ ,{"Command":true,"Created":1392224749,"Id":"6f0873d9e37bc1d0878f2d397c0eba3e869969a3e4ff4ea92a7f64951cd84762","Image":"base2:latest","Names":["/clever_darwin"],"Ports":[],"Status":"Exit 0"}
65
+ ,{"Command":true,"Created":1392224747,"Id":"96d2323cd50e045118d05e31244ef0b7e889371331cf38da7569e2bc7381b68f","Image":"base2:latest","Names":["/grave_bohr"],"Ports":[],"Status":"Exit 0"}
66
+ ,{"Command":"ls ","Created":1392224746,"Id":"28d003c06e3f52d738615f1d36e6f5495d55be378f3c3d855957c5b52eadb476","Image":"328de6c59bef","Names":["/loving_shockley"],"Ports":[],"Status":"Exit 0"}
67
+ ,{"Command":"pwd ","Created":1392224742,"Id":"d062ac41f03d49177f1500f219a91ad4e2f51a168b9737f5066965941a52debe","Image":"base2:latest","Names":["/furious_albattani"],"Ports":[],"Status":"Exit 0"}
68
+ ,{"Command":"lol not a real command","Created":1392224741,"Id":"ff01ea70677f91c239614d06d5594bee143047e2a8144b60ee012f5cd4619729","Image":"base2:latest","Names":["/mad_bohr"],"Ports":[],"Status":"Exit 127"}
69
+ ,{"Command":"sleep 5","Created":1392224740,"Id":"b60e2d88cbbdf0b6f2e49eda5354b65a8b8a36da47cc6983f36b38f49183d0c2","Image":"base2:latest","Names":["/evil_euclid"],"Ports":[],"Status":"Exit 0"}
70
+ ,{"Command":"sleep 5","Created":1392224734,"Id":"8ca4734f0a48caa34f8c0ac2a1ab59de2e00493e6e5786d177eb2e62907b4725","Image":"base2:latest","Names":["/kickass_lovelace"],"Ports":[],"Status":"Exit 0"}
71
+ ,{"Command":"tar nonsense","Created":1392224733,"Id":"f59a41eaf3fe69c574fea81ba8fb48988c25727885e0a4781354752631ab682e","Image":"base2:latest","Names":["/thirsty_fermi"],"Ports":[],"Status":"Exit 64"}
72
+ ,{"Command":"sleep 50","Created":1392224733,"Id":"806cc3e41304703c5312c3aafe63bee14c90dec0eaee9e7acbcfc9d747c2acda","Image":"base2:latest","Names":["/drunk_babbage"],"Ports":[],"Status":"Up 21 seconds"}
73
+ ,{"Command":"ls ","Created":1392224731,"Id":"6a81da03ece735f7300105986839f522d3c0ca2015734f553307465199a67a74","Image":"base2:latest","Names":["/furious_darwin"],"Ports":[],"Status":"Exit 0"}
74
+ ,{"Command":true,"Created":1392224730,"Id":"75e9d159b18c496eaefb8a9303a9e497515533ac804c1984593e423ccf361d8c","Image":"base2:latest","Names":["/hungry_pasteur"],"Ports":[],"Status":"Exit 2"}
75
+ ,{"Command":"test -d /foo","Created":1392224730,"Id":"1d7ad40cf94fe20c7b72186afb550f742dba8d4e3c5712649202eacedc353610","Image":"base2:latest","Names":["/grave_brown"],"Ports":[],"Status":"Exit 0"}
76
+ ,{"Command":"pwd ","Created":1392224729,"Id":"b97622bf74dc3bd4a47cfc1fcb00aad1a73b6c602dc2fbcb09fbbcb6e60ad547","Image":"base2:latest","Names":["/suspicious_euclid"],"Ports":[],"Status":"Exit 0"}
77
+ ,{"Command":"pwd ","Created":1392224728,"Id":"aca0db5a8af5667cfb798ca4fa2650d5dc96265005b21f635755a4e7ae3c22a6","Image":"base2:latest","Names":["/furious_poincare"],"Ports":[],"Status":"Exit 0"}
78
+ ,{"Command":"rm -rf / --no-preserve-root","Created":1392224727,"Id":"68c652097593ef2d2469e0ec0a28ae07bb8cb6f6066e36bd2a689bdf1c75b67a","Image":"base2:latest","Names":["/trusting_lovelace"],"Ports":[],"Status":"Exit 1"}
79
+ ,{"Command":"touch /test","Created":1392224727,"Id":"4abac1fa781baa731e67c8623ad09277fcab360e96727897a995d047b706d1b0","Image":"base2:latest","Names":["/evil_bardeen"],"Ports":[],"Status":"Exit 0"}
80
+ ,{"Command":"touch /test","Created":1392224725,"Id":"7fc5da303ee405d249c67fb17ff9806d358e031764002beef9a9030ee0e6150a","Image":"base2:latest","Names":["/loving_lovelace"],"Ports":[],"Status":"Exit 0"}
81
+ ,{"Command":"/bin/sh -c printf '#! /bin/sh\\nwhile true\\ndo\\ntrue\\ndone\\n' \u003e /while \u0026\u0026 chmod +x /while","Created":1392224716,"Id":"cacaaf438ce9f95013b62be6121f0e024854326e28bb9daea0e10d73927b4d8e","Image":"base2:latest","Names":["/distracted_tesla"],"Ports":[],"Status":"Exit 0"}
82
+ ,{"Command":"rm -rf /root","Created":1392224712,"Id":"8662d957c62499b15195a9c4b07d0a60284b13309cac13b3dcc438be317c3333","Image":"base2:latest","Names":["/stoic_turing"],"Ports":[],"Status":"Exit 0"}
83
+ ,{"Command":true,"Created":1392224711,"Id":"956835aa46c1d76b349a08fa048e5422fa866e1a90b3ef833232b292e1e57a8d","Image":"base2:latest","Names":["/bob"],"Ports":[],"Status":"Exit 0"}
84
+ ,{"Command":true,"Created":1392224710,"Id":"84eaae34df6b150fb24ff9cb1a8f018a730da82f54bb96cef9875d3c7d443064","Image":"base2:latest","Names":["/boring_brattain"],"Ports":[],"Status":"Exit 0"}
85
+ ,{"Command":"sleep 5","Created":1392151930,"Id":"d51ef17bd97e56413bf82176cbc569d062a9f544ac412d406d83b5bc1e171fa0","Image":"base2:latest","Names":["/clever_mclean"],"Ports":[],"Status":"Exit 0"}
86
+ ]
62
87
  http_version:
63
- recorded_at: Mon, 28 Oct 2013 14:35:36 GMT
88
+ recorded_at: Wed, 12 Feb 2014 17:05:55 GMT
64
89
  - request:
65
90
  method: get
66
- uri: unix:///var/run/docker.sock/v1.6/containers/json?all=true
91
+ uri: unix:///var/run/docker.sock/v1.8/containers/json?all=true
67
92
  body:
68
93
  encoding: US-ASCII
69
94
  string: ''
70
95
  headers:
71
96
  User-Agent:
72
- - Swipely/Docker-API 1.6.0
97
+ - Swipely/Docker-API 1.7.6
73
98
  Content-Type:
74
99
  - text/plain
75
100
  response:
@@ -77,19 +102,44 @@ http_interactions:
77
102
  code: 200
78
103
  message:
79
104
  headers:
80
- !binary "Q29udGVudC1UeXBl":
81
- - !binary |-
82
- YXBwbGljYXRpb24vanNvbg==
83
- !binary "Q29udGVudC1MZW5ndGg=":
84
- - !binary |-
85
- MTkx
86
- !binary "RGF0ZQ==":
87
- - !binary |-
88
- TW9uLCAyOCBPY3QgMjAxMyAxNDozNTozNiBHTVQ=
105
+ Date:
106
+ - Wed, 12 Feb 2014 17:05:55 GMT
107
+ Content-Type:
108
+ - text/plain; charset=utf-8
109
+ Connection:
110
+ - close
111
+ Transfer-Encoding:
112
+ - ''
89
113
  body:
90
- encoding: US-ASCII
91
- string: ! '[{"Id":"86e7cfd11b94c982d011dc6b9f5414dae7f92065f8ad444ec5254fc92ed6ffd3","Image":"base:latest","Command":"ls
92
- ","Created":1382970936,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0}]'
114
+ encoding: UTF-8
115
+ string: |-
116
+ [{"Command":"ls ","Created":1392224755,"Id":"00b03137788eaa1b92c66a9ef299d967f3ef1fa181df0ce8ad608b6e453e95b7","Image":"base2:latest","Names":["/jolly_franklin"],"Ports":[],"Status":"Exit 0"}
117
+ ,{"Command":"ls ","Created":1392224754,"Id":"083d93f684c015450c2870ed3272f92f3eaf9488db088b6a0bb0527486c74480","Image":"base2:latest","Names":["/thirsty_ptolemy"],"Ports":[],"Status":"Exit 0"}
118
+ ,{"Command":"date ","Created":1392224754,"Id":"b95fc91a57b0342a30991266de97a29f509eccf1b4c5c34a299a463bfbd95766","Image":"base2:latest","Names":["/angry_einstein"],"Ports":[],"Status":"Exit 0"}
119
+ ,{"Command":"pwd ","Created":1392224754,"Id":"ccc53890fd4d75f71d0d762ea8f293263abb046cccecf7f2c2fb6c1736c112ab","Image":"dae27da5a73f","Names":["/berserk_pasteur"],"Ports":[],"Status":"Exit 0"}
120
+ ,{"Command":true,"Created":1392224749,"Id":"6f0873d9e37bc1d0878f2d397c0eba3e869969a3e4ff4ea92a7f64951cd84762","Image":"base2:latest","Names":["/clever_darwin"],"Ports":[],"Status":"Exit 0"}
121
+ ,{"Command":true,"Created":1392224747,"Id":"96d2323cd50e045118d05e31244ef0b7e889371331cf38da7569e2bc7381b68f","Image":"base2:latest","Names":["/grave_bohr"],"Ports":[],"Status":"Exit 0"}
122
+ ,{"Command":"ls ","Created":1392224746,"Id":"28d003c06e3f52d738615f1d36e6f5495d55be378f3c3d855957c5b52eadb476","Image":"328de6c59bef","Names":["/loving_shockley"],"Ports":[],"Status":"Exit 0"}
123
+ ,{"Command":"pwd ","Created":1392224742,"Id":"d062ac41f03d49177f1500f219a91ad4e2f51a168b9737f5066965941a52debe","Image":"base2:latest","Names":["/furious_albattani"],"Ports":[],"Status":"Exit 0"}
124
+ ,{"Command":"lol not a real command","Created":1392224741,"Id":"ff01ea70677f91c239614d06d5594bee143047e2a8144b60ee012f5cd4619729","Image":"base2:latest","Names":["/mad_bohr"],"Ports":[],"Status":"Exit 127"}
125
+ ,{"Command":"sleep 5","Created":1392224740,"Id":"b60e2d88cbbdf0b6f2e49eda5354b65a8b8a36da47cc6983f36b38f49183d0c2","Image":"base2:latest","Names":["/evil_euclid"],"Ports":[],"Status":"Exit 0"}
126
+ ,{"Command":"sleep 5","Created":1392224734,"Id":"8ca4734f0a48caa34f8c0ac2a1ab59de2e00493e6e5786d177eb2e62907b4725","Image":"base2:latest","Names":["/kickass_lovelace"],"Ports":[],"Status":"Exit 0"}
127
+ ,{"Command":"tar nonsense","Created":1392224733,"Id":"f59a41eaf3fe69c574fea81ba8fb48988c25727885e0a4781354752631ab682e","Image":"base2:latest","Names":["/thirsty_fermi"],"Ports":[],"Status":"Exit 64"}
128
+ ,{"Command":"sleep 50","Created":1392224733,"Id":"806cc3e41304703c5312c3aafe63bee14c90dec0eaee9e7acbcfc9d747c2acda","Image":"base2:latest","Names":["/drunk_babbage"],"Ports":[],"Status":"Up 21 seconds"}
129
+ ,{"Command":"ls ","Created":1392224731,"Id":"6a81da03ece735f7300105986839f522d3c0ca2015734f553307465199a67a74","Image":"base2:latest","Names":["/furious_darwin"],"Ports":[],"Status":"Exit 0"}
130
+ ,{"Command":true,"Created":1392224730,"Id":"75e9d159b18c496eaefb8a9303a9e497515533ac804c1984593e423ccf361d8c","Image":"base2:latest","Names":["/hungry_pasteur"],"Ports":[],"Status":"Exit 2"}
131
+ ,{"Command":"test -d /foo","Created":1392224730,"Id":"1d7ad40cf94fe20c7b72186afb550f742dba8d4e3c5712649202eacedc353610","Image":"base2:latest","Names":["/grave_brown"],"Ports":[],"Status":"Exit 0"}
132
+ ,{"Command":"pwd ","Created":1392224729,"Id":"b97622bf74dc3bd4a47cfc1fcb00aad1a73b6c602dc2fbcb09fbbcb6e60ad547","Image":"base2:latest","Names":["/suspicious_euclid"],"Ports":[],"Status":"Exit 0"}
133
+ ,{"Command":"pwd ","Created":1392224728,"Id":"aca0db5a8af5667cfb798ca4fa2650d5dc96265005b21f635755a4e7ae3c22a6","Image":"base2:latest","Names":["/furious_poincare"],"Ports":[],"Status":"Exit 0"}
134
+ ,{"Command":"rm -rf / --no-preserve-root","Created":1392224727,"Id":"68c652097593ef2d2469e0ec0a28ae07bb8cb6f6066e36bd2a689bdf1c75b67a","Image":"base2:latest","Names":["/trusting_lovelace"],"Ports":[],"Status":"Exit 1"}
135
+ ,{"Command":"touch /test","Created":1392224727,"Id":"4abac1fa781baa731e67c8623ad09277fcab360e96727897a995d047b706d1b0","Image":"base2:latest","Names":["/evil_bardeen"],"Ports":[],"Status":"Exit 0"}
136
+ ,{"Command":"touch /test","Created":1392224725,"Id":"7fc5da303ee405d249c67fb17ff9806d358e031764002beef9a9030ee0e6150a","Image":"base2:latest","Names":["/loving_lovelace"],"Ports":[],"Status":"Exit 0"}
137
+ ,{"Command":"/bin/sh -c printf '#! /bin/sh\\nwhile true\\ndo\\ntrue\\ndone\\n' \u003e /while \u0026\u0026 chmod +x /while","Created":1392224716,"Id":"cacaaf438ce9f95013b62be6121f0e024854326e28bb9daea0e10d73927b4d8e","Image":"base2:latest","Names":["/distracted_tesla"],"Ports":[],"Status":"Exit 0"}
138
+ ,{"Command":"rm -rf /root","Created":1392224712,"Id":"8662d957c62499b15195a9c4b07d0a60284b13309cac13b3dcc438be317c3333","Image":"base2:latest","Names":["/stoic_turing"],"Ports":[],"Status":"Exit 0"}
139
+ ,{"Command":true,"Created":1392224711,"Id":"956835aa46c1d76b349a08fa048e5422fa866e1a90b3ef833232b292e1e57a8d","Image":"base2:latest","Names":["/bob"],"Ports":[],"Status":"Exit 0"}
140
+ ,{"Command":true,"Created":1392224710,"Id":"84eaae34df6b150fb24ff9cb1a8f018a730da82f54bb96cef9875d3c7d443064","Image":"base2:latest","Names":["/boring_brattain"],"Ports":[],"Status":"Exit 0"}
141
+ ,{"Command":"sleep 5","Created":1392151930,"Id":"d51ef17bd97e56413bf82176cbc569d062a9f544ac412d406d83b5bc1e171fa0","Image":"base2:latest","Names":["/clever_mclean"],"Ports":[],"Status":"Exit 0"}
142
+ ]
93
143
  http_version:
94
- recorded_at: Mon, 28 Oct 2013 14:35:36 GMT
95
- recorded_with: VCR 2.6.0
144
+ recorded_at: Wed, 12 Feb 2014 17:05:55 GMT
145
+ recorded_with: VCR 2.8.0
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: unix:///var/run/docker.sock/v1.6/containers/create
5
+ uri: unix:///var/run/docker.sock/v1.8/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
10
  User-Agent:
11
- - Swipely/Docker-API 1.7.0
11
+ - Swipely/Docker-API 1.7.6
12
12
  Content-Type:
13
13
  - application/json
14
14
  response:
@@ -16,29 +16,29 @@ http_interactions:
16
16
  code: 201
17
17
  message:
18
18
  headers:
19
- !binary "Q29udGVudC1UeXBl":
20
- - !binary |-
21
- YXBwbGljYXRpb24vanNvbg==
22
- !binary "Q29udGVudC1MZW5ndGg=":
23
- - !binary |-
24
- MjE=
25
- !binary "RGF0ZQ==":
26
- - !binary |-
27
- RnJpLCAwOCBOb3YgMjAxMyAxOTo1OTo1NiBHTVQ=
19
+ Content-Type:
20
+ - application/json
21
+ Date:
22
+ - Wed, 12 Feb 2014 17:05:28 GMT
23
+ Content-Length:
24
+ - '90'
25
+ Connection:
26
+ - close
28
27
  body:
29
- encoding: US-ASCII
30
- string: ! '{"Id":"7cb80f7f5737"}'
28
+ encoding: UTF-8
29
+ string: |
30
+ {"Id":"aca0db5a8af5667cfb798ca4fa2650d5dc96265005b21f635755a4e7ae3c22a6","Warnings":null}
31
31
  http_version:
32
- recorded_at: Fri, 08 Nov 2013 19:59:56 GMT
32
+ recorded_at: Wed, 12 Feb 2014 17:05:28 GMT
33
33
  - request:
34
34
  method: post
35
- uri: unix:///var/run/docker.sock/v1.6/containers/7cb80f7f5737/start
35
+ uri: unix:///var/run/docker.sock/v1.8/containers/aca0db5a8af5667cfb798ca4fa2650d5dc96265005b21f635755a4e7ae3c22a6/start
36
36
  body:
37
37
  encoding: UTF-8
38
- string: ! '{}'
38
+ string: "{}"
39
39
  headers:
40
40
  User-Agent:
41
- - Swipely/Docker-API 1.7.0
41
+ - Swipely/Docker-API 1.7.6
42
42
  Content-Type:
43
43
  - application/json
44
44
  response:
@@ -46,29 +46,28 @@ http_interactions:
46
46
  code: 204
47
47
  message:
48
48
  headers:
49
- !binary "Q29udGVudC1UeXBl":
50
- - !binary |-
51
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
52
- !binary "Q29udGVudC1MZW5ndGg=":
53
- - !binary |-
54
- MA==
55
- !binary "RGF0ZQ==":
56
- - !binary |-
57
- RnJpLCAwOCBOb3YgMjAxMyAxOTo1OTo1NiBHTVQ=
49
+ Date:
50
+ - Wed, 12 Feb 2014 17:05:29 GMT
51
+ Content-Length:
52
+ - '0'
53
+ Content-Type:
54
+ - text/plain; charset=utf-8
55
+ Connection:
56
+ - close
58
57
  body:
59
- encoding: US-ASCII
58
+ encoding: UTF-8
60
59
  string: ''
61
60
  http_version:
62
- recorded_at: Fri, 08 Nov 2013 19:59:56 GMT
61
+ recorded_at: Wed, 12 Feb 2014 17:05:29 GMT
63
62
  - request:
64
63
  method: post
65
- uri: unix:///var/run/docker.sock/v1.6/containers/7cb80f7f5737/attach?stderr=true&stdout=true&stream=true
64
+ uri: unix:///var/run/docker.sock/v1.8/containers/aca0db5a8af5667cfb798ca4fa2650d5dc96265005b21f635755a4e7ae3c22a6/attach?stderr=true&stdout=true&stream=true
66
65
  body:
67
66
  encoding: US-ASCII
68
67
  string: ''
69
68
  headers:
70
69
  User-Agent:
71
- - Swipely/Docker-API 1.7.0
70
+ - Swipely/Docker-API 1.7.6
72
71
  Content-Type:
73
72
  - text/plain
74
73
  response:
@@ -76,13 +75,12 @@ http_interactions:
76
75
  code: 200
77
76
  message:
78
77
  headers:
79
- !binary "Q29udGVudC1UeXBl":
80
- - !binary |-
81
- YXBwbGljYXRpb24vdm5kLmRvY2tlci5yYXctc3RyZWFt
78
+ Content-Type:
79
+ - application/vnd.docker.raw-stream
82
80
  body:
83
- encoding: US-ASCII
81
+ encoding: UTF-8
84
82
  string: !binary |-
85
83
  AQAAAAAAAAIvCg==
86
84
  http_version:
87
- recorded_at: Fri, 08 Nov 2013 19:59:56 GMT
88
- recorded_with: VCR 2.7.0
85
+ recorded_at: Wed, 12 Feb 2014 17:05:29 GMT
86
+ recorded_with: VCR 2.8.0
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: unix:///var/run/docker.sock/v1.6/containers/create
5
+ uri: unix:///var/run/docker.sock/v1.8/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
10
  User-Agent:
11
- - Swipely/Docker-API 1.7.0
11
+ - Swipely/Docker-API 1.7.6
12
12
  Content-Type:
13
13
  - application/json
14
14
  response:
@@ -16,29 +16,29 @@ http_interactions:
16
16
  code: 201
17
17
  message:
18
18
  headers:
19
- !binary "Q29udGVudC1UeXBl":
20
- - !binary |-
21
- YXBwbGljYXRpb24vanNvbg==
22
- !binary "Q29udGVudC1MZW5ndGg=":
23
- - !binary |-
24
- MjE=
25
- !binary "RGF0ZQ==":
26
- - !binary |-
27
- RnJpLCAwOCBOb3YgMjAxMyAxOTo1OTo1NiBHTVQ=
19
+ Content-Type:
20
+ - application/json
21
+ Date:
22
+ - Wed, 12 Feb 2014 17:05:30 GMT
23
+ Content-Length:
24
+ - '90'
25
+ Connection:
26
+ - close
28
27
  body:
29
- encoding: US-ASCII
30
- string: ! '{"Id":"ded9600a2f37"}'
28
+ encoding: UTF-8
29
+ string: |
30
+ {"Id":"b97622bf74dc3bd4a47cfc1fcb00aad1a73b6c602dc2fbcb09fbbcb6e60ad547","Warnings":null}
31
31
  http_version:
32
- recorded_at: Fri, 08 Nov 2013 19:59:56 GMT
32
+ recorded_at: Wed, 12 Feb 2014 17:05:30 GMT
33
33
  - request:
34
34
  method: post
35
- uri: unix:///var/run/docker.sock/v1.6/containers/ded9600a2f37/start
35
+ uri: unix:///var/run/docker.sock/v1.8/containers/b97622bf74dc3bd4a47cfc1fcb00aad1a73b6c602dc2fbcb09fbbcb6e60ad547/start
36
36
  body:
37
37
  encoding: UTF-8
38
- string: ! '{}'
38
+ string: "{}"
39
39
  headers:
40
40
  User-Agent:
41
- - Swipely/Docker-API 1.7.0
41
+ - Swipely/Docker-API 1.7.6
42
42
  Content-Type:
43
43
  - application/json
44
44
  response:
@@ -46,29 +46,28 @@ http_interactions:
46
46
  code: 204
47
47
  message:
48
48
  headers:
49
- !binary "Q29udGVudC1UeXBl":
50
- - !binary |-
51
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
52
- !binary "Q29udGVudC1MZW5ndGg=":
53
- - !binary |-
54
- MA==
55
- !binary "RGF0ZQ==":
56
- - !binary |-
57
- RnJpLCAwOCBOb3YgMjAxMyAxOTo1OTo1NiBHTVQ=
49
+ Date:
50
+ - Wed, 12 Feb 2014 17:05:30 GMT
51
+ Content-Length:
52
+ - '0'
53
+ Content-Type:
54
+ - text/plain; charset=utf-8
55
+ Connection:
56
+ - close
58
57
  body:
59
- encoding: US-ASCII
58
+ encoding: UTF-8
60
59
  string: ''
61
60
  http_version:
62
- recorded_at: Fri, 08 Nov 2013 19:59:56 GMT
61
+ recorded_at: Wed, 12 Feb 2014 17:05:30 GMT
63
62
  - request:
64
63
  method: post
65
- uri: unix:///var/run/docker.sock/v1.6/containers/ded9600a2f37/attach?stderr=true&stdout=true&stream=true
64
+ uri: unix:///var/run/docker.sock/v1.8/containers/b97622bf74dc3bd4a47cfc1fcb00aad1a73b6c602dc2fbcb09fbbcb6e60ad547/attach?stderr=true&stdout=true&stream=true
66
65
  body:
67
66
  encoding: US-ASCII
68
67
  string: ''
69
68
  headers:
70
69
  User-Agent:
71
- - Swipely/Docker-API 1.7.0
70
+ - Swipely/Docker-API 1.7.6
72
71
  Content-Type:
73
72
  - text/plain
74
73
  response:
@@ -76,13 +75,12 @@ http_interactions:
76
75
  code: 200
77
76
  message:
78
77
  headers:
79
- !binary "Q29udGVudC1UeXBl":
80
- - !binary |-
81
- YXBwbGljYXRpb24vdm5kLmRvY2tlci5yYXctc3RyZWFt
78
+ Content-Type:
79
+ - application/vnd.docker.raw-stream
82
80
  body:
83
- encoding: US-ASCII
81
+ encoding: UTF-8
84
82
  string: !binary |-
85
83
  AQAAAAAAAAIvCg==
86
84
  http_version:
87
- recorded_at: Fri, 08 Nov 2013 19:59:56 GMT
88
- recorded_with: VCR 2.7.0
85
+ recorded_at: Wed, 12 Feb 2014 17:05:30 GMT
86
+ recorded_with: VCR 2.8.0
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: unix:///var/run/docker.sock/v1.6/containers/create
5
+ uri: unix:///var/run/docker.sock/v1.8/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
10
  User-Agent:
11
- - Swipely/Docker-API 1.6.0
11
+ - Swipely/Docker-API 1.7.6
12
12
  Content-Type:
13
13
  - application/json
14
14
  response:
@@ -16,29 +16,29 @@ http_interactions:
16
16
  code: 201
17
17
  message:
18
18
  headers:
19
- !binary "Q29udGVudC1UeXBl":
20
- - !binary |-
21
- YXBwbGljYXRpb24vanNvbg==
22
- !binary "Q29udGVudC1MZW5ndGg=":
23
- - !binary |-
24
- MjE=
25
- !binary "RGF0ZQ==":
26
- - !binary |-
27
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1MyBHTVQ=
19
+ Content-Type:
20
+ - application/json
21
+ Date:
22
+ - Wed, 12 Feb 2014 17:05:13 GMT
23
+ Content-Length:
24
+ - '90'
25
+ Connection:
26
+ - close
28
27
  body:
29
- encoding: US-ASCII
30
- string: ! '{"Id":"1375718e85e4"}'
28
+ encoding: UTF-8
29
+ string: |
30
+ {"Id":"8662d957c62499b15195a9c4b07d0a60284b13309cac13b3dcc438be317c3333","Warnings":null}
31
31
  http_version:
32
- recorded_at: Fri, 25 Oct 2013 16:28:53 GMT
32
+ recorded_at: Wed, 12 Feb 2014 17:05:13 GMT
33
33
  - request:
34
34
  method: post
35
- uri: unix:///var/run/docker.sock/v1.6/containers/1375718e85e4/start
35
+ uri: unix:///var/run/docker.sock/v1.8/containers/8662d957c62499b15195a9c4b07d0a60284b13309cac13b3dcc438be317c3333/start
36
36
  body:
37
37
  encoding: UTF-8
38
- string: ! '{}'
38
+ string: "{}"
39
39
  headers:
40
40
  User-Agent:
41
- - Swipely/Docker-API 1.6.0
41
+ - Swipely/Docker-API 1.7.6
42
42
  Content-Type:
43
43
  - application/json
44
44
  response:
@@ -46,29 +46,28 @@ http_interactions:
46
46
  code: 204
47
47
  message:
48
48
  headers:
49
- !binary "Q29udGVudC1UeXBl":
50
- - !binary |-
51
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
52
- !binary "Q29udGVudC1MZW5ndGg=":
53
- - !binary |-
54
- MA==
55
- !binary "RGF0ZQ==":
56
- - !binary |-
57
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1MyBHTVQ=
49
+ Date:
50
+ - Wed, 12 Feb 2014 17:05:14 GMT
51
+ Content-Length:
52
+ - '0'
53
+ Content-Type:
54
+ - text/plain; charset=utf-8
55
+ Connection:
56
+ - close
58
57
  body:
59
- encoding: US-ASCII
58
+ encoding: UTF-8
60
59
  string: ''
61
60
  http_version:
62
- recorded_at: Fri, 25 Oct 2013 16:28:53 GMT
61
+ recorded_at: Wed, 12 Feb 2014 17:05:14 GMT
63
62
  - request:
64
63
  method: post
65
- uri: unix:///var/run/docker.sock/v1.6/containers/1375718e85e4/wait
64
+ uri: unix:///var/run/docker.sock/v1.8/containers/8662d957c62499b15195a9c4b07d0a60284b13309cac13b3dcc438be317c3333/wait
66
65
  body:
67
66
  encoding: US-ASCII
68
67
  string: ''
69
68
  headers:
70
69
  User-Agent:
71
- - Swipely/Docker-API 1.6.0
70
+ - Swipely/Docker-API 1.7.6
72
71
  Content-Type:
73
72
  - text/plain
74
73
  response:
@@ -76,29 +75,29 @@ http_interactions:
76
75
  code: 200
77
76
  message:
78
77
  headers:
79
- !binary "Q29udGVudC1UeXBl":
80
- - !binary |-
81
- YXBwbGljYXRpb24vanNvbg==
82
- !binary "Q29udGVudC1MZW5ndGg=":
83
- - !binary |-
84
- MTY=
85
- !binary "RGF0ZQ==":
86
- - !binary |-
87
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1MyBHTVQ=
78
+ Content-Type:
79
+ - application/json
80
+ Date:
81
+ - Wed, 12 Feb 2014 17:05:14 GMT
82
+ Content-Length:
83
+ - '17'
84
+ Connection:
85
+ - close
88
86
  body:
89
- encoding: US-ASCII
90
- string: ! '{"StatusCode":0}'
87
+ encoding: UTF-8
88
+ string: |
89
+ {"StatusCode":0}
91
90
  http_version:
92
- recorded_at: Fri, 25 Oct 2013 16:28:53 GMT
91
+ recorded_at: Wed, 12 Feb 2014 17:05:14 GMT
93
92
  - request:
94
93
  method: get
95
- uri: unix:///var/run/docker.sock/v1.6/containers/1375718e85e4/changes
94
+ uri: unix:///var/run/docker.sock/v1.8/containers/8662d957c62499b15195a9c4b07d0a60284b13309cac13b3dcc438be317c3333/changes
96
95
  body:
97
96
  encoding: US-ASCII
98
97
  string: ''
99
98
  headers:
100
99
  User-Agent:
101
- - Swipely/Docker-API 1.6.0
100
+ - Swipely/Docker-API 1.7.6
102
101
  Content-Type:
103
102
  - text/plain
104
103
  response:
@@ -106,18 +105,21 @@ http_interactions:
106
105
  code: 200
107
106
  message:
108
107
  headers:
109
- !binary "Q29udGVudC1UeXBl":
110
- - !binary |-
111
- YXBwbGljYXRpb24vanNvbg==
112
- !binary "Q29udGVudC1MZW5ndGg=":
113
- - !binary |-
114
- ODI=
115
- !binary "RGF0ZQ==":
116
- - !binary |-
117
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1MyBHTVQ=
108
+ Date:
109
+ - Wed, 12 Feb 2014 17:05:15 GMT
110
+ Content-Length:
111
+ - '85'
112
+ Content-Type:
113
+ - text/plain; charset=utf-8
114
+ Connection:
115
+ - close
118
116
  body:
119
- encoding: US-ASCII
120
- string: ! '[{"Path":"/root","Kind":2},{"Path":"/dev","Kind":0},{"Path":"/dev/kmsg","Kind":1}]'
117
+ encoding: UTF-8
118
+ string: |-
119
+ [{"Kind":0,"Path":"/dev"}
120
+ ,{"Kind":0,"Path":"/dev/kmsg"}
121
+ ,{"Kind":2,"Path":"/root"}
122
+ ]
121
123
  http_version:
122
- recorded_at: Fri, 25 Oct 2013 16:28:53 GMT
123
- recorded_with: VCR 2.6.0
124
+ recorded_at: Wed, 12 Feb 2014 17:05:15 GMT
125
+ recorded_with: VCR 2.8.0