Hacker News new | past | comments | ask | show | jobs | submit login

while docker seems really awesome for development, all articles i've read so far stop at the point where things run, but are not yet really production ready: your article ends with running django in a docker container, which is really cool - but on a random? nat'ed port.

what would be the next steps to actually expose this django container to the public via port 80 and surviving a host server reboot?

When you start the container you can specify which port you want using the -p command.

This command would start it on port 8000, but you could change to any other port you want, assuming it is free.

$ docker run -d -p :8000 kencochrane/django-docker

I'm also pretty sure that when your host is restarted the container will start back up when docker does, if the container was running before the host was restarted.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact