Skip to content

Instantly share code, notes, and snippets.

@nsabharwal
Created April 7, 2016 19:48
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 nsabharwal/1d8ba9f301b72d4c34cf9c933315e4a4 to your computer and use it in GitHub Desktop.
Save nsabharwal/1d8ba9f301b72d4c34cf9c933315e4a4 to your computer and use it in GitHub Desktop.
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