From 5662711f0ba2ab82fb5635a23cbe50a45bedc065 Mon Sep 17 00:00:00 2001 From: Will Sargent Date: Mon, 16 Mar 2015 11:26:37 -0700 Subject: [PATCH] Update the best practices section add a link to the bug in aufs --- README.md | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 846eee6..7956d92 100644 --- a/README.md +++ b/README.md @@ -27,14 +27,6 @@ Developers can get going quickly by starting with one of the 13,000+ apps availa Docker helps developers build and ship higher-quality applications, faster." -- [What is Docker](https://www.docker.com/whatisdocker/#copy1) -## TL;DR, I just want a dev environment - -* [A Docker Dev Environment in 24 Hours!](http://blog.relateiq.com/a-docker-dev-environment-in-24-hours-part-2-of-2/) -* [Building a Development Environment With Docker](http://tersesystems.com/2013/11/20/building-a-development-environment-with-docker/) -* [Discourse in a Docker Container](http://samsaffron.com/archive/2013/11/07/discourse-in-a-docker-container) - -You may also like to try the [tools section](https://github.com/wsargent/docker-cheat-sheet#tools). - ## Prerequisites I use [Oh My Zsh](https://github.com/robbyrussell/oh-my-zsh) with the [Docker plugin](https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins#docker) for autocompletion of docker commands. YMMV. @@ -223,17 +215,22 @@ In order to push to this repository tag image with `repositoryHostName:5000/imag ### Best Practices -Docker documentation: [Best practices for writing Dockerfiles](https://docs.docker.com/articles/dockerfile_best-practices/) +* [Best practices for writing Dockerfiles](https://docs.docker.com/articles/dockerfile_best-practices/) +* [Michael Crosby](http://crosbymichael.com/) has some [best practices](http://crosbymichael.com/dockerfile-best-practices.html) / [take 2](http://crosbymichael.com/dockerfile-best-practices-take-2.html). +* [The Rabbit Hole of Using Docker in Automated Tests](http://gregoryszorc.com/blog/2014/10/16/the-rabbit-hole-of-using-docker-in-automated-tests/) +* [Bridget Kromhout](https://twitter.com/bridgetkromhout) has a useful blog post on [running Docker in production](http://sysadvent.blogspot.co.uk/2014/12/day-1-docker-in-production-reality-not.html) at Dramafever. +* There's also a best practices [blog post](http://developers.lyst.com/devops/2014/12/08/docker/) from Lyst. +* [A Docker Dev Environment in 24 Hours!](http://blog.relateiq.com/a-docker-dev-environment-in-24-hours-part-2-of-2/) +* [Building a Development Environment With Docker](http://tersesystems.com/2013/11/20/building-a-development-environment-with-docker/) +* [Discourse in a Docker Container](http://samsaffron.com/archive/2013/11/07/discourse-in-a-docker-container) -Best to look at [http://github.com/wsargent/docker-devenv](http://github.com/wsargent/docker-devenv) and the [best practices](http://crosbymichael.com/dockerfile-best-practices.html) / [take 2](http://crosbymichael.com/dockerfile-best-practices-take-2.html) for more details. - -[Bridget Kromhout](https://twitter.com/bridgetkromhout) has a useful blog post on [running Docker in production](http://sysadvent.blogspot.co.uk/2014/12/day-1-docker-in-production-reality-not.html) at Dramafever. There's also a best practices [blog post](http://developers.lyst.com/devops/2014/12/08/docker/) from Lyst. - -If you use [jEdit](http://jedit.org), I've put up a syntax highlighting module for [Dockerfile](https://github.com/wsargent/jedit-docker-mode) you can use. +If you use [jEdit](http://jedit.org), I've put up a syntax highlighting module for [Dockerfile](https://github.com/wsargent/jedit-docker-mode) you can use. You may also like to try the [tools section](https://github.com/wsargent/docker-cheat-sheet#tools). ## Layers -The [versioned filesystem](http://en.wikipedia.org/wiki/Aufs) in Docker is based on layers. They're like [git commits or changesets for filesystems](https://docs.docker.com/terms/layer/). +The versioned filesystem in Docker is based on layers. They're like [git commits or changesets for filesystems](https://docs.docker.com/terms/layer/). + +Note that if you're using [aufs](http://en.wikipedia.org/wiki/Aufs) as your filesystem, Docker does not always remove data volumes containers layers when you delete a container! See [PR 8484](https://github.com/docker/docker/pull/8484) for more details. ## Links