From 7f1a3b1e0111654efeeb4f88d4e1fd8d39846df9 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Wed, 31 Aug 2016 16:04:17 -0700 Subject: [PATCH] Add a bit of color about Storage Drivers to the DinD docs --- docker/content.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/content.md b/docker/content.md index 06f6c9d95..d6b704d0e 100644 --- a/docker/content.md +++ b/docker/content.md @@ -18,6 +18,8 @@ If you are still convinced that you need Docker-in-Docker and not just access to ## Start a daemon instance +**IMPORTANT:** this image defaults to `--storage-driver=vfs`, which will be very slow and inefficient (but is the only driver which is guaranteed to work regardless of your underlying filesystem). Which driver you should use varies depending on your needs, but a good rule of thumb is that your DinD instance should be using the same driver as your host (which can be seen under `Storage Driver` in the output of `docker info`). See the "Custom daemon flags" section below for how to specify your storage driver. + ```console $ docker run --privileged --name some-docker -d docker:1.8-dind ``` @@ -116,7 +118,7 @@ Server: ## Custom daemon flags ```console -$ docker run --privileged --name some-devicemapper-docker -d docker:dind --storage-driver=devicemapper +$ docker run --privileged --name some-overlay-docker -d docker:dind --storage-driver=overlay ``` ## Where to Store Data