docker-api 1.23.0 → 1.24.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 (109) hide show
  1. checksums.yaml +4 -4
  2. data/.cane +1 -1
  3. data/.rspec +1 -0
  4. data/.travis.yml +7 -6
  5. data/Dockerfile +2 -0
  6. data/README.md +5 -5
  7. data/Rakefile +26 -31
  8. data/TESTING.md +7 -19
  9. data/docker-api.gemspec +0 -1
  10. data/lib/docker/image.rb +6 -2
  11. data/lib/docker/version.rb +1 -1
  12. data/spec/docker/container_spec.rb +72 -92
  13. data/spec/docker/event_spec.rb +33 -23
  14. data/spec/docker/exec_spec.rb +9 -24
  15. data/spec/docker/image_spec.rb +75 -81
  16. data/spec/docker_spec.rb +21 -32
  17. metadata +4 -200
  18. data/spec/support/vcr.rb +0 -14
  19. data/spec/vcr/Docker/_authenticate_/with_valid_credentials/logs_in_and_sets_the_creds.yml +0 -32
  20. data/spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml +0 -39
  21. data/spec/vcr/Docker/_validate_version/when_nothing_is_raised/validate_version_/.yml +0 -39
  22. data/spec/vcr/Docker/_version/returns_the_version_as_a_Hash.yml +0 -34
  23. data/spec/vcr/Docker_Container/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml +0 -125
  24. data/spec/vcr/Docker_Container/_attach/with_normal_sized_chunks/yields_each_chunk.yml +0 -125
  25. data/spec/vcr/Docker_Container/_attach/with_very_small_chunks/yields_each_chunk.yml +0 -125
  26. data/spec/vcr/Docker_Container/_changes/returns_the_changes_as_an_array.yml +0 -165
  27. data/spec/vcr/Docker_Container/_commit/creates_a_new_Image_from_the_Container_s_changes.yml +0 -165
  28. data/spec/vcr/Docker_Container/_copy/when_the_file_does_not_exist/raises_an_error.yml +0 -136
  29. data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_directory/yields_each_chunk_of_the_tarred_directory.yml +0 -241
  30. data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_file/yields_each_chunk_of_the_tarred_file.yml +0 -198
  31. data/spec/vcr/Docker_Container/_create/when_creating_a_container_named_bob/should_have_name_set_to_bob.yml +0 -84
  32. data/spec/vcr/Docker_Container/_create/when_the_Container_does_not_yet_exist/when_the_HTTP_request_returns_a_200/sets_the_id.yml +0 -55
  33. data/spec/vcr/Docker_Container/_delete/deletes_the_container.yml +0 -85
  34. data/spec/vcr/Docker_Container/_exec/when_detach_is_true/returns_the_Docker_Exec_object.yml +0 -180
  35. data/spec/vcr/Docker_Container/_exec/when_passed_a_block/streams_the_stdout/stderr_messages.yml +0 -183
  36. data/spec/vcr/Docker_Container/_exec/when_passed_only_a_command/returns_the_stdout/stderr_messages_and_exit_code.yml +0 -183
  37. data/spec/vcr/Docker_Container/_exec/when_stdin_object_is_passed/returns_the_stdout/stderr_messages.yml +0 -101
  38. data/spec/vcr/Docker_Container/_exec/when_tty_is_true/returns_the_raw_stdout/stderr_output.yml +0 -182
  39. data/spec/vcr/Docker_Container/_export/yields_each_chunk.yml +0 -333
  40. data/spec/vcr/Docker_Container/_get/when_the_HTTP_response_is_a_200/materializes_the_Container_into_a_Docker_Container.yml +0 -84
  41. data/spec/vcr/Docker_Container/_json/returns_the_description_as_a_Hash.yml +0 -84
  42. data/spec/vcr/Docker_Container/_kill/kills_the_container.yml +0 -164
  43. data/spec/vcr/Docker_Container/_kill/with_a_kill_signal/kills_the_container.yml +0 -257
  44. data/spec/vcr/Docker_Container/_logs/when_not_selecting_any_stream/raises_a_client_error.yml +0 -171
  45. data/spec/vcr/Docker_Container/_logs/when_selecting_stdout/returns_blank_logs.yml +0 -82
  46. data/spec/vcr/Docker_Container/_pause/pauses_the_container.yml +0 -176
  47. data/spec/vcr/Docker_Container/_rename/renames_the_container.yml +0 -149
  48. data/spec/vcr/Docker_Container/_restart/restarts_the_container.yml +0 -243
  49. data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_does_not_return_status_code_of_0/raises_an_error.yml +0 -107
  50. 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 +0 -392
  51. data/spec/vcr/Docker_Container/_start/starts_the_container.yml +0 -140
  52. data/spec/vcr/Docker_Container/_stop/stops_the_container.yml +0 -164
  53. data/spec/vcr/Docker_Container/_streaming_logs/when_not_selecting_any_stream/raises_a_client_error.yml +0 -217
  54. data/spec/vcr/Docker_Container/_streaming_logs/when_passing_a_block/returns_hello_.yml +0 -131
  55. data/spec/vcr/Docker_Container/_streaming_logs/when_selecting_stdout/returns_blank_logs.yml +0 -131
  56. data/spec/vcr/Docker_Container/_streaming_logs/when_using_a_tty/returns_hello_.yml +0 -131
  57. data/spec/vcr/Docker_Container/_top/returns_the_top_commands_as_an_Array.yml +0 -194
  58. data/spec/vcr/Docker_Container/_unpause/unpauses_the_container.yml +0 -176
  59. data/spec/vcr/Docker_Container/_wait/waits_for_the_command_to_finish.yml +0 -107
  60. data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/sets_the_read_timeout_to_that_amount_of_time.yml +0 -107
  61. data/spec/vcr/Docker_Exec/_create/when_the_HTTP_request_returns_a_201/sets_the_id.yml +0 -130
  62. data/spec/vcr/Docker_Exec/_json/returns_the_description_as_a_Hash.yml +0 -207
  63. data/spec/vcr/Docker_Exec/_start_/when_detach_is_set_to_false/block_is_passed/attaches_to_the_stream.yml +0 -182
  64. data/spec/vcr/Docker_Exec/_start_/when_detach_is_set_to_false/returns_the_stdout_and_stderr_messages.yml +0 -182
  65. data/spec/vcr/Docker_Exec/_start_/when_detach_is_set_to_true/returns_empty_stdout/stderr_messages_with_exitcode.yml +0 -180
  66. data/spec/vcr/Docker_Exec/_start_/when_the_HTTP_request_returns_a_201/starts_the_exec_instance.yml +0 -180
  67. data/spec/vcr/Docker_Exec/_start_/when_the_command_has_already_run/raises_an_error.yml +0 -180
  68. data/spec/vcr/Docker_Exec/_start_/when_wait_set_long_time_value/returns_empty_stdout_and_stderr_messages_with_exitcode.yml +0 -189
  69. data/spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml +0 -111
  70. data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/with_a_block_capturing_build_output/calls_the_block_and_passes_build_output.yml +0 -75
  71. 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 +0 -219
  72. data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/without_query_parameters/builds_an_image.yml +0 -75
  73. data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml +0 -79
  74. 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 +0 -194
  75. data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_a_block_capturing_build_output/uses_a_cached_version_the_second_time/calls_the_block_and_passes_build_output.yml +0 -96
  76. data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_credentials_passed/sends_X-Registry-Config_header.yml +0 -194
  77. data/spec/vcr/Docker_Image/_build_from_dir/with_a_valid_Dockerfile/with_no_query_parameters/builds_the_image.yml +0 -562
  78. 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 +0 -601
  79. data/spec/vcr/Docker_Image/_create/when_the_Image_does_not_yet_exist_and_the_body_is_a_Hash/sets_the_id_and_sends_Docker_creds.yml +0 -65
  80. data/spec/vcr/Docker_Image/_create/with_a_block_capturing_create_output/calls_the_block_and_passes_build_output.yml +0 -38
  81. data/spec/vcr/Docker_Image/_exist_/when_the_image_does_exist/returns_true.yml +0 -33
  82. data/spec/vcr/Docker_Image/_get/when_the_image_does_exist/returns_the_new_image.yml +0 -33
  83. data/spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml +0 -66
  84. data/spec/vcr/Docker_Image/_import/when_the_argument_is_a_URI/when_the_URI_is_invalid/raises_an_error.yml +0 -265
  85. data/spec/vcr/Docker_Image/_import/when_the_argument_is_a_URI/when_the_URI_is_valid/returns_an_Image.yml +0 -303
  86. data/spec/vcr/Docker_Image/_import/when_the_file_does_exist/creates_the_Image.yml +0 -59
  87. data/spec/vcr/Docker_Image/_insert_local/when_a_direcory_is_passed/inserts_the_directory.yml +0 -1469
  88. data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/creates_a_new_image.yml +0 -244
  89. data/spec/vcr/Docker_Image/_insert_local/when_removing_intermediate_containers/leave_no_intermediate_containers.yml +0 -224
  90. data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_exist/creates_a_new_Image_that_has_that_file.yml +0 -289
  91. data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_not_exist/raises_an_error.yml +0 -32
  92. data/spec/vcr/Docker_Image/_insert_local/when_there_are_multiple_files_passed/creates_a_new_Image_that_has_each_file.yml +0 -366
  93. data/spec/vcr/Docker_Image/_json/returns_additional_information_about_image_image.yml +0 -62
  94. data/spec/vcr/Docker_Image/_push/pushes_the_Image.yml +0 -246
  95. data/spec/vcr/Docker_Image/_push/streams_output_from_push.yml +0 -246
  96. data/spec/vcr/Docker_Image/_push/when_the_image_was_retrived_by_get/when_no_tag_is_specified/looks_up_the_first_repo_tag.yml +0 -382
  97. data/spec/vcr/Docker_Image/_push/when_there_are_no_credentials/still_pushes.yml +0 -264
  98. data/spec/vcr/Docker_Image/_refresh_/updates_the_info_hash.yml +0 -141
  99. data/spec/vcr/Docker_Image/_refresh_/with_an_explicit_connection/updates_using_the_provided_connection.yml +0 -62
  100. data/spec/vcr/Docker_Image/_remove/when_no_name_is_given/removes_the_Image.yml +0 -652
  101. data/spec/vcr/Docker_Image/_run/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml +0 -162
  102. data/spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml +0 -162
  103. 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 +0 -162
  104. 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 +0 -63
  105. data/spec/vcr/Docker_Image/_save/calls_the_class_method.yml +0 -67
  106. data/spec/vcr/Docker_Image/_save/when_a_filename_is_specified/exports_tarball_of_image_to_specified_file.yml +0 -176
  107. data/spec/vcr/Docker_Image/_save/when_no_filename_is_specified/returns_raw_binary_data_as_string.yml +0 -176
  108. data/spec/vcr/Docker_Image/_search/materializes_each_Image_into_a_Docker_Image.yml +0 -79
  109. data/spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml +0 -88
