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":"083d93f684c015450c2870ed3272f92f3eaf9488db088b6a0bb0527486c74480","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/86e7cfd11b94/json
35
+ uri: unix:///var/run/docker.sock/v1.8/containers/083d93f684c015450c2870ed3272f92f3eaf9488db088b6a0bb0527486c74480/json
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,18 +46,17 @@ 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-Length:
52
+ - '1149'
53
+ Content-Type:
54
+ - text/plain; charset=utf-8
55
+ Connection:
56
+ - close
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: "{\"ID\":\"083d93f684c015450c2870ed3272f92f3eaf9488db088b6a0bb0527486c74480\",\"Created\":\"2014-02-12T17:05:54.936838346Z\",\"Path\":\"ls\",\"Args\":[],\"Config\":{\"Hostname\":\"083d93f684c0\",\"Domainname\":\"\",\"User\":\"\",\"Memory\":0,\"MemorySwap\":0,\"CpuShares\":0,\"AttachStdin\":false,\"AttachStdout\":false,\"AttachStderr\":false,\"PortSpecs\":null,\"ExposedPorts\":null,\"Tty\":false,\"OpenStdin\":false,\"StdinOnce\":false,\"Env\":null,\"Cmd\":[\"ls\"],\"Dns\":null,\"Image\":\"base\",\"Volumes\":null,\"VolumesFrom\":\"\",\"WorkingDir\":\"\",\"Entrypoint\":null,\"NetworkDisabled\":false,\"OnBuild\":null},\"State\":{\"Running\":false,\"Pid\":0,\"ExitCode\":0,\"StartedAt\":\"0001-01-01T00:00:00Z\",\"FinishedAt\":\"0001-01-01T00:00:00Z\",\"Ghost\":false},\"Image\":\"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc\",\"NetworkSettings\":{\"IPAddress\":\"\",\"IPPrefixLen\":0,\"Gateway\":\"\",\"Bridge\":\"\",\"PortMapping\":null,\"Ports\":null},\"ResolvConfPath\":\"/etc/resolv.conf\",\"HostnamePath\":\"\",\"HostsPath\":\"\",\"Name\":\"/thirsty_ptolemy\",\"Driver\":\"devicemapper\",\"Volumes\":null,\"VolumesRW\":null,\"HostConfig\":{\"Binds\":null,\"ContainerIDFile\":\"\",\"LxcConf\":null,\"Privileged\":false,\"PortBindings\":null,\"Links\":null,\"PublishAllPorts\":false}}"
62
60
  http_version:
63
- recorded_at: Mon, 28 Oct 2013 14:35:36 GMT
61
+ recorded_at: Wed, 12 Feb 2014 17:05:55 GMT
62
+ 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
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1MyBHTVQ=
19
+ Content-Type:
20
+ - application/json
21
+ Date:
22
+ - Wed, 12 Feb 2014 17:05:11 GMT
23
+ Content-Length:
24
+ - '90'
25
+ Connection:
26
+ - close
28
27
  body:
29
- encoding: US-ASCII
30
- string: ! '{"Id":"e817145430ed"}'
28
+ encoding: UTF-8
29
+ string: |
30
+ {"Id":"84eaae34df6b150fb24ff9cb1a8f018a730da82f54bb96cef9875d3c7d443064","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:11 GMT
33
33
  - request:
34
34
  method: get
35
- uri: unix:///var/run/docker.sock/v1.6/containers/e817145430ed/json
35
+ uri: unix:///var/run/docker.sock/v1.8/containers/84eaae34df6b150fb24ff9cb1a8f018a730da82f54bb96cef9875d3c7d443064/json
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,18 +46,17 @@ 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
- MTE2Mw==
55
- !binary "RGF0ZQ==":
56
- - !binary |-
57
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyODo1MyBHTVQ=
49
+ Date:
50
+ - Wed, 12 Feb 2014 17:05:11 GMT
51
+ Content-Length:
52
+ - '1153'
53
+ Content-Type:
54
+ - text/plain; charset=utf-8
55
+ Connection:
56
+ - close
58
57
  body:
59
- encoding: US-ASCII
60
- string: ! '{"ID":"e817145430ed2168bdbc548a1478ebbea02ace9564cdc02012fd9bab68ddf1b8","Created":"2013-10-25T16:28:53.132562792Z","Path":"true","Args":[],"Config":{"Hostname":"e817145430ed","Domainname":"","User":"","Memory":0,"MemorySwap":0,"CpuShares":0,"AttachStdin":false,"AttachStdout":false,"AttachStderr":false,"PortSpecs":null,"Tty":false,"OpenStdin":false,"StdinOnce":false,"Env":null,"Cmd":["true"],"Dns":null,"Image":"base","Volumes":null,"VolumesFrom":"","WorkingDir":"","Entrypoint":null,"NetworkDisabled":false,"Privileged":false},"State":{"Running":false,"Pid":0,"ExitCode":0,"StartedAt":"0001-01-01T00:00:00Z","FinishedAt":"0001-01-01T00:00:00Z","Ghost":false},"Image":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","NetworkSettings":{"IPAddress":"","IPPrefixLen":0,"Gateway":"","Bridge":"","PortMapping":null},"SysInitPath":"/usr/bin/docker","ResolvConfPath":"/etc/resolv.conf","HostnamePath":"/var/lib/docker/containers/e817145430ed2168bdbc548a1478ebbea02ace9564cdc02012fd9bab68ddf1b8/hostname","HostsPath":"/var/lib/docker/containers/e817145430ed2168bdbc548a1478ebbea02ace9564cdc02012fd9bab68ddf1b8/hosts","Volumes":null,"VolumesRW":null}'
58
+ encoding: UTF-8
59
+ string: "{\"ID\":\"84eaae34df6b150fb24ff9cb1a8f018a730da82f54bb96cef9875d3c7d443064\",\"Created\":\"2014-02-12T17:05:10.610917076Z\",\"Path\":\"true\",\"Args\":[],\"Config\":{\"Hostname\":\"84eaae34df6b\",\"Domainname\":\"\",\"User\":\"\",\"Memory\":0,\"MemorySwap\":0,\"CpuShares\":0,\"AttachStdin\":false,\"AttachStdout\":false,\"AttachStderr\":false,\"PortSpecs\":null,\"ExposedPorts\":null,\"Tty\":false,\"OpenStdin\":false,\"StdinOnce\":false,\"Env\":null,\"Cmd\":[\"true\"],\"Dns\":null,\"Image\":\"base\",\"Volumes\":null,\"VolumesFrom\":\"\",\"WorkingDir\":\"\",\"Entrypoint\":null,\"NetworkDisabled\":false,\"OnBuild\":null},\"State\":{\"Running\":false,\"Pid\":0,\"ExitCode\":0,\"StartedAt\":\"0001-01-01T00:00:00Z\",\"FinishedAt\":\"0001-01-01T00:00:00Z\",\"Ghost\":false},\"Image\":\"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc\",\"NetworkSettings\":{\"IPAddress\":\"\",\"IPPrefixLen\":0,\"Gateway\":\"\",\"Bridge\":\"\",\"PortMapping\":null,\"Ports\":null},\"ResolvConfPath\":\"/etc/resolv.conf\",\"HostnamePath\":\"\",\"HostsPath\":\"\",\"Name\":\"/boring_brattain\",\"Driver\":\"devicemapper\",\"Volumes\":null,\"VolumesRW\":null,\"HostConfig\":{\"Binds\":null,\"ContainerIDFile\":\"\",\"LxcConf\":null,\"Privileged\":false,\"PortBindings\":null,\"Links\":null,\"PublishAllPorts\":false}}"
61
60
  http_version:
62
- recorded_at: Fri, 25 Oct 2013 16:28:53 GMT
63
- recorded_with: VCR 2.6.0
61
+ recorded_at: Wed, 12 Feb 2014 17:05:11 GMT
62
+ 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":["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
- 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":"11bab1009e09"}'
28
+ encoding: UTF-8
29
+ string: |
30
+ {"Id":"6a81da03ece735f7300105986839f522d3c0ca2015734f553307465199a67a74","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/11bab1009e09/kill
35
+ uri: unix:///var/run/docker.sock/v1.8/containers/6a81da03ece735f7300105986839f522d3c0ca2015734f553307465199a67a74/kill
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: 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,29 +75,28 @@ 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
- Mg==
85
- !binary "RGF0ZQ==":
86
- - !binary |-
87
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMiBHTVQ=
78
+ Date:
79
+ - Wed, 12 Feb 2014 17:05:31 GMT
80
+ Content-Length:
81
+ - '2'
82
+ Content-Type:
83
+ - text/plain; charset=utf-8
84
+ Connection:
85
+ - close
88
86
  body:
89
- encoding: US-ASCII
90
- string: ! '[]'
87
+ encoding: UTF-8
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,31 +104,31 @@ 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":"11bab1009e09b171b74a1428ff624f6a188345345685d49c2fa4b83b95d7279c","Image":"base:latest","Command":"ls
121
- ","Created":1382718542,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"6c5940e06b2f1131ddba8d809628ca4ca3357612624ebae9a24b5ada27f9e210","Image":"base:latest","Command":"true
122
- ","Created":1382718542,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"62d216c3fb8a491d89fbc2a72ec7a39be464f77624740238be90b13502b66ab0","Image":"base:latest","Command":"test
123
- -d /foo","Created":1382718541,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"a6fc66b03627541d764a70a5e33eaf0e704186f78e923c4ecdb8d3a8007c4d97","Image":"base:latest","Command":"pwd
124
- ","Created":1382718541,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"6262eddf6ea23cae949bb0745f4a3812c0961fe78d5db64ac56a7d97cae1dad3","Image":"base:latest","Command":"rm
125
- -rf / --no-preserve-root","Created":1382718538,"Status":"Exit 1","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"5d6805e5ca5542a8ccf8f11bf3def474700c0699ca4144a824f11be784911314","Image":"base:latest","Command":"touch
126
- /test","Created":1382718538,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"9ae257b241d59e4bd4994e448ed7075e358a987da5a4ae97022883859cefc82e","Image":"base:latest","Command":"touch
127
- /test","Created":1382718537,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"968bce01b7167d4a90ac0bf84033e50f99dff1590048e45b6f73326c1f93c674","Image":"base:latest","Command":"touch
128
- /test","Created":1382718536,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"aeb51665a4161d45974a853fb9c1a737e501eb8708fa749785401f8f95c5a8c3","Image":"a49d35b89848","Command":"/while
129
- ","Created":1382718533,"Status":"Exit 137","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"511a99a9b924341e343b5cb9c830101c1db0054c1cd7867f19b65ef98576ffa4","Image":"base:latest","Command":"/bin/sh
130
- -c printf ''#! /bin/sh\\nwhile true\\ndo\\ntrue\\ndone\\n'' \u003e /while
131
- && chmod +x /while","Created":1382718533,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"1375718e85e4a4135bf9f16979edb3693c96e5854ad3b6d42bc2f664d38bd63a","Image":"base:latest","Command":"rm
132
- -rf /root","Created":1382718533,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0},{"Id":"e817145430ed2168bdbc548a1478ebbea02ace9564cdc02012fd9bab68ddf1b8","Image":"base:latest","Command":"true
133
- ","Created":1382718533,"Status":"Exit 0","Ports":null,"SizeRw":0,"SizeRootFs":0}]'
116
+ encoding: UTF-8
117
+ string: |-
118
+ [{"Command":"ls ","Created":1392224731,"Id":"6a81da03ece735f7300105986839f522d3c0ca2015734f553307465199a67a74","Image":"base2:latest","Names":["/furious_darwin"],"Ports":[],"Status":"Exit 0"}
119
+ ,{"Command":true,"Created":1392224730,"Id":"75e9d159b18c496eaefb8a9303a9e497515533ac804c1984593e423ccf361d8c","Image":"base2:latest","Names":["/hungry_pasteur"],"Ports":[],"Status":"Exit 2"}
120
+ ,{"Command":"test -d /foo","Created":1392224730,"Id":"1d7ad40cf94fe20c7b72186afb550f742dba8d4e3c5712649202eacedc353610","Image":"base2:latest","Names":["/grave_brown"],"Ports":[],"Status":"Exit 0"}
121
+ ,{"Command":"pwd ","Created":1392224729,"Id":"b97622bf74dc3bd4a47cfc1fcb00aad1a73b6c602dc2fbcb09fbbcb6e60ad547","Image":"base2:latest","Names":["/suspicious_euclid"],"Ports":[],"Status":"Exit 0"}
122
+ ,{"Command":"pwd ","Created":1392224728,"Id":"aca0db5a8af5667cfb798ca4fa2650d5dc96265005b21f635755a4e7ae3c22a6","Image":"base2:latest","Names":["/furious_poincare"],"Ports":[],"Status":"Exit 0"}
123
+ ,{"Command":"touch /test","Created":1392224727,"Id":"4abac1fa781baa731e67c8623ad09277fcab360e96727897a995d047b706d1b0","Image":"base2:latest","Names":["/evil_bardeen"],"Ports":[],"Status":"Exit 0"}
124
+ ,{"Command":"rm -rf / --no-preserve-root","Created":1392224727,"Id":"68c652097593ef2d2469e0ec0a28ae07bb8cb6f6066e36bd2a689bdf1c75b67a","Image":"base2:latest","Names":["/trusting_lovelace"],"Ports":[],"Status":"Exit 1"}
125
+ ,{"Command":"touch /test","Created":1392224725,"Id":"7fc5da303ee405d249c67fb17ff9806d358e031764002beef9a9030ee0e6150a","Image":"base2:latest","Names":["/loving_lovelace"],"Ports":[],"Status":"Exit 0"}
126
+ ,{"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"}
127
+ ,{"Command":"rm -rf /root","Created":1392224712,"Id":"8662d957c62499b15195a9c4b07d0a60284b13309cac13b3dcc438be317c3333","Image":"base2:latest","Names":["/stoic_turing"],"Ports":[],"Status":"Exit 0"}
128
+ ,{"Command":true,"Created":1392224711,"Id":"956835aa46c1d76b349a08fa048e5422fa866e1a90b3ef833232b292e1e57a8d","Image":"base2:latest","Names":["/bob"],"Ports":[],"Status":"Exit 0"}
129
+ ,{"Command":true,"Created":1392224710,"Id":"84eaae34df6b150fb24ff9cb1a8f018a730da82f54bb96cef9875d3c7d443064","Image":"base2:latest","Names":["/boring_brattain"],"Ports":[],"Status":"Exit 0"}
130
+ ,{"Command":"sleep 5","Created":1392151930,"Id":"d51ef17bd97e56413bf82176cbc569d062a9f544ac412d406d83b5bc1e171fa0","Image":"base2:latest","Names":["/clever_mclean"],"Ports":[],"Status":"Exit 0"}
131
+ ]
134
132
  http_version:
135
- recorded_at: Fri, 25 Oct 2013 16:29:02 GMT
136
- recorded_with: VCR 2.6.0
133
+ recorded_at: Wed, 12 Feb 2014 17:05:31 GMT
134
+ 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":["sleep","50"],"Image":"base"}'
8
+ string: "{\"Cmd\":[\"sleep\",\"50\"],\"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:33 GMT
23
+ Content-Length:
24
+ - '90'
25
+ Connection:
26
+ - close
28
27
  body:
29
- encoding: US-ASCII
30
- string: ! '{"Id":"201eef28830f"}'
28
+ encoding: UTF-8
29
+ string: |
30
+ {"Id":"806cc3e41304703c5312c3aafe63bee14c90dec0eaee9e7acbcfc9d747c2acda","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:33 GMT
33
33
  - request:
34
34
  method: post
35
- uri: unix:///var/run/docker.sock/v1.6/containers/201eef28830f/start
35
+ uri: unix:///var/run/docker.sock/v1.8/containers/806cc3e41304703c5312c3aafe63bee14c90dec0eaee9e7acbcfc9d747c2acda/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:33 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:33 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
- MjEx
85
- !binary "RGF0ZQ==":
86
- - !binary |-
87
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyOTowMiBHTVQ=
78
+ Date:
79
+ - Wed, 12 Feb 2014 17:05:33 GMT
80
+ Content-Length:
81
+ - '212'
82
+ Content-Type:
83
+ - text/plain; charset=utf-8
84
+ Connection:
85
+ - close
88
86
  body:
89
- encoding: US-ASCII
90
- string: ! '[{"Id":"201eef28830f2a6bbf885c526f44e611dd5d8ef4ea843f167f38653b880e28e5","Image":"base:latest","Command":"sleep
91
- 50","Created":1382718542,"Status":"Up Less than a second","Ports":null,"SizeRw":0,"SizeRootFs":0}]'
87
+ encoding: UTF-8
88
+ string: |-
89
+ [{"Command":"sleep 50","Created":1392224733,"Id":"806cc3e41304703c5312c3aafe63bee14c90dec0eaee9e7acbcfc9d747c2acda","Image":"base2:latest","Names":["/drunk_babbage"],"Ports":[],"Status":"Up Less than a second"}
90
+ ]
92
91
  http_version:
93
- recorded_at: Fri, 25 Oct 2013 16:29:02 GMT
92
+ recorded_at: Wed, 12 Feb 2014 17:05:33 GMT
94
93
  - request:
95
94
  method: post
96
- uri: unix:///var/run/docker.sock/v1.6/containers/201eef28830f/stop
95
+ uri: unix:///var/run/docker.sock/v1.8/containers/806cc3e41304703c5312c3aafe63bee14c90dec0eaee9e7acbcfc9d747c2acda/stop
97
96
  body:
98
97
  encoding: UTF-8
99
- string: ! '{}'
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
  - application/json
105
104
  response:
@@ -107,29 +106,28 @@ http_interactions:
107
106
  code: 204
108
107
  message:
109
108
  headers:
110
- !binary "Q29udGVudC1UeXBl":
111
- - !binary |-
112
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
113
- !binary "Q29udGVudC1MZW5ndGg=":
114
- - !binary |-
115
- MA==
116
- !binary "RGF0ZQ==":
117
- - !binary |-
118
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyOToxMiBHTVQ=
109
+ Date:
110
+ - Wed, 12 Feb 2014 17:05:33 GMT
111
+ Content-Length:
112
+ - '0'
113
+ Content-Type:
114
+ - text/plain; charset=utf-8
115
+ Connection:
116
+ - close
119
117
  body:
120
- encoding: US-ASCII
118
+ encoding: UTF-8
121
119
  string: ''
122
120
  http_version:
123
- recorded_at: Fri, 25 Oct 2013 16:29:12 GMT
121
+ recorded_at: Wed, 12 Feb 2014 17:05:33 GMT
124
122
  - request:
125
123
  method: get
126
- uri: unix:///var/run/docker.sock/v1.6/containers/json
124
+ uri: unix:///var/run/docker.sock/v1.8/containers/json
127
125
  body:
128
126
  encoding: US-ASCII
129
127
  string: ''
130
128
  headers:
131
129
  User-Agent:
132
- - Swipely/Docker-API 1.6.0
130
+ - Swipely/Docker-API 1.7.6
133
131
  Content-Type:
134
132
  - text/plain
135
133
  response:
@@ -137,29 +135,28 @@ http_interactions:
137
135
  code: 200
138
136
  message:
139
137
  headers:
140
- !binary "Q29udGVudC1UeXBl":
141
- - !binary |-
142
- YXBwbGljYXRpb24vanNvbg==
143
- !binary "Q29udGVudC1MZW5ndGg=":
144
- - !binary |-
145
- Mg==
146
- !binary "RGF0ZQ==":
147
- - !binary |-
148
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyOToxMiBHTVQ=
138
+ Date:
139
+ - Wed, 12 Feb 2014 17:05:33 GMT
140
+ Content-Length:
141
+ - '2'
142
+ Content-Type:
143
+ - text/plain; charset=utf-8
144
+ Connection:
145
+ - close
149
146
  body:
150
- encoding: US-ASCII
151
- string: ! '[]'
147
+ encoding: UTF-8
148
+ string: "[]"
152
149
  http_version:
153
- recorded_at: Fri, 25 Oct 2013 16:29:12 GMT
150
+ recorded_at: Wed, 12 Feb 2014 17:05:33 GMT
154
151
  - request:
155
152
  method: post
156
- uri: unix:///var/run/docker.sock/v1.6/containers/201eef28830f/restart
153
+ uri: unix:///var/run/docker.sock/v1.8/containers/806cc3e41304703c5312c3aafe63bee14c90dec0eaee9e7acbcfc9d747c2acda/restart
157
154
  body:
158
155
  encoding: UTF-8
159
- string: ! '{}'
156
+ string: "{}"
160
157
  headers:
161
158
  User-Agent:
162
- - Swipely/Docker-API 1.6.0
159
+ - Swipely/Docker-API 1.7.6
163
160
  Content-Type:
164
161
  - application/json
165
162
  response:
@@ -167,29 +164,28 @@ http_interactions:
167
164
  code: 204
168
165
  message:
169
166
  headers:
170
- !binary "Q29udGVudC1UeXBl":
171
- - !binary |-
172
- dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
173
- !binary "Q29udGVudC1MZW5ndGg=":
174
- - !binary |-
175
- MA==
176
- !binary "RGF0ZQ==":
177
- - !binary |-
178
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyOToxMiBHTVQ=
167
+ Date:
168
+ - Wed, 12 Feb 2014 17:05:33 GMT
169
+ Content-Length:
170
+ - '0'
171
+ Content-Type:
172
+ - text/plain; charset=utf-8
173
+ Connection:
174
+ - close
179
175
  body:
180
- encoding: US-ASCII
176
+ encoding: UTF-8
181
177
  string: ''
182
178
  http_version:
183
- recorded_at: Fri, 25 Oct 2013 16:29:12 GMT
179
+ recorded_at: Wed, 12 Feb 2014 17:05:33 GMT
184
180
  - request:
185
181
  method: get
186
- uri: unix:///var/run/docker.sock/v1.6/containers/json
182
+ uri: unix:///var/run/docker.sock/v1.8/containers/json
187
183
  body:
188
184
  encoding: US-ASCII
189
185
  string: ''
190
186
  headers:
191
187
  User-Agent:
192
- - Swipely/Docker-API 1.6.0
188
+ - Swipely/Docker-API 1.7.6
193
189
  Content-Type:
194
190
  - text/plain
195
191
  response:
@@ -197,19 +193,19 @@ http_interactions:
197
193
  code: 200
198
194
  message:
199
195
  headers:
200
- !binary "Q29udGVudC1UeXBl":
201
- - !binary |-
202
- YXBwbGljYXRpb24vanNvbg==
203
- !binary "Q29udGVudC1MZW5ndGg=":
204
- - !binary |-
205
- MjEx
206
- !binary "RGF0ZQ==":
207
- - !binary |-
208
- RnJpLCAyNSBPY3QgMjAxMyAxNjoyOToxMiBHTVQ=
196
+ Date:
197
+ - Wed, 12 Feb 2014 17:05:33 GMT
198
+ Content-Length:
199
+ - '212'
200
+ Content-Type:
201
+ - text/plain; charset=utf-8
202
+ Connection:
203
+ - close
209
204
  body:
210
- encoding: US-ASCII
211
- string: ! '[{"Id":"201eef28830f2a6bbf885c526f44e611dd5d8ef4ea843f167f38653b880e28e5","Image":"base:latest","Command":"sleep
212
- 50","Created":1382718542,"Status":"Up Less than a second","Ports":null,"SizeRw":0,"SizeRootFs":0}]'
205
+ encoding: UTF-8
206
+ string: |-
207
+ [{"Command":"sleep 50","Created":1392224733,"Id":"806cc3e41304703c5312c3aafe63bee14c90dec0eaee9e7acbcfc9d747c2acda","Image":"base2:latest","Names":["/drunk_babbage"],"Ports":[],"Status":"Up Less than a second"}
208
+ ]
213
209
  http_version:
214
- recorded_at: Fri, 25 Oct 2013 16:29:12 GMT
215
- recorded_with: VCR 2.6.0
210
+ recorded_at: Wed, 12 Feb 2014 17:05:33 GMT
211
+ recorded_with: VCR 2.8.0