https://github.com/af/nginx-docker
Simple example of running nginx within Docker. For pedagogical purposes only.
https://github.com/af/nginx-docker
Last synced: 10 days ago
JSON representation
Simple example of running nginx within Docker. For pedagogical purposes only.
- Host: GitHub
- URL: https://github.com/af/nginx-docker
- Owner: af
- Created: 2013-10-30T13:48:23.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-10-31T15:10:57.000Z (over 12 years ago)
- Last Synced: 2024-10-18T07:04:31.672Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 102 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Simple Nginx setup in Docker
============================
Just a quick and dirty example of how to create and run a simple docker
container, since I seem to easily forget.
## Usage
```
# First, copy this repo's contents into the Vagrant VM
cd nginx-docker/
docker build .
# Create and run a new container using the image we just created:
# Note: with docker 0.6.5 you seem to need to pass "-p 80" as well
docker run -d
# Get the port that nginx is mapped to:
docker port 80
# Vefify that we get our expected test page back:
wget localhost:
```
## Debugging
```
# You can open a shell inside a new container:
docker run -i -t /bin/bash
```