An open API service indexing awesome lists of open source software.

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.

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
```