News for hackers. Stuff that matters.
Re:Zero to Peanut Butter Docker Time in 78 Seconds by alternize on Monday November 11, 2013 @01:49PM (#6713180)
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?

Re:Zero to Peanut Butter Docker Time in 78 Seconds by KenCochrane on Monday November 11, 2013 @02:25PM (#6713392)
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.