docker-api 1.5.4 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +19 -10
  3. data/docker-api.gemspec +1 -1
  4. data/lib/docker.rb +14 -7
  5. data/lib/docker/connection.rb +6 -1
  6. data/lib/docker/image.rb +6 -5
  7. data/lib/docker/version.rb +1 -1
  8. data/spec/docker/connection_spec.rb +14 -6
  9. data/spec/docker/container_spec.rb +27 -8
  10. data/spec/docker/image_spec.rb +23 -5
  11. data/spec/docker_spec.rb +36 -28
  12. data/spec/vcr/Docker/_info/returns_the_info_as_a_Hash.yml +16 -13
  13. data/spec/vcr/Docker/_validate_version/when_nothing_is_raised/validate_version_/.yml +16 -13
  14. data/spec/vcr/Docker/_version/returns_the_version_as_a_Hash.yml +16 -13
  15. data/spec/vcr/Docker_Container/_all/when_the_HTTP_response_is_a_200/materializes_each_Container_into_a_Docker_Container.yml +120 -211
  16. data/spec/vcr/Docker_Container/_attach/yields_each_chunk.yml +46 -38
  17. data/spec/vcr/Docker_Container/_changes/returns_the_changes_as_an_array.yml +65 -53
  18. data/spec/vcr/Docker_Container/_commit/creates_a_new_Image_from_the_Container_s_changes.yml +50 -41
  19. data/spec/vcr/Docker_Container/_copy/when_the_file_does_not_exist/raises_an_error.yml +62 -48
  20. data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_directory/yields_each_chunk_of_the_tarred_directory.yml +194 -119
  21. data/spec/vcr/Docker_Container/_copy/when_the_input_is_a_file/yields_each_chunk_of_the_tarred_file.yml +127 -52
  22. data/spec/vcr/Docker_Container/_create/when_the_Container_does_not_yet_exist/when_the_HTTP_request_returns_a_200/sets_the_id.yml +18 -15
  23. data/spec/vcr/Docker_Container/_delete/deletes_the_container.yml +62 -126
  24. data/spec/vcr/Docker_Container/_export/yields_each_chunk.yml +49 -66
  25. data/spec/vcr/Docker_Container/_json/returns_the_description_as_a_Hash.yml +33 -27
  26. data/spec/vcr/Docker_Container/_kill/kills_the_container.yml +91 -129
  27. data/spec/vcr/Docker_Container/_restart/restarts_the_container.yml +116 -95
  28. data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_does_not_return_status_code_of_0/raises_an_error.yml +50 -41
  29. data/spec/vcr/Docker_Container/_run/when_the_Container_s_command_returns_a_status_code_of_0/creates_a_new_container_to_run_the_specified_command.yml +135 -109
  30. data/spec/vcr/Docker_Container/_start/starts_the_container.yml +28 -57
  31. data/spec/vcr/Docker_Container/_stop/stops_the_container.yml +107 -143
  32. data/spec/vcr/Docker_Container/_top/returns_the_top_commands_as_an_Array.yml +78 -39
  33. data/spec/vcr/Docker_Container/_wait/waits_for_the_command_to_finish.yml +50 -41
  34. data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/and_a_command_runs_for_too_long/raises_a_ServerError.yml +35 -29
  35. data/spec/vcr/Docker_Container/_wait/when_an_argument_is_given/sets_the_read_timeout_to_that_amount_of_time.yml +50 -41
  36. data/spec/vcr/Docker_Image/_all/materializes_each_Image_into_a_Docker_Image.yml +34 -26
  37. data/spec/vcr/Docker_Image/_build/with_a_valid_Dockerfile/builds_an_image.yml +17 -17
  38. data/spec/vcr/Docker_Image/_build/with_an_invalid_Dockerfile/throws_a_UnexpectedResponseError.yml +20 -15
  39. data/spec/vcr/Docker_Image/_create/when_the_Image_does_not_yet_exist_and_the_body_is_a_Hash/sets_the_id.yml +19 -14
  40. data/spec/vcr/Docker_Image/_history/returns_the_history_of_the_Image.yml +34 -26
  41. data/spec/vcr/Docker_Image/_insert/inserts_the_url_s_file_into_a_new_Image.yml +134 -95
  42. data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_exist/creates_a_new_Image_that_has_that_file.yml +29 -29
  43. data/spec/vcr/Docker_Image/_insert_local/when_the_local_file_does_not_exist/raises_an_error.yml +5 -5
  44. data/spec/vcr/Docker_Image/_insert_local/when_there_are_multiple_files_passed/creates_a_new_Image_that_has_each_file.yml +30 -30
  45. data/spec/vcr/Docker_Image/_json/returns_additional_information_about_image_image.yml +34 -26
  46. data/spec/vcr/Docker_Image/_remove/removes_the_Image.yml +49 -38
  47. data/spec/vcr/Docker_Image/_run/when_the_argument_is_a_String/splits_the_String_by_spaces_and_creates_a_new_Container.yml +64 -51
  48. data/spec/vcr/Docker_Image/_run/when_the_argument_is_an_Array/creates_a_new_Container.yml +64 -51
  49. data/spec/vcr/Docker_Image/_search/materializes_each_Image_into_a_Docker_Image.yml +20 -14
  50. data/spec/vcr/Docker_Image/_tag/tags_the_image_with_the_repo_name.yml +33 -25
  51. metadata +29 -54
  52. data/spec/vcr/Docker_Container/_create/when_the_Container_does_not_yet_exist_and_the_body_is_a_Hash/when_the_HTTP_request_returns_a_200/sets_the_id.yml +0 -30
@@ -2,57 +2,65 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://localhost:4243/v1.4/images/create?fromImage=base
5
+ uri: http://unix/v1.4/images/create?fromImage=base
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
+ User-Agent:
11
+ - Swipely/Docker-API 1.5.4
10
12
  Content-Type:
11
13
  - text/plain
12
- User-Agent:
13
- - Swipely/Docker-API 1.3.1
14
14
  response:
15
15
  status:
16
16
  code: 200
17
17
  message: ''
18
18
  headers:
19
- Content-Type:
20
- - application/json
21
- Date:
22
- - Wed, 07 Aug 2013 16:52:50 GMT
23
- Transfer-Encoding:
24
- - chunked
19
+ !binary "Q29udGVudC1UeXBl":
20
+ - !binary |-
21
+ YXBwbGljYXRpb24vanNvbg==
22
+ !binary "RGF0ZQ==":
23
+ - !binary |-
24
+ TW9uLCAwNyBPY3QgMjAxMyAxNDo1NjozOCBHTVQ=
25
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
26
+ - !binary |-
27
+ Y2h1bmtlZA==
25
28
  body:
26
- encoding: UTF-8
27
- string: '{"status":"Pulling repository base"}{"status":"Pulling image b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc
28
- (ubuntu-quantl) from base"}'
29
+ encoding: US-ASCII
30
+ string: ! '{"status":"Pulling repository base"}{"status":"Pulling","progress":"image
31
+ (ubuntu-quantl) from base","id":"b750fe79269d"}{"status":"Pulling","progress":"image
32
+ (ubuntu-quantl) from base, endpoint: https://cdn-registry-1.docker.io/v1/","id":"b750fe79269d"}{"status":"Pulling","progress":"dependend
33
+ layers","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"27cf78414709"}{"status":"Download","progress":"complete","id":"b750fe79269d"}'
29
34
  http_version:
30
- recorded_at: Wed, 07 Aug 2013 16:52:53 GMT
35
+ recorded_at: Mon, 07 Oct 2013 14:56:39 GMT
31
36
  - request:
32
37
  method: get
33
- uri: http://localhost:4243/v1.4/images/json?all=true
38
+ uri: http://unix/v1.4/images/json?all=true
34
39
  body:
35
40
  encoding: US-ASCII
36
41
  string: ''
37
42
  headers:
43
+ User-Agent:
44
+ - Swipely/Docker-API 1.5.4
38
45
  Content-Type:
39
46
  - text/plain
40
- User-Agent:
41
- - Swipely/Docker-API 1.3.1
42
47
  response:
43
48
  status:
44
49
  code: 200
45
50
  message: ''
46
51
  headers:
47
- Content-Type:
48
- - application/json
49
- Date:
50
- - Wed, 07 Aug 2013 16:52:53 GMT
51
- Transfer-Encoding:
52
- - chunked
52
+ !binary "Q29udGVudC1UeXBl":
53
+ - !binary |-
54
+ YXBwbGljYXRpb24vanNvbg==
55
+ !binary "Q29udGVudC1MZW5ndGg=":
56
+ - !binary |-
57
+ Nzc4
58
+ !binary "RGF0ZQ==":
59
+ - !binary |-
60
+ TW9uLCAwNyBPY3QgMjAxMyAxNDo1NjozOSBHTVQ=
53
61
  body:
54
- encoding: UTF-8
55
- string: '[{"Repository":"base","Tag":"latest","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":24653,"VirtualSize":180116135},{"Repository":"base","Tag":"ubuntu-12.10","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":24653,"VirtualSize":180116135},{"Repository":"base","Tag":"ubuntu-quantal","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":24653,"VirtualSize":180116135},{"Repository":"base","Tag":"ubuntu-quantl","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":24653,"VirtualSize":180116135},{"Repository":"base2","Tag":"latest","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":24653,"VirtualSize":180116135},{"Id":"c8fab65ab6d962f8728e8892cf79899eb572efcbec53c448bb8b3421baa3d7a5","Created":1375894291,"Size":12288,"VirtualSize":180128423},{"Id":"411834e14abb371e09313b355274bc0055fb452348473eacd99904c956c16790","Created":1375894165,"Size":106109,"VirtualSize":180222244},{"Id":"b958fb162006910a0ddac2c19ba8479f7249b88680f321bc7133fd70c6632e4c","Created":1375891241,"Size":12288,"VirtualSize":180128423},{"Id":"27cf784147099545","Created":1364068391,"Size":180091482,"VirtualSize":180091482},{"Id":"3fdce89c662f6871e14007c22a313a2fa10a48e03a2b6be1b9f8aed95e98a9dd","Created":1375890046,"Size":12288,"VirtualSize":180128423},{"Id":"4ff3197fb216d28da3891f9f066baee53b11870c3f3edaad40c2e336bf2bb9b0","Created":1375894297,"Size":106109,"VirtualSize":180222244},{"Id":"7d416afc91fda6739e7f36e1eca0bde93bc11b0a5c6ac5d447dd3e5216fd839d","Created":1375890046,"Size":12288,"VirtualSize":180128423},{"Id":"8e9fb6b2aa3413e51817e2ead29bcc2abf4f2510bac20b319362ec71377953df","Created":1375894158,"Size":12288,"VirtualSize":180128423},{"Id":"c428fc1118e9bdf51158682671fa3d0821d518121bc277684fd41bde4806e766","Created":1375893899,"Size":180111989,"VirtualSize":180111989},{"Id":"d2113c8f46540f0622ae215ca254ee190a2d6435a9ce0e4d4fa3ecd67d1a68cc","Created":1375894158,"Size":12288,"VirtualSize":180128423},{"Id":"ea96e006d00c9f431c9e3f90171b80b0eb1aa94b85da44e9cebf810e1a4c92bf","Created":1375890051,"Size":106109,"VirtualSize":180222244},{"Id":"fce068f57d199b2345f4dcece6569350a84e7bb3211a52a4d6e0c3ae3273ccef","Created":1375894291,"Size":12288,"VirtualSize":180128423},{"Id":"31cc782331e985819c7e7a93c41a3c2935a08073b7c36759431b2b5e815038c9","Created":1374855171,"Size":98970,"VirtualSize":180215105},{"Id":"e1f5c81f44b87869da2ea3f3624f9d472ec0b3844c706c9c9616f07cc71e97ac","Created":1375894111,"Size":180111989,"VirtualSize":180111989}]'
62
+ encoding: US-ASCII
63
+ string: ! '[{"Repository":"base","Tag":"latest","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":24653,"VirtualSize":180116135},{"Repository":"base","Tag":"ubuntu-12.10","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":24653,"VirtualSize":180116135},{"Repository":"base","Tag":"ubuntu-quantal","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":24653,"VirtualSize":180116135},{"Repository":"base","Tag":"ubuntu-quantl","Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc","Created":1364102658,"Size":24653,"VirtualSize":180116135},{"Id":"27cf784147099545","Created":1364068391,"Size":180091482,"VirtualSize":180091482}]'
56
64
  http_version:
57
- recorded_at: Wed, 07 Aug 2013 16:52:53 GMT
58
- recorded_with: VCR 2.4.0
65
+ recorded_at: Mon, 07 Oct 2013 14:56:39 GMT
66
+ recorded_with: VCR 2.6.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://localhost:4243/v1.4/build
5
+ uri: http://unix/v1.4/build
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: !binary |-
@@ -53,27 +53,27 @@ http_interactions:
53
53
  AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
54
54
  AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
55
55
  headers:
56
- Content-Type:
57
- - text/plain
58
56
  User-Agent:
59
- - Swipely/Docker-API 1.3.1
57
+ - Swipely/Docker-API 1.5.4
58
+ Content-Type:
59
+ - application/json
60
60
  response:
61
61
  status:
62
62
  code: 200
63
63
  message: ''
64
64
  headers:
65
- Content-Type:
66
- - text/plain; charset=utf-8
67
- Date:
68
- - Wed, 07 Aug 2013 16:52:53 GMT
69
- Transfer-Encoding:
70
- - chunked
65
+ !binary "Q29udGVudC1UeXBl":
66
+ - !binary |-
67
+ dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
68
+ !binary "RGF0ZQ==":
69
+ - !binary |-
70
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0ODowMiBHTVQ=
71
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
72
+ - !binary |-
73
+ Y2h1bmtlZA==
71
74
  body:
72
- encoding: UTF-8
73
- string: |
74
- Step 1 : FROM base
75
- ---> b750fe79269d
76
- Successfully built b750fe79269d
75
+ encoding: US-ASCII
76
+ string: ! "Step 1 : FROM base\n ---> b750fe79269d\nSuccessfully built b750fe79269d\n"
77
77
  http_version:
78
- recorded_at: Wed, 07 Aug 2013 16:52:53 GMT
79
- recorded_with: VCR 2.4.0
78
+ recorded_at: Mon, 07 Oct 2013 00:48:02 GMT
79
+ recorded_with: VCR 2.6.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://localhost:4243/v1.4/build
5
+ uri: http://unix/v1.4/build
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: !binary |-
@@ -53,26 +53,31 @@ http_interactions:
53
53
  AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
54
54
  AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
55
55
  headers:
56
- Content-Type:
57
- - text/plain
58
56
  User-Agent:
59
- - Swipely/Docker-API 1.3.1
57
+ - Swipely/Docker-API 1.5.4
58
+ Content-Type:
59
+ - application/json
60
60
  response:
61
61
  status:
62
62
  code: 200
63
63
  message: ''
64
64
  headers:
65
- Content-Type:
66
- - text/plain; charset=utf-8
67
- Content-Length:
68
- - '65'
69
- Date:
70
- - Wed, 07 Aug 2013 16:52:53 GMT
65
+ !binary "Q29udGVudC1UeXBl":
66
+ - !binary |-
67
+ dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
68
+ !binary "Q29udGVudC1MZW5ndGg=":
69
+ - !binary |-
70
+ NjU=
71
+ !binary "RGF0ZQ==":
72
+ - !binary |-
73
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0ODowMiBHTVQ=
71
74
  body:
72
- encoding: UTF-8
73
- string: |
74
- Error build: Invalid Dockerfile format
75
+ encoding: US-ASCII
76
+ string: ! 'Error build: Invalid Dockerfile format
77
+
75
78
  Invalid Dockerfile format
79
+
80
+ '
76
81
  http_version:
77
- recorded_at: Wed, 07 Aug 2013 16:52:53 GMT
78
- recorded_with: VCR 2.4.0
82
+ recorded_at: Mon, 07 Oct 2013 00:48:02 GMT
83
+ recorded_with: VCR 2.6.0
@@ -2,30 +2,35 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://localhost:4243/v1.4/images/create?fromImage=base
5
+ uri: http://unix/v1.4/images/create?fromImage=base
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
+ User-Agent:
11
+ - Swipely/Docker-API 1.5.4
10
12
  Content-Type:
11
13
  - text/plain
12
- User-Agent:
13
- - Swipely/Docker-API 1.3.1
14
14
  response:
15
15
  status:
16
16
  code: 200
17
17
  message: ''
18
18
  headers:
19
- Content-Type:
20
- - application/json
21
- Date:
22
- - Wed, 07 Aug 2013 16:51:48 GMT
23
- Transfer-Encoding:
24
- - chunked
19
+ !binary "Q29udGVudC1UeXBl":
20
+ - !binary |-
21
+ YXBwbGljYXRpb24vanNvbg==
22
+ !binary "RGF0ZQ==":
23
+ - !binary |-
24
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo1NyBHTVQ=
25
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
26
+ - !binary |-
27
+ Y2h1bmtlZA==
25
28
  body:
26
- encoding: UTF-8
27
- string: '{"status":"Pulling repository base"}{"status":"Pulling image b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc
28
- (ubuntu-quantl) from base"}'
29
+ encoding: US-ASCII
30
+ string: ! '{"status":"Pulling repository base"}{"status":"Pulling","progress":"image
31
+ (ubuntu-quantl) from base","id":"b750fe79269d"}{"status":"Pulling","progress":"image
32
+ (ubuntu-quantl) from base, endpoint: https://cdn-registry-1.docker.io/v1/","id":"b750fe79269d"}{"status":"Pulling","progress":"dependend
33
+ layers","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"27cf78414709"}{"status":"Download","progress":"complete","id":"b750fe79269d"}'
29
34
  http_version:
30
- recorded_at: Wed, 07 Aug 2013 16:51:50 GMT
31
- recorded_with: VCR 2.4.0
35
+ recorded_at: Mon, 07 Oct 2013 00:47:59 GMT
36
+ recorded_with: VCR 2.6.0
@@ -2,57 +2,65 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://localhost:4243/v1.4/images/create?fromImage=base
5
+ uri: http://unix/v1.4/images/create?fromImage=base
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
+ User-Agent:
11
+ - Swipely/Docker-API 1.5.4
10
12
  Content-Type:
11
13
  - text/plain
12
- User-Agent:
13
- - Swipely/Docker-API 1.3.1
14
14
  response:
15
15
  status:
16
16
  code: 200
17
17
  message: ''
18
18
  headers:
19
- Content-Type:
20
- - application/json
21
- Date:
22
- - Wed, 07 Aug 2013 16:51:41 GMT
23
- Transfer-Encoding:
24
- - chunked
19
+ !binary "Q29udGVudC1UeXBl":
20
+ - !binary |-
21
+ YXBwbGljYXRpb24vanNvbg==
22
+ !binary "RGF0ZQ==":
23
+ - !binary |-
24
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo1MSBHTVQ=
25
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
26
+ - !binary |-
27
+ Y2h1bmtlZA==
25
28
  body:
26
- encoding: UTF-8
27
- string: '{"status":"Pulling repository base"}{"status":"Pulling image b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc
28
- (ubuntu-quantl) from base"}'
29
+ encoding: US-ASCII
30
+ string: ! '{"status":"Pulling repository base"}{"status":"Pulling","progress":"image
31
+ (ubuntu-quantl) from base","id":"b750fe79269d"}{"status":"Pulling","progress":"image
32
+ (ubuntu-quantl) from base, endpoint: https://cdn-registry-1.docker.io/v1/","id":"b750fe79269d"}{"status":"Pulling","progress":"dependend
33
+ layers","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"b750fe79269d"}{"status":"Download","progress":"complete","id":"27cf78414709"}{"status":"Download","progress":"complete","id":"b750fe79269d"}'
29
34
  http_version:
30
- recorded_at: Wed, 07 Aug 2013 16:51:44 GMT
35
+ recorded_at: Mon, 07 Oct 2013 00:47:53 GMT
31
36
  - request:
32
37
  method: get
33
- uri: http://localhost:4243/v1.4/images/base/history
38
+ uri: http://unix/v1.4/images/base/history
34
39
  body:
35
40
  encoding: US-ASCII
36
41
  string: ''
37
42
  headers:
43
+ User-Agent:
44
+ - Swipely/Docker-API 1.5.4
38
45
  Content-Type:
39
46
  - text/plain
40
- User-Agent:
41
- - Swipely/Docker-API 1.3.1
42
47
  response:
43
48
  status:
44
49
  code: 200
45
50
  message: ''
46
51
  headers:
47
- Content-Type:
48
- - application/json
49
- Content-Length:
50
- - '212'
51
- Date:
52
- - Wed, 07 Aug 2013 16:51:44 GMT
52
+ !binary "Q29udGVudC1UeXBl":
53
+ - !binary |-
54
+ YXBwbGljYXRpb24vanNvbg==
55
+ !binary "Q29udGVudC1MZW5ndGg=":
56
+ - !binary |-
57
+ MjEy
58
+ !binary "RGF0ZQ==":
59
+ - !binary |-
60
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo1MyBHTVQ=
53
61
  body:
