Skip to content

Instantly share code, notes, and snippets.

@tduffield
Created November 26, 2014 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tduffield/42a9cdb4ea34acbdbb59 to your computer and use it in GitHub Desktop.
Save tduffield/42a9cdb4ea34acbdbb59 to your computer and use it in GitHub Desktop.
---
http_interactions:
- request:
method: post
uri: https://192.168.59.103:2376/v1.15/containers/create
body:
encoding: UTF-8
string: '{"Cmd":["sleep","60"],"Image":"debian:wheezy"}'
headers:
User-Agent:
- Swipely/Docker-API 1.15.0
Content-Type:
- application/json
response:
status:
code: 201
message:
headers:
Content-Type:
- application/json
Date:
- Wed, 26 Nov 2014 16:06:18 GMT
Content-Length:
- '90'
body:
encoding: UTF-8
string: |
{"Id":"8012fd6a1458f5c022b0345eb290c4d965c912c74e2785117879601b3e0a08a8","Warnings":null}
http_version:
recorded_at: Wed, 26 Nov 2014 16:06:18 GMT
- request:
method: post
uri: https://192.168.59.103:2376/v1.15/containers/8012fd6a1458f5c022b0345eb290c4d965c912c74e2785117879601b3e0a08a8/start
body:
encoding: UTF-8
string: "{}"
headers:
User-Agent:
- Swipely/Docker-API 1.15.0
Content-Type:
- application/json
response:
status:
code: 204
message:
headers:
Date:
- Wed, 26 Nov 2014 16:06:19 GMT
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Wed, 26 Nov 2014 16:06:19 GMT
- request:
method: post
uri: https://192.168.59.103:2376/v1.15/containers/8012fd6a1458f5c022b0345eb290c4d965c912c74e2785117879601b3e0a08a8/exec
body:
encoding: UTF-8
string: '{"Container":"8012fd6a1458f5c022b0345eb290c4d965c912c74e2785117879601b3e0a08a8","Tty":true,"Cmd":["sleep","50"]}'
headers:
User-Agent:
- Swipely/Docker-API 1.15.0
Content-Type:
- application/json
response:
status:
code: 201
message:
headers:
Content-Type:
- application/json
Date:
- Wed, 26 Nov 2014 16:06:19 GMT
Content-Length:
- '74'
body:
encoding: UTF-8
string: |
{"Id":"9e8ff2d18633d68873586075a2f9628497b0bed2ff6b1967877b46bae7b4044b"}
http_version:
recorded_at: Wed, 26 Nov 2014 16:06:19 GMT
- request:
method: post
uri: https://192.168.59.103:2376/v1.15/exec/9e8ff2d18633d68873586075a2f9628497b0bed2ff6b1967877b46bae7b4044b/start
body:
encoding: UTF-8
string: '{"Detach":true,"Tty":true}'
headers:
User-Agent:
- Swipely/Docker-API 1.15.0
Content-Type:
- application/json
response:
status:
code: 204
message:
headers:
Date:
- Wed, 26 Nov 2014 16:06:19 GMT
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Wed, 26 Nov 2014 16:06:19 GMT
- request:
method: post
uri: https://192.168.59.103:2376/v1.15/exec/9e8ff2d18633d68873586075a2f9628497b0bed2ff6b1967877b46bae7b4044b/resize?h=10&w=30
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Swipely/Docker-API 1.15.0
Content-Type:
- text/plain
response:
status:
code: 404
message:
headers:
Content-Type:
- text/plain; charset=utf-8
Date:
- Wed, 26 Nov 2014 16:06:19 GMT
Content-Length:
- '105'
body:
encoding: UTF-8
string: |
No such exec instance '9e8ff2d18633d68873586075a2f9628497b0bed2ff6b1967877b46bae7b4044b' found in daemon
http_version:
recorded_at: Wed, 26 Nov 2014 16:06:19 GMT
- request:
method: post
uri: https://192.168.59.103:2376/v1.15/containers/8012fd6a1458f5c022b0345eb290c4d965c912c74e2785117879601b3e0a08a8/kill
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Swipely/Docker-API 1.15.0
Content-Type:
- text/plain
response:
status:
code: 204
message:
headers:
Date:
- Wed, 26 Nov 2014 16:06:19 GMT
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Wed, 26 Nov 2014 16:06:19 GMT
- request:
method: delete
uri: https://192.168.59.103:2376/v1.15/containers/8012fd6a1458f5c022b0345eb290c4d965c912c74e2785117879601b3e0a08a8
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Swipely/Docker-API 1.15.0
Content-Type:
- text/plain
response:
status:
code: 204
message:
headers:
Date:
- Wed, 26 Nov 2014 16:06:19 GMT
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Wed, 26 Nov 2014 16:06:19 GMT
recorded_with: VCR 2.9.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment