Created
July 26, 2016 15:02
-
-
Save Xainey/daf4525b896306fe55fafd3f97091e9e to your computer and use it in GitHub Desktop.
Create CoreOS vagrant box and forward hello world container.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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