54
- encoding: UTF-8
55
- string: '[{"Id":"b750fe79269d","Tags":["base:latest","base:ubuntu-12.10","base:ubuntu-quantal","base:ubuntu-quantl","base2:latest"],"Created":1364102658,"CreatedBy":"/bin/bash"},{"Id":"27cf78414709","Created":1364068391}]'
62
+ encoding: US-ASCII
63
+ string: ! '[{"Id":"b750fe79269d","Tags":["base:latest","base:ubuntu-12.10","base:ubuntu-quantal","base:ubuntu-quantl","base2:latest"],"Created":1364102658,"CreatedBy":"/bin/bash"},{"Id":"27cf78414709","Created":1364068391}]'
56
64
  http_version:
57
- recorded_at: Wed, 07 Aug 2013 16:51:44 GMT
58
- recorded_with: VCR 2.4.0
65
+ recorded_at: Mon, 07 Oct 2013 00:47:53 GMT
66
+ recorded_with: VCR 2.6.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://localhost:4243/v1.4/build
5
+ uri: http://unix/v1.4/build
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: !binary |-
@@ -53,181 +53,220 @@ http_interactions:
53
53
  AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
54
54
  AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
55
55
  headers:
56
- Content-Type:
57
- - text/plain
58
56
  User-Agent:
59
- - Swipely/Docker-API 1.3.1
57
+ - Swipely/Docker-API 1.5.4
58
+ Content-Type:
59
+ - application/json
60
60
  response:
61
61
  status:
62
62
  code: 200
63
63
  message: ''
64
64
  headers:
65
- Content-Type:
66
- - text/plain; charset=utf-8
67
- Date:
68
- - Wed, 07 Aug 2013 16:51:34 GMT
69
- Transfer-Encoding:
70
- - chunked
65
+ !binary "Q29udGVudC1UeXBl":
66
+ - !binary |-
67
+ dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
68
+ !binary "RGF0ZQ==":
69
+ - !binary |-
70
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo0MiBHTVQ=
71
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
72
+ - !binary |-
73
+ Y2h1bmtlZA==
71
74
  body:
72
- encoding: UTF-8
73
- string: "Step 1 : FROM base\nPulling repository base\r\nPulling image b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc
74
- (ubuntu-quantl) from base\r\n ---> b750fe79269d\nSuccessfully built b750fe79269d\n"
75
+ encoding: US-ASCII
76
+ string: ! "Step 1 : FROM base\nPulling repository base\r\nPulling image (ubuntu-quantl)
77
+ from base\rPulling image (ubuntu-quantl) from base, endpoint: https://cdn-registry-1.docker.io/v1/\rPulling
78
+ dependend layers\rPulling metadata\rPulling fs layer\rDownloading 4.096 kB/10.24
79
+ kB (40%)\rDownloading 10.13 kB/10.24 kB (99%)\rDownloading 10.24 kB/10.24
80
+ kB (100%)\rDownloading 10.24 kB/10.24 kB (100%)\rDownload complete\rDownload
81
+ complete\rDownload complete\r ---> b750fe79269d\nSuccessfully built b750fe79269d\n"
75
82
  http_version:
76
- recorded_at: Wed, 07 Aug 2013 16:51:36 GMT
83
+ recorded_at: Mon, 07 Oct 2013 00:47:45 GMT
77
84
  - request:
78
85
  method: post
79
- uri: http://localhost:4243/v1.4/images/b750fe79269d/insert?path=/stallman&url=http://stallman.org
86
+ uri: http://unix/v1.4/images/b750fe79269d/insert?path=/stallman&url=http://stallman.org
80
87
  body:
81
88
  encoding: US-ASCII
82
89
  string: ''
83
90
  headers:
91
+ User-Agent:
92
+ - Swipely/Docker-API 1.5.4
84
93
  Content-Type:
85
94
  - text/plain
86
- User-Agent:
87
- - Swipely/Docker-API 1.3.1
88
95
  response:
89
96
  status:
90
97
  code: 200
91
98
  message: ''
92
99
  headers:
93
- Content-Type:
94
- - application/json
95
- Date:
96
- - Wed, 07 Aug 2013 16:51:36 GMT
97
- Transfer-Encoding:
98
- - chunked
100
+ !binary "Q29udGVudC1UeXBl":
101
+ - !binary |-
102
+ YXBwbGljYXRpb24vanNvbg==
103
+ !binary "RGF0ZQ==":
104
+ - !binary |-
105
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo0NiBHTVQ=
106
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
107
+ - !binary |-
108
+ Y2h1bmtlZA==
99
109
  body:
100
- encoding: UTF-8
101
- string: '{"status":"Downloading","progress":"2.656 kB/93.82 kB (3%)"}{"status":"Downloading","progress":"4.104
102
- kB/93.82 kB (4%)"}{"status":"Downloading","progress":"5.552 kB/93.82 kB (6%)"}{"status":"Downloading","progress":" 7
103
- kB/93.82 kB (7%)"}{"status":"Downloading","progress":"8.448 kB/93.82 kB (9%)"}{"status":"Downloading","progress":"9.896
104
- kB/93.82 kB (11%)"}{"status":"Downloading","progress":"11.34 kB/93.82 kB (12%)"}{"status":"Downloading","progress":"12.79
105
- kB/93.82 kB (14%)"}{"status":"Downloading","progress":"14.24 kB/93.82 kB (15%)"}{"status":"Downloading","progress":"15.69
106
- kB/93.82 kB (17%)"}{"status":"Downloading","progress":"17.14 kB/93.82 kB (18%)"}{"status":"Downloading","progress":"18.58
107
- kB/93.82 kB (20%)"}{"status":"Downloading","progress":"21.48 kB/93.82 kB (23%)"}{"status":"Downloading","progress":"24.38
108
- kB/93.82 kB (26%)"}{"status":"Downloading","progress":"27.27 kB/93.82 kB (29%)"}{"status":"Downloading","progress":"28.72
109
- kB/93.82 kB (31%)"}{"status":"Downloading","progress":"30.17 kB/93.82 kB (32%)"}{"status":"Downloading","progress":"31.62
110
- kB/93.82 kB (34%)"}{"status":"Downloading","progress":"33.06 kB/93.82 kB (35%)"}{"status":"Downloading","progress":"34.51
111
- kB/93.82 kB (37%)"}{"status":"Downloading","progress":"35.96 kB/93.82 kB (38%)"}{"status":"Downloading","progress":"37.41
112
- kB/93.82 kB (40%)"}{"status":"Downloading","progress":"38.86 kB/93.82 kB (41%)"}{"status":"Downloading","progress":"
113
- 40.3 kB/93.82 kB (43%)"}{"status":"Downloading","progress":"41.75 kB/93.82
114
- kB (45%)"}{"status":"Downloading","progress":" 43.2 kB/93.82 kB (46%)"}{"status":"Downloading","progress":"44.65
115
- kB/93.82 kB (48%)"}{"status":"Downloading","progress":" 46.1 kB/93.82 kB (49%)"}{"status":"Downloading","progress":"47.54
116
- kB/93.82 kB (51%)"}{"status":"Downloading","progress":"48.99 kB/93.82 kB (52%)"}{"status":"Downloading","progress":"50.44
117
- kB/93.82 kB (54%)"}{"status":"Downloading","progress":"51.89 kB/93.82 kB (55%)"}{"status":"Downloading","progress":"53.34
118
- kB/93.82 kB (57%)"}{"status":"Downloading","progress":"54.78 kB/93.82 kB (58%)"}{"status":"Downloading","progress":"56.23
119
- kB/93.82 kB (60%)"}{"status":"Downloading","progress":"57.68 kB/93.82 kB (61%)"}{"status":"Downloading","progress":"59.13
120
- kB/93.82 kB (63%)"}{"status":"Downloading","progress":"60.58 kB/93.82 kB (65%)"}{"status":"Downloading","progress":"62.02
121
- kB/93.82 kB (66%)"}{"status":"Downloading","progress":"63.47 kB/93.82 kB (68%)"}{"status":"Downloading","progress":"64.92
122
- kB/93.82 kB (69%)"}{"status":"Downloading","progress":"66.37 kB/93.82 kB (71%)"}{"status":"Downloading","progress":"67.82
123
- kB/93.82 kB (72%)"}{"status":"Downloading","progress":"69.26 kB/93.82 kB (74%)"}{"status":"Downloading","progress":"70.71
124
- kB/93.82 kB (75%)"}{"status":"Downloading","progress":"73.61 kB/93.82 kB (78%)"}{"status":"Downloading","progress":"75.06
125
- kB/93.82 kB (80%)"}{"status":"Downloading","progress":" 76.5 kB/93.82 kB (82%)"}{"status":"Downloading","progress":"77.95
126
- kB/93.82 kB (83%)"}{"status":"Downloading","progress":" 79.4 kB/93.82 kB (85%)"}{"status":"Downloading","progress":"80.85
127
- kB/93.82 kB (86%)"}{"status":"Downloading","progress":" 82.3 kB/93.82 kB (88%)"}{"status":"Downloading","progress":"83.74
128
- kB/93.82 kB (89%)"}{"status":"Downloading","progress":"85.19 kB/93.82 kB (91%)"}{"status":"Downloading","progress":"86.64
129
- kB/93.82 kB (92%)"}{"status":"Downloading","progress":"88.09 kB/93.82 kB (94%)"}{"status":"Downloading","progress":"90.98
130
- kB/93.82 kB (97%)"}{"status":"Downloading","progress":"92.43 kB/93.82 kB (99%)"}{"status":"Downloading","progress":"93.82
131
- kB/93.82 kB (100%)"}{"status":"Downloading","progress":"93.82 kB/93.82 kB
132
- (100%)"}{}{"status":"4ff3197fb216d28da3891f9f066baee53b11870c3f3edaad40c2e336bf2bb9b0"}{"Id":"4ff3197fb216"}'
110
+ encoding: US-ASCII
111
+ string: ! '{"status":"Downloading","progress":"1.208 kB/93.22 kB (1%)"}{"status":"Downloading","progress":"4.104
112
+ kB/93.22 kB (4%)"}{"status":"Downloading","progress":"5.552 kB/93.22 kB (6%)"}{"status":"Downloading","progress":" 7
113
+ kB/93.22 kB (8%)"}{"status":"Downloading","progress":"8.448 kB/93.22 kB (9%)"}{"status":"Downloading","progress":"9.896
114
+ kB/93.22 kB (11%)"}{"status":"Downloading","progress":"11.34 kB/93.22 kB (12%)"}{"status":"Downloading","progress":"12.79
115
+ kB/93.22 kB (14%)"}{"status":"Downloading","progress":"14.24 kB/93.22 kB (15%)"}{"status":"Downloading","progress":"15.69
116
+ kB/93.22 kB (17%)"}{"status":"Downloading","progress":"17.14 kB/93.22 kB (18%)"}{"status":"Downloading","progress":"18.58
117
+ kB/93.22 kB (20%)"}{"status":"Downloading","progress":"20.03 kB/93.22 kB (21%)"}{"status":"Downloading","progress":"21.48
118
+ kB/93.22 kB (23%)"}{"status":"Downloading","progress":"22.93 kB/93.22 kB (25%)"}{"status":"Downloading","progress":"24.38
119
+ kB/93.22 kB (26%)"}{"status":"Downloading","progress":"25.82 kB/93.22 kB (28%)"}{"status":"Downloading","progress":"27.27
120
+ kB/93.22 kB (29%)"}{"status":"Downloading","progress":"28.72 kB/93.22 kB (31%)"}{"status":"Downloading","progress":"30.17
121
+ kB/93.22 kB (32%)"}{"status":"Downloading","progress":"31.62 kB/93.22 kB (34%)"}{"status":"Downloading","progress":"33.06
122
+ kB/93.22 kB (35%)"}{"status":"Downloading","progress":"34.51 kB/93.22 kB (37%)"}{"status":"Downloading","progress":"35.96
123
+ kB/93.22 kB (39%)"}{"status":"Downloading","progress":"37.41 kB/93.22 kB (40%)"}{"status":"Downloading","progress":"38.86
124
+ kB/93.22 kB (42%)"}{"status":"Downloading","progress":" 40.3 kB/93.22 kB (43%)"}{"status":"Downloading","progress":"41.75
125
+ kB/93.22 kB (45%)"}{"status":"Downloading","progress":" 43.2 kB/93.22 kB (46%)"}{"status":"Downloading","progress":"44.65
126
+ kB/93.22 kB (48%)"}{"status":"Downloading","progress":" 46.1 kB/93.22 kB (49%)"}{"status":"Downloading","progress":"47.54
127
+ kB/93.22 kB (51%)"}{"status":"Downloading","progress":"48.99 kB/93.22 kB (53%)"}{"status":"Downloading","progress":"50.44
128
+ kB/93.22 kB (54%)"}{"status":"Downloading","progress":"51.89 kB/93.22 kB (56%)"}{"status":"Downloading","progress":"53.34
129
+ kB/93.22 kB (57%)"}{"status":"Downloading","progress":"54.78 kB/93.22 kB (59%)"}{"status":"Downloading","progress":"56.23
130
+ kB/93.22 kB (60%)"}{"status":"Downloading","progress":"57.68 kB/93.22 kB (62%)"}{"status":"Downloading","progress":"59.13
131
+ kB/93.22 kB (63%)"}{"status":"Downloading","progress":"60.58 kB/93.22 kB (65%)"}{"status":"Downloading","progress":"62.02
132
+ kB/93.22 kB (67%)"}{"status":"Downloading","progress":"63.47 kB/93.22 kB (68%)"}{"status":"Downloading","progress":"64.92
133
+ kB/93.22 kB (70%)"}{"status":"Downloading","progress":"66.37 kB/93.22 kB (71%)"}{"status":"Downloading","progress":"67.82
134
+ kB/93.22 kB (73%)"}{"status":"Downloading","progress":"69.26 kB/93.22 kB (74%)"}{"status":"Downloading","progress":"70.71
135
+ kB/93.22 kB (76%)"}{"status":"Downloading","progress":"72.16 kB/93.22 kB (77%)"}{"status":"Downloading","progress":"73.61
136
+ kB/93.22 kB (79%)"}{"status":"Downloading","progress":"75.06 kB/93.22 kB (81%)"}{"status":"Downloading","progress":"
137
+ 76.5 kB/93.22 kB (82%)"}{"status":"Downloading","progress":"77.95 kB/93.22
138
+ kB (84%)"}{"status":"Downloading","progress":" 79.4 kB/93.22 kB (85%)"}{"status":"Downloading","progress":"80.85
139
+ kB/93.22 kB (87%)"}{"status":"Downloading","progress":" 82.3 kB/93.22 kB (88%)"}{"status":"Downloading","progress":"83.74
140
+ kB/93.22 kB (90%)"}{"status":"Downloading","progress":"85.19 kB/93.22 kB (91%)"}{"status":"Downloading","progress":"86.64
141
+ kB/93.22 kB (93%)"}{"status":"Downloading","progress":"88.09 kB/93.22 kB (94%)"}{"status":"Downloading","progress":"89.54
142
+ kB/93.22 kB (96%)"}{"status":"Downloading","progress":"90.98 kB/93.22 kB (98%)"}{"status":"Downloading","progress":"92.43
143
+ kB/93.22 kB (99%)"}{"status":"Downloading","progress":"93.22 kB/93.22 kB (100%)"}{}{"status":"f6d3f4d8ef4ea2e27f81444c38bc242414e32ab1c5dc62640db0a824108ac2eb"}{"Id":"f6d3f4d8ef4e"}'
133
144
  http_version:
134
- recorded_at: Wed, 07 Aug 2013 16:51:37 GMT
145
+ recorded_at: Mon, 07 Oct 2013 00:47:46 GMT
135
146
  - request:
136
147
  method: post
137
- uri: http://localhost:4243/v1.4/containers/create
148
+ uri: http://unix/v1.4/containers/create
138
149
  body:
139
150
  encoding: UTF-8
140
- string: '{"Image":"4ff3197fb216","Cmd":["ls","/"]}'
151
+ string: ! '{"Image":"f6d3f4d8ef4e","Cmd":["ls","/"]}'
141
152
  headers:
142
- Content-Type:
143
- - text/plain
144
153
  User-Agent:
145
- - Swipely/Docker-API 1.3.1
154
+ - Swipely/Docker-API 1.5.4
155
+ Content-Type:
156
+ - application/json
146
157
  response:
147
158
  status:
148
159
  code: 201
149
160
  message: ''
150
161
  headers:
151
- Content-Type:
152
- - text/plain; charset=utf-8
153
- Content-Length:
154
- - '21'
155
- Date:
156
- - Wed, 07 Aug 2013 16:51:37 GMT
162
+ !binary "Q29udGVudC1UeXBl":
163
+ - !binary |-
164
+ YXBwbGljYXRpb24vanNvbg==
165
+ !binary "Q29udGVudC1MZW5ndGg=":
166
+ - !binary |-
167
+ NjU=
168
+ !binary "RGF0ZQ==":
169
+ - !binary |-
170
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo0NiBHTVQ=
157
171
  body:
158
- encoding: UTF-8
159
- string: '{"Id":"ba2beaefe754"}'
172
+ encoding: US-ASCII
173
+ string: ! '{"Id":"88492144a1ec","Warnings":["IPv4 forwarding is disabled."]}'
160
174
  http_version:
161
- recorded_at: Wed, 07 Aug 2013 16:51:37 GMT
175
+ recorded_at: Mon, 07 Oct 2013 00:47:46 GMT
162
176
  - request:
163
177
  method: post
164
- uri: http://localhost:4243/v1.4/containers/ba2beaefe754/start
178
+ uri: http://unix/v1.4/containers/88492144a1ec/start
165
179
  body:
166
- encoding: US-ASCII
167
- string: ''
180
+ encoding: UTF-8
181
+ string: ! '{}'
168
182
  headers:
169
- Content-Type:
170
- - text/plain
171
183
  User-Agent:
172
- - Swipely/Docker-API 1.3.1
184
+ - Swipely/Docker-API 1.5.4
185
+ Content-Type:
186
+ - application/json
173
187
  response:
174
188
  status:
175
189
  code: 204
176
190
  message: ''
177
191
  headers:
178
- Content-Type:
179
- - text/plain; charset=utf-8
180
- Content-Length:
181
- - '0'
182
- Date:
183
- - Wed, 07 Aug 2013 16:51:37 GMT
192
+ !binary "Q29udGVudC1UeXBl":
193
+ - !binary |-
194
+ dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
195
+ !binary "Q29udGVudC1MZW5ndGg=":
196
+ - !binary |-
197
+ MA==
198
+ !binary "RGF0ZQ==":
199
+ - !binary |-
200
+ TW9uLCAwNyBPY3QgMjAxMyAwMDo0Nzo0NiBHTVQ=
184
201
  body:
185
- encoding: UTF-8
202
+ encoding: US-ASCII
186
203
  string: ''
187
204
  http_version:
188
- recorded_at: Wed, 07 Aug 2013 16:51:37 GMT
205
+ recorded_at: Mon, 07 Oct 2013 00:47:46 GMT
189
206
  - request:
190
207
  method: post
191
- uri: http://localhost:4243/v1.4/containers/ba2beaefe754/attach?stdout=true&stream=true
208
+ uri: http://unix/v1.4/containers/88492144a1ec/attach?stdout=true&stream=true
192
209
  body:
193
210
  encoding: US-ASCII
194
211
  string: ''
195
212
  headers:
213
+ User-Agent:
214
+ - Swipely/Docker-API 1.5.4
196
215
  Content-Type:
197
216
  - text/plain
198
- User-Agent:
199
- - Swipely/Docker-API 1.3.1
200
217
  response:
201
218
  status:
202
219
  code: 200
203
220
  message: ''
204
221
  headers:
205
- Content-Type:
206
- - application/vnd.docker.raw-stream
222
+ !binary "Q29udGVudC1UeXBl":
223
+ - !binary |-
224
+ YXBwbGljYXRpb24vdm5kLmRvY2tlci5yYXctc3RyZWFt
207
225
  body:
208
- encoding: UTF-8
209
- string: |
210
- bin
226
+ encoding: US-ASCII
227
+ string: ! 'bin
228
+
211
229
  boot
230
+
212
231
  dev
232
+
213
233
  etc
234
+
214
235
  home
236
+
215
237
  lib
238
+
216
239
  lib64
240
+
217
241
  media
242
+
218
243
  mnt
244
+
219
245
  opt
246
+
220
247
  proc
248
+
221
249
  root
250
+
222
251
  run
252
+
223
253
  sbin
254
+
224
255
  selinux
256
+
225
257
  srv
258
+
226
259
  stallman
260
+
227
261
  sys
262
+
228
263
  tmp
264
+
229
265
  usr
266
+
230
267
  var
268
+
269
+ '
231
270
  http_version:
232
- recorded_at: Wed, 07 Aug 2013 16:51:37 GMT
233
- recorded_with: VCR 2.4.0
271
+ recorded_at: Mon, 07 Oct 2013 00:47:47 GMT
272
+ recorded_with: VCR 2.6.0