docker-api 1.7.6 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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":["test","-d","/foo"],"Image":"base","Volumes":{"/foo":{}}}'
8
+ string: "{\"Cmd\":[\"test\",\"-d\",\"/foo\"],\"Image\":\"base\",\"Volumes\":{\"/foo\":{}}}"
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
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMSBHTVQ=
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":"62d216c3fb8a"}'
28
+ encoding: UTF-8
29
+ string: |
30
+ {"Id":"1d7ad40cf94fe20c7b72186afb550f742dba8d4e3c5712649202eacedc353610","Warnings":null}
31
31
  http_version:
32
- recorded_at: Fri, 25 Oct 2013 16:29:01 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/62d216c3fb8a/start
35
+ uri: unix:///var/run/docker.sock/v1.8/containers/1d7ad40cf94fe20c7b72186afb550f742dba8d4e3c5712649202eacedc353610/start
36
36
  body:
37
37
  encoding: UTF-8
38
- string: ! '{"Binds":["/tmp:/foo"]}'
38
+ string: "{\"Binds\":[\"/tmp:/foo\"]}"
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
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMSBHTVQ=
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, 25 Oct 2013 16:29:01 GMT
61
+ recorded_at: Wed, 12 Feb 2014 17:05:30 GMT
63
62
  - request:
64
63
  method: get
65
- uri: unix:///var/run/docker.sock/v1.6/containers/json
64
+ uri: unix:///var/run/docker.sock/v1.8/containers/json
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,30 +75,30 @@ 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
- MjE1
85
- !binary "RGF0ZQ==":
86
- - !binary |-
87
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMSBHTVQ=
78
+ Date:
79
+ - Wed, 12 Feb 2014 17:05:30 GMT
80
+ Content-Length:
81
+ - '214'
82
+ Content-Type:
83
+ - text/plain; charset=utf-8
84
+ Connection:
85
+ - close
88
86
  body:
89
- encoding: US-ASCII
90
- string: ! '[{"Id":"62d216c3fb8a491d89fbc2a72ec7a39be464f77624740238be90b13502b66ab0","Image":"base:latest","Command":"test
91
- -d /foo","Created":1382718541,"Status":"Up Less than a second","Ports":null,"SizeRw":0,"SizeRootFs":0}]'
87
+ encoding: UTF-8
88
+ string: |-
89
+ [{"Command":"test -d /foo","Created":1392224730,"Id":"1d7ad40cf94fe20c7b72186afb550f742dba8d4e3c5712649202eacedc353610","Image":"base2:latest","Names":["/grave_brown"],"Ports":[],"Status":"Up Less than a second"}
90
+ ]
92
91
  http_version:
93
- recorded_at: Fri, 25 Oct 2013 16:29:01 GMT
92
+ recorded_at: Wed, 12 Feb 2014 17:05:30 GMT
94
93
  - request:
95
94
  method: post
96
- uri: unix:///var/run/docker.sock/v1.6/containers/62d216c3fb8a/wait
95
+ uri: unix:///var/run/docker.sock/v1.8/containers/1d7ad40cf94fe20c7b72186afb550f742dba8d4e3c5712649202eacedc353610/wait
97
96
  body:
98
97
  encoding: US-ASCII
99
98
  string: ''
100
99
  headers:
101
100
  User-Agent:
102
- - Swipely/Docker-API 1.6.0
101
+ - Swipely/Docker-API 1.7.6
103
102
  Content-Type:
104
103
  - text/plain
105
104
  response:
@@ -107,18 +106,18 @@ http_interactions:
107
106
  code: 200
108
107
  message:
109
108
  headers:
110
- !binary "Q29udGVudC1UeXBl":
111
- - !binary |-
112
- YXBwbGljYXRpb24vanNvbg==
113
- !binary "Q29udGVudC1MZW5ndGg=":
114
- - !binary |-
115
- MTY=
116
- !binary "RGF0ZQ==":
117
- - !binary |-
118
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMiBHTVQ=
109
+ Content-Type:
110
+ - application/json
111
+ Date:
112
+ - Wed, 12 Feb 2014 17:05:30 GMT
113
+ Content-Length:
114
+ - '17'
115
+ Connection:
116
+ - close
119
117
  body:
120
- encoding: US-ASCII
121
- string: ! '{"StatusCode":0}'
118
+ encoding: UTF-8
119
+ string: |
120
+ {"StatusCode":0}
122
121
  http_version:
123
- recorded_at: Fri, 25 Oct 2013 16:29:02 GMT
124
- recorded_with: VCR 2.6.0
122
+ recorded_at: Wed, 12 Feb 2014 17:05:30 GMT
123
+ 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":["true"],"Image":"base"}'
8
+ string: "{\"Cmd\":[\"true\"],\"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
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMiBHTVQ=
19
+ Content-Type:
20
+ - application/json
21
+ Date:
22
+ - Wed, 12 Feb 2014 17:05:31 GMT
23
+ Content-Length:
24
+ - '90'
25
+ Connection:
26
+ - close
28
27
  body:
29
- encoding: US-ASCII
30
- string: ! '{"Id":"6c5940e06b2f"}'
28
+ encoding: UTF-8
29
+ string: |
30
+ {"Id":"75e9d159b18c496eaefb8a9303a9e497515533ac804c1984593e423ccf361d8c","Warnings":null}
31
31
  http_version:
32
- recorded_at: Fri, 25 Oct 2013 16:29:02 GMT
32
+ recorded_at: Wed, 12 Feb 2014 17:05:31 GMT
33
33
  - request:
34
34
  method: post
35
- uri: unix:///var/run/docker.sock/v1.6/containers/6c5940e06b2f/start
35
+ uri: unix:///var/run/docker.sock/v1.8/containers/75e9d159b18c496eaefb8a9303a9e497515533ac804c1984593e423ccf361d8c/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
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMiBHTVQ=
49
+ Date:
50
+ - Wed, 12 Feb 2014 17:05:31 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:29:02 GMT
61
+ recorded_at: Wed, 12 Feb 2014 17:05:31 GMT
63
62
  - request:
64
63
  method: post
65
- uri: unix:///var/run/docker.sock/v1.6/containers/6c5940e06b2f/stop
64
+ uri: unix:///var/run/docker.sock/v1.8/containers/75e9d159b18c496eaefb8a9303a9e497515533ac804c1984593e423ccf361d8c/stop
66
65
  body:
67
66
  encoding: UTF-8
68
- string: ! '{}'
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
  - application/json
74
73
  response:
@@ -76,29 +75,28 @@ http_interactions:
76
75
  code: 204
77
76
  message:
78
77
  headers:
79
- !binary "Q29udGVudC1UeXBl":
80
- - !binary |-
81
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
82
- !binary "Q29udGVudC1MZW5ndGg=":
83
- - !binary |-
84
- MA==
85
- !binary "RGF0ZQ==":
86
- - !binary |-
87
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMiBHTVQ=
78
+ Date:
79
+ - Wed, 12 Feb 2014 17:05:31 GMT
80
+ Content-Length:
81
+ - '0'
82
+ Content-Type:
83
+ - text/plain; charset=utf-8
84
+ Connection:
85
+ - close
88
86
  body:
89
- encoding: US-ASCII
87
+ encoding: UTF-8
90
88
  string: ''
91
89
  http_version:
92
- recorded_at: Fri, 25 Oct 2013 16:29:02 GMT
90
+ recorded_at: Wed, 12 Feb 2014 17:05:31 GMT
93
91
  - request:
94
92
  method: get
95
- uri: unix:///var/run/docker.sock/v1.6/containers/json?all=true
93
+ uri: unix:///var/run/docker.sock/v1.8/containers/json?all=true
96
94
  body:
97
95
  encoding: US-ASCII
98
96
  string: ''
99
97
  headers:
100
98
  User-Agent:
101
- - Swipely/Docker-API 1.6.0
99
+ - Swipely/Docker-API 1.7.6
102
100
  Content-Type:
103
101
  - text/plain
104
102
  response:
@@ -106,41 +104,41 @@ http_interactions:
106
104
  code: 200
107
105
  message:
108
106
  headers:
109
- !binary "Q29udGVudC1UeXBl":
110
- - !binary |-
111
- YXBwbGljYXRpb24vanNvbg==
112
- !binary "RGF0ZQ==":
113
- - !binary |-
114
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMiBHTVQ=
115
- !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
116
- - !binary |-
117
- Y2h1bmtlZA==
107
+ Date:
108
+ - Wed, 12 Feb 2014 17:05:31 GMT
109
+ Content-Type:
110
+ - text/plain; charset=utf-8
111
+ Connection:
112
+ - close
113
+ Transfer-Encoding:
114
+ - ''
118
115
  body:
119
- encoding: US-ASCII
120
- string: ! '[{"Id":"6c5940e06b2f1131ddba8d809628ca4ca3357612624ebae9a24b5ada27f9e210","Image":"base:latest","Command":"true
121
- ","Created":1382718542,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"62d216c3fb8a491d89fbc2a72ec7a39be464f77624740238be90b13502b66ab0","Image":"base:latest","Command":"test
122
- -d /foo","Created":1382718541,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"a6fc66b03627541d764a70a5e33eaf0e704186f78e923c4ecdb8d3a8007c4d97","Image":"base:latest","Command":"pwd
123
- ","Created":1382718541,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"6262eddf6ea23cae949bb0745f4a3812c0961fe78d5db64ac56a7d97cae1dad3","Image":"base:latest","Command":"rm
124
- -rf / --no-preserve-root","Created":1382718538,"Status":"Exit 1","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"5d6805e5ca5542a8ccf8f11bf3def474700c0699ca4144a824f11be784911314","Image":"base:latest","Command":"touch
125
- /test","Created":1382718538,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"9ae257b241d59e4bd4994e448ed7075e358a987da5a4ae97022883859cefc82e","Image":"base:latest","Command":"touch
126
- /test","Created":1382718537,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"968bce01b7167d4a90ac0bf84033e50f99dff1590048e45b6f73326c1f93c674","Image":"base:latest","Command":"touch
127
- /test","Created":1382718536,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"aeb51665a4161d45974a853fb9c1a737e501eb8708fa749785401f8f95c5a8c3","Image":"a49d35b89848","Command":"/while
128
- ","Created":1382718533,"Status":"Exit 137","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"511a99a9b924341e343b5cb9c830101c1db0054c1cd7867f19b65ef98576ffa4","Image":"base:latest","Command":"/bin/sh
129
- -c printf ''#! /bin/sh\\nwhile true\\ndo\\ntrue\\ndone\\n'' \u003e /while
130
- && chmod +x /while","Created":1382718533,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"1375718e85e4a4135bf9f16979edb3693c96e5854ad3b6d42bc2f664d38bd63a","Image":"base:latest","Command":"rm
131
- -rf /root","Created":1382718533,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"e817145430ed2168bdbc548a1478ebbea02ace9564cdc02012fd9bab68ddf1b8","Image":"base:latest","Command":"true
132
- ","Created":1382718533,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0}]'
116
+ encoding: UTF-8
117
+ string: |-
118
+ [{"Command":true,"Created":1392224730,"Id":"75e9d159b18c496eaefb8a9303a9e497515533ac804c1984593e423ccf361d8c","Image":"base2:latest","Names":["/hungry_pasteur"],"Ports":[],"Status":"Exit 2"}
119
+ ,{"Command":"test -d /foo","Created":1392224730,"Id":"1d7ad40cf94fe20c7b72186afb550f742dba8d4e3c5712649202eacedc353610","Image":"base2:latest","Names":["/grave_brown"],"Ports":[],"Status":"Exit 0"}
120
+ ,{"Command":"pwd ","Created":1392224729,"Id":"b97622bf74dc3bd4a47cfc1fcb00aad1a73b6c602dc2fbcb09fbbcb6e60ad547","Image":"base2:latest","Names":["/suspicious_euclid"],"Ports":[],"Status":"Exit 0"}
121
+ ,{"Command":"pwd ","Created":1392224728,"Id":"aca0db5a8af5667cfb798ca4fa2650d5dc96265005b21f635755a4e7ae3c22a6","Image":"base2:latest","Names":["/furious_poincare"],"Ports":[],"Status":"Exit 0"}
122
+ ,{"Command":"rm -rf / --no-preserve-root","Created":1392224727,"Id":"68c652097593ef2d2469e0ec0a28ae07bb8cb6f6066e36bd2a689bdf1c75b67a","Image":"base2:latest","Names":["/trusting_lovelace"],"Ports":[],"Status":"Exit 1"}
123
+ ,{"Command":"touch /test","Created":1392224727,"Id":"4abac1fa781baa731e67c8623ad09277fcab360e96727897a995d047b706d1b0","Image":"base2:latest","Names":["/evil_bardeen"],"Ports":[],"Status":"Exit 0"}
124
+ ,{"Command":"touch /test","Created":1392224725,"Id":"7fc5da303ee405d249c67fb17ff9806d358e031764002beef9a9030ee0e6150a","Image":"base2:latest","Names":["/loving_lovelace"],"Ports":[],"Status":"Exit 0"}
125
+ ,{"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"}
126
+ ,{"Command":"rm -rf /root","Created":1392224712,"Id":"8662d957c62499b15195a9c4b07d0a60284b13309cac13b3dcc438be317c3333","Image":"base2:latest","Names":["/stoic_turing"],"Ports":[],"Status":"Exit 0"}
127
+ ,{"Command":true,"Created":1392224711,"Id":"956835aa46c1d76b349a08fa048e5422fa866e1a90b3ef833232b292e1e57a8d","Image":"base2:latest","Names":["/bob"],"Ports":[],"Status":"Exit 0"}
128
+ ,{"Command":true,"Created":1392224710,"Id":"84eaae34df6b150fb24ff9cb1a8f018a730da82f54bb96cef9875d3c7d443064","Image":"base2:latest","Names":["/boring_brattain"],"Ports":[],"Status":"Exit 0"}
129
+ ,{"Command":"sleep 5","Created":1392151930,"Id":"d51ef17bd97e56413bf82176cbc569d062a9f544ac412d406d83b5bc1e171fa0","Image":"base2:latest","Names":["/clever_mclean"],"Ports":[],"Status":"Exit 0"}
130
+ ]
133
131
  http_version:
134
- recorded_at: Fri, 25 Oct 2013 16:29:02 GMT
132
+ recorded_at: Wed, 12 Feb 2014 17:05:31 GMT
135
133
  - request:
136
134
  method: get
137
- uri: unix:///var/run/docker.sock/v1.6/containers/json
135
+ uri: unix:///var/run/docker.sock/v1.8/containers/json
138
136
  body:
139
137
  encoding: US-ASCII
140
138
  string: ''
141
139
  headers:
142
140
  User-Agent:
143
- - Swipely/Docker-API 1.6.0
141
+ - Swipely/Docker-API 1.7.6
144
142
  Content-Type:
145
143
  - text/plain
146
144
  response:
@@ -148,18 +146,17 @@ http_interactions:
148
146
  code: 200
149
147
  message:
150
148
  headers:
151
- !binary "Q29udGVudC1UeXBl":
152
- - !binary |-
153
- YXBwbGljYXRpb24vanNvbg==
154
- !binary "Q29udGVudC1MZW5ndGg=":
155
- - !binary |-
156
- Mg==
157
- !binary "RGF0ZQ==":
158
- - !binary |-
159
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMiBHTVQ=
149
+ Date:
150
+ - Wed, 12 Feb 2014 17:05:31 GMT
151
+ Content-Length:
152
+ - '2'
153
+ Content-Type:
154
+ - text/plain; charset=utf-8
155
+ Connection:
156
+ - close
160
157
  body:
161
- encoding: US-ASCII
162
- string: ! '[]'
158
+ encoding: UTF-8
159
+ string: "[]"
163
160
  http_version:
164
- recorded_at: Fri, 25 Oct 2013 16:29:02 GMT
165
- recorded_with: VCR 2.6.0
161
+ recorded_at: Wed, 12 Feb 2014 17:05:31 GMT
162
+ 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/build
5
+ uri: unix:///var/run/docker.sock/v1.8/build
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
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/tar
14
14
  Transfer-Encoding:
@@ -18,31 +18,32 @@ http_interactions:
18
18
  code: 200
19
19
  message:
20
20
  headers:
21
- !binary "Q29udGVudC1UeXBl":
22
- - !binary |-
23
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
24
- !binary "RGF0ZQ==":
25
- - !binary |-
26
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1MyBHTVQ=
27
- !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
28
- - !binary |-
29
- Y2h1bmtlZA==
21
+ Content-Type:
22
+ - application/json
23
+ Date:
24
+ - Wed, 12 Feb 2014 17:05:15 GMT
25
+ Connection:
26
+ - close
27
+ Transfer-Encoding:
28
+ - ''
30
29
  body:
31
- encoding: US-ASCII
32
- string: ! "Step 1 : FROM base\n ---> b750fe79269d\nStep 2 : RUN printf '#! /bin/sh\\nwhile
33
- true\\ndo\\ntrue\\ndone\\n' > /while && chmod +x /while\n ---> Running in
34
- 511a99a9b924\n ---> a49d35b89848\nSuccessfully built a49d35b89848\n"
30
+ encoding: UTF-8
31
+ string: "{\"stream\":\"Step 0 : from base\\n\"}{\"stream\":\" ---\\u003e b750fe79269d\\n\"}{\"stream\":\"Step
32
+ 1 : run printf '#! /bin/sh\\\\nwhile true\\\\ndo\\\\ntrue\\\\ndone\\\\n' \\u003e
33
+ /while \\u0026\\u0026 chmod +x /while\\n\"}{\"stream\":\" ---\\u003e Running
34
+ in cacaaf438ce9\\n\"}{\"stream\":\" ---\\u003e 8c71f00445f5\\n\"}{\"stream\":\"Successfully
35
+ built 8c71f00445f5\\n\"}"
35
36
  http_version:
36
- recorded_at: Fri, 25 Oct 2013 16:28:53 GMT
37
+ recorded_at: Wed, 12 Feb 2014 17:05:19 GMT
37
38
  - request:
38
39
  method: post
39
- uri: unix:///var/run/docker.sock/v1.6/containers/create
40
+ uri: unix:///var/run/docker.sock/v1.8/containers/create
40
41
  body:
41
42
  encoding: UTF-8
42
- string: ! '{"Image":"a49d35b89848","Cmd":["/while"]}'
43
+ string: "{\"Image\":\"8c71f00445f5\",\"Cmd\":[\"/while\"]}"
43
44
  headers:
44
45
  User-Agent:
45
- - Swipely/Docker-API 1.6.0
46
+ - Swipely/Docker-API 1.7.6
46
47
  Content-Type:
47
48
  - application/json
48
49
  response:
@@ -50,29 +51,29 @@ http_interactions:
50
51
  code: 201
51
52
  message:
52
53
  headers:
53
- !binary "Q29udGVudC1UeXBl":
54
- - !binary |-
55
- YXBwbGljYXRpb24vanNvbg==
56
- !binary "Q29udGVudC1MZW5ndGg=":
57
- - !binary |-
58
- MjE=
59
- !binary "RGF0ZQ==":
60
- - !binary |-
61
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1MyBHTVQ=
54
+ Content-Type:
55
+ - application/json
56
+ Date:
57
+ - Wed, 12 Feb 2014 17:05:19 GMT
58
+ Content-Length:
59
+ - '90'
60
+ Connection:
61
+ - close
62
62
  body:
63
- encoding: US-ASCII
64
- string: ! '{"Id":"aeb51665a416"}'
63
+ encoding: UTF-8
64
+ string: |
65
+ {"Id":"a8f25a38eae9d43dbc9fe1d20eeda7fb959ce4d0481f7bab1b5543d8ce366688","Warnings":null}
65
66
  http_version:
66
- recorded_at: Fri, 25 Oct 2013 16:28:53 GMT
67
+ recorded_at: Wed, 12 Feb 2014 17:05:19 GMT
67
68
  - request:
68
69
  method: post
69
- uri: unix:///var/run/docker.sock/v1.6/containers/aeb51665a416/start
70
+ uri: unix:///var/run/docker.sock/v1.8/containers/a8f25a38eae9d43dbc9fe1d20eeda7fb959ce4d0481f7bab1b5543d8ce366688/start
70
71
  body:
71
72
  encoding: UTF-8
72
- string: ! '{}'
73
+ string: "{}"
73
74
  headers:
74
75
  User-Agent:
75
- - Swipely/Docker-API 1.6.0
76
+ - Swipely/Docker-API 1.7.6
76
77
  Content-Type:
77
78
  - application/json
78
79
  response:
@@ -80,29 +81,28 @@ http_interactions:
80
81
  code: 204
81
82
  message:
82
83
  headers:
83
- !binary "Q29udGVudC1UeXBl":
84
- - !binary |-
85
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
86
- !binary "Q29udGVudC1MZW5ndGg=":
87
- - !binary |-
88
- MA==
89
- !binary "RGF0ZQ==":
90
- - !binary |-
91
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1MyBHTVQ=
84
+ Date:
85
+ - Wed, 12 Feb 2014 17:05:19 GMT
86
+ Content-Length:
87
+ - '0'
88
+ Content-Type:
89
+ - text/plain; charset=utf-8
90
+ Connection:
91
+ - close
92
92
  body:
93
- encoding: US-ASCII
93
+ encoding: UTF-8
94
94
  string: ''
95
95
  http_version:
96
- recorded_at: Fri, 25 Oct 2013 16:28:53 GMT
96
+ recorded_at: Wed, 12 Feb 2014 17:05:19 GMT
97
97
  - request:
98
98
  method: get
99
- uri: unix:///var/run/docker.sock/v1.6/containers/aeb51665a416/top
99
+ uri: unix:///var/run/docker.sock/v1.8/containers/a8f25a38eae9d43dbc9fe1d20eeda7fb959ce4d0481f7bab1b5543d8ce366688/top
100
100
  body:
101
101
  encoding: US-ASCII
102
102
  string: ''
103
103
  headers:
104
104
  User-Agent:
105
- - Swipely/Docker-API 1.6.0
105
+ - Swipely/Docker-API 1.7.6
106
106
  Content-Type:
107
107
  - text/plain
108
108
  response:
@@ -110,29 +110,29 @@ http_interactions:
110
110
  code: 200
111
111
  message:
112
112
  headers:
113
- !binary "Q29udGVudC1UeXBl":
114
- - !binary |-
115
- YXBwbGljYXRpb24vanNvbg==
116
- !binary "Q29udGVudC1MZW5ndGg=":
117
- - !binary |-
118
- ODM=
119
- !binary "RGF0ZQ==":
120
- - !binary |-
121
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1NCBHTVQ=
113
+ Date:
114
+ - Wed, 12 Feb 2014 17:05:20 GMT
115
+ Content-Length:
116
+ - '147'
117
+ Content-Type:
118
+ - text/plain; charset=utf-8
119
+ Connection:
120
+ - close
122
121
  body:
123
- encoding: US-ASCII
124
- string: ! '{"Titles":["PID","TTY","TIME","CMD"],"Processes":[["8439","?","00:00:00","while"]]}'
122
+ encoding: UTF-8
123
+ string: |
124
+ {"Processes":[["root","19337","19331","99","12:05","?","00:00:01","/bin/sh /while"]],"Titles":["UID","PID","PPID","C","STIME","TTY","TIME","CMD"]}
125
125
  http_version:
126
- recorded_at: Fri, 25 Oct 2013 16:28:54 GMT
126
+ recorded_at: Wed, 12 Feb 2014 17:05:20 GMT
127
127
  - request:
128
128
  method: post
129
- uri: unix:///var/run/docker.sock/v1.6/containers/aeb51665a416/kill
129
+ uri: unix:///var/run/docker.sock/v1.8/containers/a8f25a38eae9d43dbc9fe1d20eeda7fb959ce4d0481f7bab1b5543d8ce366688/kill
130
130
  body:
131
131
  encoding: UTF-8
132
- string: ! '{}'
132
+ string: "{}"
133
133
  headers:
134
134
  User-Agent:
135
- - Swipely/Docker-API 1.6.0
135
+ - Swipely/Docker-API 1.7.6
136
136
  Content-Type:
137
137
  - application/json
138
138
  response:
@@ -140,29 +140,57 @@ http_interactions:
140
140
  code: 204
141
141
  message:
142
142
  headers:
143
- !binary "Q29udGVudC1UeXBl":
144
- - !binary |-
145
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
146
- !binary "Q29udGVudC1MZW5ndGg=":
147
- - !binary |-
148
- MA==
149
- !binary "RGF0ZQ==":
150
- - !binary |-
151
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1NCBHTVQ=
143
+ Date:
144
+ - Wed, 12 Feb 2014 17:05:21 GMT
145
+ Content-Length:
146
+ - '0'
147
+ Content-Type:
148
+ - text/plain; charset=utf-8
149
+ Connection:
150
+ - close
151
+ body:
152
+ encoding: UTF-8
153
+ string: ''
154
+ http_version:
155
+ recorded_at: Wed, 12 Feb 2014 17:05:21 GMT
156
+ - request:
157
+ method: delete
158
+ uri: unix:///var/run/docker.sock/v1.8/containers/a8f25a38eae9d43dbc9fe1d20eeda7fb959ce4d0481f7bab1b5543d8ce366688
152
159
  body:
153
160
  encoding: US-ASCII
154
161
  string: ''
162
+ headers:
163
+ User-Agent:
164
+ - Swipely/Docker-API 1.7.6
165
+ Content-Type:
166
+ - text/plain
167
+ response:
168
+ status:
169
+ code: 204
170
+ message:
171
+ headers:
172
+ Date:
173
+ - Wed, 12 Feb 2014 17:05:23 GMT
174
+ Content-Length:
175
+ - '0'
176
+ Content-Type:
177
+ - text/plain; charset=utf-8
178
+ Connection:
179
+ - close
180
+ body:
181
+ encoding: UTF-8
182
+ string: ''
155
183
  http_version:
156
- recorded_at: Fri, 25 Oct 2013 16:28:54 GMT
184
+ recorded_at: Wed, 12 Feb 2014 17:05:23 GMT
157
185
  - request:
158
186
  method: delete
159
- uri: unix:///var/run/docker.sock/v1.6/images/a49d35b89848
187
+ uri: unix:///var/run/docker.sock/v1.8/images/8c71f00445f5
160
188
  body:
161
189
  encoding: US-ASCII
162
190
  string: ''
163
191
  headers:
164
192
  User-Agent:
165
- - Swipely/Docker-API 1.6.0
193
+ - Swipely/Docker-API 1.7.6
166
194
  Content-Type:
167
195
  - text/plain
168
196
  response:
@@ -170,18 +198,19 @@ http_interactions:
170
198
  code: 200
171
199
  message:
172
200
  headers:
173
- !binary "Q29udGVudC1UeXBl":
174
- - !binary |-
175
- YXBwbGljYXRpb24vanNvbg==
176
- !binary "Q29udGVudC1MZW5ndGg=":
177
- - !binary |-
178
- Mjg=
179
- !binary "RGF0ZQ==":
180
- - !binary |-
181
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1NCBHTVQ=
201
+ Date:
202
+ - Wed, 12 Feb 2014 17:05:23 GMT
203
+ Content-Length:
204
+ - '81'
205
+ Content-Type:
206
+ - text/plain; charset=utf-8
207
+ Connection:
208
+ - close
182
209
  body:
183
- encoding: US-ASCII
184
- string: ! '[{"Deleted":"a49d35b89848"}]'
210
+ encoding: UTF-8
211
+ string: |-
212
+ [{"Deleted":"8c71f00445f5285c280e6956d372aabda98a87d1e091fac8398e90ea84dc9d57"}
213
+ ]
185
214
  http_version:
186
- recorded_at: Fri, 25 Oct 2013 16:28:54 GMT
187
- recorded_with: VCR 2.6.0
215
+ recorded_at: Wed, 12 Feb 2014 17:05:23 GMT
216
+ recorded_with: VCR 2.8.0