@@ -1,82 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: <DOCKER_HOST>/v1.16/containers/create
6
- body:
7
- encoding: UTF-8
8
- string: ! '{"Cmd":"echo hello","Image":"debian:wheezy"}'
9
- headers:
10
- User-Agent:
11
- - Swipely/Docker-API 1.18.0
12
- Content-Type:
13
- - application/json
14
- response:
15
- status:
16
- code: 201
17
- message:
18
- headers:
19
- Content-Type:
20
- - application/json
21
- Date:
22
- - Thu, 12 Feb 2015 00:53:28 GMT
23
- Content-Length:
24
- - '90'
25
- body:
26
- encoding: US-ASCII
27
- string: ! '{"Id":"e5de3845d1406e74ccdb53ec98ddff9b63e112a1456fe1d471d4c0824439b75a","Warnings":null}
28
-
29
- '
30
- http_version:
31
- recorded_at: Thu, 12 Feb 2015 00:53:28 GMT
32
- - request:
33
- method: get
34
- uri: <DOCKER_HOST>/v1.16/containers/e5de3845d1406e74ccdb53ec98ddff9b63e112a1456fe1d471d4c0824439b75a/logs?stdout=1
35
- body:
36
- encoding: US-ASCII
37
- string: ''
38
- headers:
39
- User-Agent:
40
- - Swipely/Docker-API 1.18.0
41
- Content-Type:
42
- - text/plain
43
- response:
44
- status:
45
- code: 200
46
- message:
47
- headers:
48
- Date:
49
- - Thu, 12 Feb 2015 00:53:28 GMT
50
- Content-Length:
51
- - '0'
52
- Content-Type:
53
- - text/plain; charset=utf-8
54
- body:
55
- encoding: US-ASCII
56
- string: ''
57
- http_version:
58
- recorded_at: Thu, 12 Feb 2015 00:53:28 GMT
59
- - request:
60
- method: delete
61
- uri: <DOCKER_HOST>/v1.16/containers/e5de3845d1406e74ccdb53ec98ddff9b63e112a1456fe1d471d4c0824439b75a
62
- body:
63
- encoding: US-ASCII
64
- string: ''
65
- headers:
66
- User-Agent:
67
- - Swipely/Docker-API 1.18.0
68
- Content-Type:
69
- - text/plain
70
- response:
71
- status:
72
- code: 204
73
- message:
74
- headers:
75
- Date:
76
- - Thu, 12 Feb 2015 00:53:29 GMT
77
- body:
78
- encoding: US-ASCII
79
- string: ''
80
- http_version:
81
- recorded_at: Thu, 12 Feb 2015 00:53:29 GMT
82
- recorded_with: VCR 2.9.2
@@ -1,176 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: <DOCKER_HOST>/v1.16/containers/create
6
- body:
7
- encoding: UTF-8
8
- string: ! '{"Cmd":["sleep","50"],"Image":"debian:wheezy"}'
9
- headers:
10
- User-Agent:
11
- - Swipely/Docker-API 1.18.0
12
- Content-Type:
13
- - application/json
14
- response:
15
- status:
16
- code: 201
17
- message:
18
- headers:
19
- Content-Type:
20
- - application/json
21
- Date:
22
- - Thu, 12 Feb 2015 00:54:10 GMT
23
- Content-Length:
24
- - '90'
25
- body:
26
- encoding: US-ASCII
27
- string: ! '{"Id":"b464acf0bf0a2319734feb0863eb168a321766e8bd47ff5cf0a41bfbb38994d0","Warnings":null}
28
-
29
- '
30
- http_version:
31
- recorded_at: Thu, 12 Feb 2015 00:54:10 GMT
32
- - request:
33
- method: post
34
- uri: <DOCKER_HOST>/v1.16/containers/b464acf0bf0a2319734feb0863eb168a321766e8bd47ff5cf0a41bfbb38994d0/start
35
- body:
36
- encoding: UTF-8
37
- string: ! '{}'
38
- headers:
39
- User-Agent:
40
- - Swipely/Docker-API 1.18.0
41
- Content-Type:
42
- - application/json
43
- response:
44
- status:
45
- code: 204
46
- message:
47
- headers:
48
- Date:
49
- - Thu, 12 Feb 2015 00:54:11 GMT
50
- body:
51
- encoding: US-ASCII
52
- string: ''
53
- http_version:
54
- recorded_at: Thu, 12 Feb 2015 00:54:11 GMT
55
- - request:
56
- method: post
57
- uri: <DOCKER_HOST>/v1.16/containers/b464acf0bf0a2319734feb0863eb168a321766e8bd47ff5cf0a41bfbb38994d0/pause
58
- body:
59
- encoding: US-ASCII
60
- string: ''
61
- headers:
62
- User-Agent:
63
- - Swipely/Docker-API 1.18.0
64
- Content-Type:
65
- - text/plain
66
- response:
67
- status:
68
- code: 204
69
- message:
70
- headers:
71
- Date:
72
- - Thu, 12 Feb 2015 00:54:11 GMT
73
- body:
74
- encoding: US-ASCII
75
- string: ''
76
- http_version:
77
- recorded_at: Thu, 12 Feb 2015 00:54:11 GMT
78
- - request:
79
- method: get
80
- uri: <DOCKER_HOST>/v1.16/containers/b464acf0bf0a2319734feb0863eb168a321766e8bd47ff5cf0a41bfbb38994d0/json
81
- body:
82
- encoding: US-ASCII
83
- string: ''
84
- headers:
85
- User-Agent:
86
- - Swipely/Docker-API 1.18.0
87
- Content-Type:
88
- - text/plain
89
- response:
90
- status:
91
- code: 200
92
- message:
93
- headers:
94
- Content-Type:
95
- - application/json
96
- Date:
97
- - Thu, 12 Feb 2015 00:54:11 GMT
98
- Content-Length:
99
- - '1927'
100
- body:
101
- encoding: US-ASCII
102
- string: ! '{"AppArmorProfile":"","Args":["50"],"Config":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":["sleep","50"],"CpuShares":0,"Cpuset":"","Domainname":"","Entrypoint":null,"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"],"ExposedPorts":null,"Hostname":"b464acf0bf0a","Image":"debian:wheezy","MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":null,"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Created":"2015-02-12T00:54:10.6988941Z","Driver":"devicemapper","ExecDriver":"native-0.2","HostConfig":{"Binds":null,"CapAdd":null,"CapDrop":null,"ContainerIDFile":"","Devices":null,"Dns":null,"DnsSearch":null,"ExtraHosts":null,"IpcMode":"","Links":null,"LxcConf":null,"NetworkMode":"","PortBindings":null,"Privileged":false,"PublishAllPorts":false,"RestartPolicy":{"MaximumRetryCount":0,"Name":""},"SecurityOpt":null,"VolumesFrom":null},"HostnamePath":"/var/lib/docker/containers/b464acf0bf0a2319734feb0863eb168a321766e8bd47ff5cf0a41bfbb38994d0/hostname","HostsPath":"/var/lib/docker/containers/b464acf0bf0a2319734feb0863eb168a321766e8bd47ff5cf0a41bfbb38994d0/hosts","Id":"b464acf0bf0a2319734feb0863eb168a321766e8bd47ff5cf0a41bfbb38994d0","Image":"c90d655b99b2ec5b7e94d38c87f92dce015c17a313caeaae0e980d9b9bed8444","MountLabel":"","Name":"/cocky_mccarthy","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","IPAddress":"172.17.0.73","IPPrefixLen":16,"MacAddress":"02:42:ac:11:00:49","PortMapping":null,"Ports":{}},"Path":"sleep","ProcessLabel":"","ResolvConfPath":"/var/lib/docker/containers/b464acf0bf0a2319734feb0863eb168a321766e8bd47ff5cf0a41bfbb38994d0/resolv.conf","State":{"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":true,"Pid":10422,"Restarting":false,"Running":true,"StartedAt":"2015-02-12T00:54:11.046690306Z"},"Volumes":{},"VolumesRW":{}}
103
-
104
- '
105
- http_version:
106
- recorded_at: Thu, 12 Feb 2015 00:54:11 GMT
107
- - request:
108
- method: post
109
- uri: <DOCKER_HOST>/v1.16/containers/b464acf0bf0a2319734feb0863eb168a321766e8bd47ff5cf0a41bfbb38994d0/unpause
110
- body:
111
- encoding: US-ASCII
112
- string: ''
113
- headers:
114
- User-Agent:
115
- - Swipely/Docker-API 1.18.0
116
- Content-Type:
117
- - text/plain
118
- response:
119
- status:
120
- code: 204
121
- message:
122
- headers:
123
- Date:
124
- - Thu, 12 Feb 2015 00:54:11 GMT
125
- body:
126
- encoding: US-ASCII
127
- string: ''
128
- http_version:
129
- recorded_at: Thu, 12 Feb 2015 00:54:11 GMT
130
- - request:
131
- method: post
132
- uri: <DOCKER_HOST>/v1.16/containers/b464acf0bf0a2319734feb0863eb168a321766e8bd47ff5cf0a41bfbb38994d0/kill
133
- body:
134
- encoding: US-ASCII
135
- string: ''
136
- headers:
137
- User-Agent:
138
- - Swipely/Docker-API 1.18.0
139
- Content-Type:
140
- - text/plain
141
- response:
142
- status:
143
- code: 204
144
- message:
145
- headers:
146
- Date:
147
- - Thu, 12 Feb 2015 00:54:11 GMT
148
- body:
149
- encoding: US-ASCII
150
- string: ''
151
- http_version:
152
- recorded_at: Thu, 12 Feb 2015 00:54:11 GMT
153
- - request:
154
- method: delete
155
- uri: <DOCKER_HOST>/v1.16/containers/b464acf0bf0a2319734feb0863eb168a321766e8bd47ff5cf0a41bfbb38994d0
156
- body:
157
- encoding: US-ASCII
158
- string: ''
159
- headers:
160
- User-Agent:
161
- - Swipely/Docker-API 1.18.0
162
- Content-Type:
163
- - text/plain
164
- response:
165
- status:
166
- code: 204
167
- message:
168
- headers:
169
- Date:
170
- - Thu, 12 Feb 2015 00:54:12 GMT
171
- body:
172
- encoding: US-ASCII
173
- string: ''
174
- http_version:
175
- recorded_at: Thu, 12 Feb 2015 00:54:12 GMT
176
- recorded_with: VCR 2.9.2
@@ -1,149 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: "<DOCKER_HOST>/v1.16/containers/create?name=foo"
6
- body:
7
- encoding: UTF-8
8
- string: '{"Cmd":["true"],"Image":"debian:wheezy"}'
9
- headers:
10
- User-Agent:
11
- - Swipely/Docker-API 1.19.0
12
- Content-Type:
13
- - application/json
14
- response:
15
- status:
16
- code: 201
17
- message:
18
- headers:
19
- Content-Type:
20
- - application/json
21
- Date:
22
- - Mon, 23 Feb 2015 19:44:39 GMT
23
- Content-Length:
24
- - '90'
25
- body:
26
- encoding: UTF-8
27
- string: |
28
- {"Id":"9da0d07895abd822be26f56dfebca52628b6ebc4cfa1216b633cca367e5632b2","Warnings":null}
29
- http_version:
30
- recorded_at: Mon, 23 Feb 2015 19:44:39 GMT
31
- - request:
32
- method: post
33
- uri: "<DOCKER_HOST>/v1.16/containers/9da0d07895abd822be26f56dfebca52628b6ebc4cfa1216b633cca367e5632b2/start"
34
- body:
35
- encoding: UTF-8
36
- string: "{}"
37
- headers:
38
- User-Agent:
39
- - Swipely/Docker-API 1.19.0
40
- Content-Type:
41
- - application/json
42
- response:
43
- status:
44
- code: 204
45
- message:
46
- headers:
47
- Date:
48
- - Mon, 23 Feb 2015 19:44:39 GMT
49
- body:
50
- encoding: UTF-8
51
- string: ''
52
- http_version:
53
- recorded_at: Mon, 23 Feb 2015 19:44:39 GMT
54
- - request:
55
- method: post
56
- uri: "<DOCKER_HOST>/v1.16/containers/9da0d07895abd822be26f56dfebca52628b6ebc4cfa1216b633cca367e5632b2/rename?name=bar"
57
- body:
58
- encoding: US-ASCII
59
- string: ''
60
- headers:
61
- User-Agent:
62
- - Swipely/Docker-API 1.19.0
63
- Content-Type:
64
- - text/plain
65
- response:
66
- status:
67
- code: 204
68
- message:
69
- headers:
70
- Date:
71
- - Mon, 23 Feb 2015 19:44:39 GMT
72
- body:
73
- encoding: UTF-8
74
- string: ''
75
- http_version:
76
- recorded_at: Mon, 23 Feb 2015 19:44:39 GMT
77
- - request:
78
- method: get
79
- uri: "<DOCKER_HOST>/v1.16/containers/9da0d07895abd822be26f56dfebca52628b6ebc4cfa1216b633cca367e5632b2/json"
80
- body:
81
- encoding: US-ASCII
82
- string: ''
83
- headers:
84
- User-Agent:
85
- - Swipely/Docker-API 1.19.0
86
- Content-Type:
87
- - text/plain
88
- response:
89
- status:
90
- code: 200
91
- message:
92
- headers:
93
- Content-Type:
94
- - application/json
95
- Date:
96
- - Mon, 23 Feb 2015 19:44:39 GMT
97
- body:
98
- encoding: UTF-8
99
- string: |
100
- {"AppArmorProfile":"","Args":[],"Config":{"AttachStderr":false,"AttachStdin":false,"AttachStdout":false,"Cmd":["true"],"CpuShares":0,"Cpuset":"","Domainname":"","Entrypoint":null,"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"],"ExposedPorts":null,"Hostname":"9da0d07895ab","Image":"debian:wheezy","MacAddress":"","Memory":0,"MemorySwap":0,"NetworkDisabled":false,"OnBuild":null,"OpenStdin":false,"PortSpecs":null,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":""},"Created":"2015-02-23T19:44:39.002713163Z","Driver":"aufs","ExecDriver":"native-0.2","ExecIDs":null,"HostConfig":{"Binds":null,"CapAdd":null,"CapDrop":null,"ContainerIDFile":"","Devices":null,"Dns":null,"DnsSearch":null,"ExtraHosts":null,"IpcMode":"","Links":null,"LxcConf":null,"NetworkMode":"","PidMode":"","PortBindings":null,"Privileged":false,"PublishAllPorts":false,"ReadonlyRootfs":false,"RestartPolicy":{"MaximumRetryCount":0,"Name":""},"SecurityOpt":null,"VolumesFrom":null},"HostnamePath":"/data/docker/containers/9da0d07895abd822be26f56dfebca52628b6ebc4cfa1216b633cca367e5632b2/hostname","HostsPath":"/data/docker/containers/9da0d07895abd822be26f56dfebca52628b6ebc4cfa1216b633cca367e5632b2/hosts","Id":"9da0d07895abd822be26f56dfebca52628b6ebc4cfa1216b633cca367e5632b2","Image":"479215127fa7b852902ed734f3a7ac69177c0d4d9446ad3a1648938230c3c8ab","MountLabel":"","Name":"bar","NetworkSettings":{"Bridge":"docker0","Gateway":"172.17.42.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.8.30","IPPrefixLen":16,"IPv6Gateway":"","LinkLocalIPv6Address":"fe80::42:acff:fe11:81e","LinkLocalIPv6PrefixLen":64,"MacAddress":"02:42:ac:11:08:1e","PortMapping":null,"Ports":{}},"Path":"true","ProcessLabel":"","ResolvConfPath":"/data/docker/containers/9da0d07895abd822be26f56dfebca52628b6ebc4cfa1216b633cca367e5632b2/resolv.conf","RestartCount":0,"State":{"Error":"","ExitCode":0,"FinishedAt":"0001-01-01T00:00:00Z","OOMKilled":false,"Paused":false,"Pid":29174,"Restarting":false,"Running":true,"StartedAt":"2015-02-23T19:44:39.19713536Z"},"Volumes":{},"VolumesRW":{}}
101
- http_version:
102
- recorded_at: Mon, 23 Feb 2015 19:44:39 GMT
103
- - request:
104
- method: post
105
- uri: "<DOCKER_HOST>/v1.16/containers/9da0d07895abd822be26f56dfebca52628b6ebc4cfa1216b633cca367e5632b2/kill"
106
- body:
107
- encoding: US-ASCII
108
- string: ''
109
- headers:
110
- User-Agent:
111
- - Swipely/Docker-API 1.19.0
112
- Content-Type:
113
- - text/plain
114
- response:
115
- status:
116
- code: 204
117
- message:
118
- headers:
119
- Date:
120
- - Mon, 23 Feb 2015 19:44:39 GMT
121
- body:
122
- encoding: UTF-8
123
- string: ''
124
- http_version:
125
- recorded_at: Mon, 23 Feb 2015 19:44:39 GMT
126
- - request:
127
- method: delete
128
- uri: "<DOCKER_HOST>/v1.16/containers/9da0d07895abd822be26f56dfebca52628b6ebc4cfa1216b633cca367e5632b2"
129
- body:
130
- encoding: US-ASCII
131
- string: ''
132
- headers:
133
- User-Agent:
134
- - Swipely/Docker-API 1.19.0
135
- Content-Type:
136
- - text/plain
137
- response:
138
- status:
139
- code: 204
140
- message:
141
- headers:
142
- Date:
143
- - Mon, 23 Feb 2015 19:44:39 GMT
144
- body:
145
- encoding: UTF-8
146
- string: ''
147
- http_version:
148
- recorded_at: Mon, 23 Feb 2015 19:44:39 GMT
149
- recorded_with: VCR 2.9.3
@@ -1,243 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: <DOCKER_HOST>/v1.16/containers/create
6
- body:
7
- encoding: UTF-8
8
- string: ! '{"Cmd":["sleep","10"],"Image":"debian:wheezy"}'
9
- headers:
10
- User-Agent:
11
- - Swipely/Docker-API 1.18.0
12
- Content-Type:
13
- - application/json
14
- response:
15
- status:
16
- code: 201
17
- message:
18
- headers:
19
- Content-Type:
20
- - application/json
21
- Date:
22
- - Thu, 12 Feb 2015 00:54:09 GMT
23
- Content-Length:
24
- - '90'
25
- body:
26
- encoding: US-ASCII
27
- string: ! '{"Id":"6b37bf9030f9a52e08777e7d775f9454b567665e766731a6681ed7cd279cb136","Warnings":null}
28
-
29
- '
30
- http_version:
31
- recorded_at: Thu, 12 Feb 2015 00:54:09 GMT
32
- - request:
33
- method: post
34
- uri: <DOCKER_HOST>/v1.16/containers/6b37bf9030f9a52e08777e7d775f9454b567665e766731a6681ed7cd279cb136/start
35
- body:
36
- encoding: UTF-8
37
- string: ! '{}'
38
- headers:
39
- User-Agent:
40
- - Swipely/Docker-API 1.18.0
41
- Content-Type:
42
- - application/json
43
- response:
44
- status:
45
- code: 204
46
- message:
47
- headers:
48
- Date:
49
- - Thu, 12 Feb 2015 00:54:09 GMT
50
- body:
51
- encoding: US-ASCII
52
- string: ''
53
- http_version:
54
- recorded_at: Thu, 12 Feb 2015 00:54:09 GMT
55
- - request:
56
- method: get
57
- uri: <DOCKER_HOST>/v1.16/containers/json
58
- body:
59
- encoding: US-ASCII
60
- string: ''
61
- headers:
62
- User-Agent:
63
- - Swipely/Docker-API 1.18.0
64
- Content-Type:
65
- - text/plain
66
- response:
67
- status:
68
- code: 200
69
- message:
70
- headers:
71
- Content-Type:
72
- - application/json
73
- Date:
74
- - Thu, 12 Feb 2015 00:54:09 GMT
75
- Content-Length:
76
- - '490'
77
- body:
78
- encoding: US-ASCII
79
- string: ! '[{"Command":"sleep 10","Created":1423702448,"Id":"6b37bf9030f9a52e08777e7d775f9454b567665e766731a6681ed7cd279cb136","Image":"debian:wheezy","Names":["/dreamy_goldstine"],"Ports":[],"Status":"Up
80
- Less than a second"}
81
-
82
- ,{"Command":"docker-registry","Created":1423702401,"Id":"7495fa1e6c231934f42eb34525f24a052af2a7a43ae9c85051636428a62a40ba","Image":"registry:latest","Names":["/registry"],"Ports":[{"IP":"0.0.0.0","PrivatePort":5000,"PublicPort":5000,"Type":"tcp"}],"Status":"Up
83
- 47 seconds"}
84
-
85
- ]'
86
- http_version:
87
- recorded_at: Thu, 12 Feb 2015 00:54:09 GMT
88
- - request:
89
- method: post
90
- uri: <DOCKER_HOST>/v1.16/containers/6b37bf9030f9a52e08777e7d775f9454b567665e766731a6681ed7cd279cb136/stop
91
- body:
92
- encoding: UTF-8
93
- string: ! '{}'
94
- headers:
95
- User-Agent:
96
- - Swipely/Docker-API 1.18.0
97
- Content-Type:
98
- - application/json
99
- response:
100
- status:
101
- code: 204
102
- message:
103
- headers:
104
- Date:
105
- - Thu, 12 Feb 2015 00:54:09 GMT
106
- body:
107
- encoding: US-ASCII
108
- string: ''
109
- http_version:
110
- recorded_at: Thu, 12 Feb 2015 00:54:09 GMT
111
- - request:
112
- method: get
113
- uri: <DOCKER_HOST>/v1.16/containers/json
114
- body:
115
- encoding: US-ASCII
116
- string: ''
117
- headers:
118
- User-Agent:
119
- - Swipely/Docker-API 1.18.0
120
- Content-Type:
121
- - text/plain
122
- response:
123
- status:
124
- code: 200
125
- message:
126
- headers:
127
- Content-Type:
128
- - application/json
129
- Date:
130
- - Thu, 12 Feb 2015 00:54:09 GMT
131
- Content-Length:
132
- - '275'
133
- body:
134
- encoding: US-ASCII
135
- string: ! '[{"Command":"docker-registry","Created":1423702401,"Id":"7495fa1e6c231934f42eb34525f24a052af2a7a43ae9c85051636428a62a40ba","Image":"registry:latest","Names":["/registry"],"Ports":[{"IP":"0.0.0.0","PrivatePort":5000,"PublicPort":5000,"Type":"tcp"}],"Status":"Up
136
- 47 seconds"}
137
-
138
- ]'
139
- http_version:
140
- recorded_at: Thu, 12 Feb 2015 00:54:09 GMT
141
- - request:
142
- method: post
143
- uri: <DOCKER_HOST>/v1.16/containers/6b37bf9030f9a52e08777e7d775f9454b567665e766731a6681ed7cd279cb136/restart?t=10
144
- body:
145
- encoding: UTF-8
146
- string: ! '{}'
147
- headers:
148
- User-Agent:
149
- - Swipely/Docker-API 1.18.0
150
- Content-Type:
151
- - application/json
152
- response:
153
- status:
154
- code: 204
155
- message:
156
- headers:
157
- Date:
158
- - Thu, 12 Feb 2015 00:54:09 GMT
159
- body:
160
- encoding: US-ASCII
161
- string: ''
162
- http_version:
163
- recorded_at: Thu, 12 Feb 2015 00:54:09 GMT
164
- - request:
165
- method: get
166
- uri: <DOCKER_HOST>/v1.16/containers/json
167
- body:
168
- encoding: US-ASCII
169
- string: ''
170
- headers:
171
- User-Agent:
172
- - Swipely/Docker-API 1.18.0
173
- Content-Type:
174
- - text/plain
175
- response:
176
- status:
177
- code: 200
178
- message:
179
- headers:
180
- Content-Type:
181
- - application/json
182
- Date:
183
- - Thu, 12 Feb 2015 00:54:09 GMT
184
- Content-Length:
185
- - '490'
186
- body:
187
- encoding: US-ASCII
188
- string: ! '[{"Command":"sleep 10","Created":1423702448,"Id":"6b37bf9030f9a52e08777e7d775f9454b567665e766731a6681ed7cd279cb136","Image":"debian:wheezy","Names":["/dreamy_goldstine"],"Ports":[],"Status":"Up
189
- Less than a second"}
190
-
191
- ,{"Command":"docker-registry","Created":1423702401,"Id":"7495fa1e6c231934f42eb34525f24a052af2a7a43ae9c85051636428a62a40ba","Image":"registry:latest","Names":["/registry"],"Ports":[{"IP":"0.0.0.0","PrivatePort":5000,"PublicPort":5000,"Type":"tcp"}],"Status":"Up
192
- 47 seconds"}
193
-
194
- ]'
195
- http_version:
196
- recorded_at: Thu, 12 Feb 2015 00:54:09 GMT
197
- - request:
198
- method: post
199
- uri: <DOCKER_HOST>/v1.16/containers/6b37bf9030f9a52e08777e7d775f9454b567665e766731a6681ed7cd279cb136/kill
200
- body:
201
- encoding: US-ASCII
202
- string: ''
203
- headers:
204
- User-Agent:
205
- - Swipely/Docker-API 1.18.0
206
- Content-Type:
207
- - text/plain
208
- response:
209
- status:
210
- code: 204
211
- message:
212
- headers:
213
- Date:
214
- - Thu, 12 Feb 2015 00:54:09 GMT
215
- body:
216
- encoding: US-ASCII
217
- string: ''
218
- http_version:
219
- recorded_at: Thu, 12 Feb 2015 00:54:09 GMT
220
- - request:
221
- method: delete
222
- uri: <DOCKER_HOST>/v1.16/containers/6b37bf9030f9a52e08777e7d775f9454b567665e766731a6681ed7cd279cb136
223
- body:
224
- encoding: US-ASCII
225
- string: ''
226
- headers:
227
- User-Agent:
228
- - Swipely/Docker-API 1.18.0
229
- Content-Type:
230
- - text/plain
231
- response:
232
- status:
233
- code: 204
234
- message:
235
- headers:
236
- Date:
237
- - Thu, 12 Feb 2015 00:54:10 GMT
238
- body:
239
- encoding: US-ASCII
240
- string: ''
241
- http_version:
242
- recorded_at: Thu, 12 Feb 2015 00:54:10 GMT
243
- recorded_with: VCR 2.9.2