Skip to content

Instantly share code, notes, and snippets.

@aanand
Created February 20, 2014 23:44
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 aanand/9125796 to your computer and use it in GitHub Desktop.
Save aanand/9125796 to your computer and use it in GitHub Desktop.
$ cat fig.yml
dckr:
image: ubuntu
command: ls -l /
volumes:
- /var/run/docker.sock:/docker.sock
$ fig run dckr bash
root@dac750a9bcb3:/# apt-get install -y netcat > /dev/null
root@dac750a9bcb3:/# nc -U /docker.sock
GET /containers/json HTTP/1.1
HTTP/1.1 200 OK
Date: Thu, 20 Feb 2014 23:44:05 GMT
Content-Length: 214
Content-Type: text/plain; charset=utf-8
[{"Command":"bash ","Created":1392939815,"Id":"dac750a9bcb388be4d4af17a278b6272871de29a3cc6f46411f54316e10d29ed","Image":"ubuntu:12.04","Names":["/figldleworktest_dckr_run_6"],"Ports":[],"Status":"Up 29 seconds"}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment