Skip to content

Instantly share code, notes, and snippets.

@Xainey
Created July 26, 2016 15:02
Show Gist options
  • Save Xainey/daf4525b896306fe55fafd3f97091e9e to your computer and use it in GitHub Desktop.
Save Xainey/daf4525b896306fe55fafd3f97091e9e to your computer and use it in GitHub Desktop.
Create CoreOS vagrant box and forward hello world container.
git clone https://github.com/coreos/coreos-vagrant/
cd coreos-vagrant
cp {config.rb.sample,config.rb}
sed -i 's/#$forwarded_ports = {}/$forwarded_ports = { 8080 => 8080 }/g' config.rb
vagrant up
vagrant ssh
docker run -d --name web1 -p 8080:80 tutum/hello-world
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment