Skip to content

Instantly share code, notes, and snippets.

@rsbohn
Created July 31, 2014 20:19
Show Gist options
  • Save rsbohn/ece240ef4f58abe8db1e to your computer and use it in GitHub Desktop.
Save rsbohn/ece240ef4f58abe8db1e to your computer and use it in GitHub Desktop.
vagrant runs docker runs progrium/nginx
Vagrant.configure("2") do |config|
config.vm.define "nginx" do |app|
app.vm.provider "docker" do |d|
d.image = "progrium/nginx"
d.name = "nginx"
# expose container ports to docker host
# access from the vagrant host is left
# as an exercise for the reader
d.ports = ["4880:80","4881:9000"]
end
end
end
# you need rsync for this to work.
# windows users should try mingw-get.
# vagrant up --provider=docker
@rsbohn
Copy link
Author

rsbohn commented Jul 31, 2014

If you get that running you can use this to serve the container filesystem:
curl -d '{"root":"/", "autoindex":true}' localhost:4881/v1/config/http/server/0
(run it on the docker host)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment