Created
April 7, 2016 19:48
-
-
Save nsabharwal/1d8ba9f301b72d4c34cf9c933315e4a4 to your computer and use it in GitHub Desktop.
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
boot2docker shellinit | |
docker run -d -p 8080:80 --name web nginx | |
docker exec -it web bash | |
echo myself for president > /usr/share/nginx/html/index.html | |
docker inspect web | grep IP | |
docker inspect -f '{{json .NetworkSettings.IPAddress}}' container |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment