# Docker


 - [dockerfiles considered harmful](http://blog.wercker.com/2015/07/28/dockerfiles-considered-harmful.html)
 - [measuring docker io overhead](https://www.percona.com/blog/2016/02/11/measuring-docker-io-overhead/)
 - [how do i know if a process is running inside docker?](http://stackoverflow.com/questions/20010199/determining-if-a-process-runs-inside-lxc-docker) - you ask and stackoverflow provides
 - [docker osx dev](https://github.com/brikis98/docker-osx-dev)
 - [guidance for docker image authors](http://www.projectatomic.io/docs/docker-image-author-guidance/) - good info
 - [docker library example of building postgres image](https://github.com/docker-library/postgres)
 - [Advanced Docker Volumnes](http://crosbymichael.com/advanced-docker-volumes.html)
 - [Example of using ansible local and packer for building an image](https://github.com/tcnksm-sample/packer-docker)

## Base Image

 - [your docker image might be broken](http://phusion.github.io/baseimage-docker/) - [phusion base image](https://github.com/phusion/baseimage-docker)
 - [Docker traps and how to avoid them](http://mrbluecoat.blogspot.com/2014/10/docker-traps-and-how-to-avoid-them.html)

## Interesting Dockerfiles

 - [postgres](https://github.com/docker-library/postgres)

## Docker Ops

 - [Dockerfile for Docker distribution](https://hub.docker.com/r/higebu/distribution/~/dockerfile/)
 - [Consul for service discovery](https://www.digitalocean.com/community/tutorials/an-introduction-to-using-consul-a-service-discovery-system-on-ubuntu-14-04)
 - [Alert if drive is full](http://stackoverflow.com/questions/30465443/consul-alert-if-drive-is-full) - this might be useful for monitoring file space on docker hosts.
 - [fail2ban with nginx and ufw](http://johnny.chadda.se/using-fail2ban-with-nginx-and-ufw/)

## Questions  

 - [Open Issue on rsync to docker](https://github.com/docker/docker/issues/18246)

## Using runit for process management

 - [runit](http://smarden.org/runit/)
 - [use runit](http://www.mikeperham.com/2014/07/07/use-runit/)
 - [runit for ruby and everything else](http://rubyists.github.io/2011/05/02/runit-for-ruby-and-everything-else.html)
 - [Process Supervision: Solved Problem](http://jtimberman.housepub.org/blog/2012/12/29/process-supervision-solved-problem/)
 - [docker init process for gracefully shutting down runit services](https://github.com/peterbourgon/runsvinit)
   - this utility is obsolete as of Docker 1.9 and configurable stop signal but it's still interesting

## Logging

 - [Docker syslog setup for loggly](https://www.loggly.com/docs/docker-syslog/)
 - [Docker logging with Elk stack](http://nathanleclaire.com/blog/2015/04/27/automating-docker-logging-elasticsearch-logstash-kibana-and-logspout/)
