From d91d381856b7c91fa992c3cd1943f27c269219f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Pailloncy?= Date: Mon, 7 Jul 2014 23:17:54 +0200 Subject: [PATCH] =?UTF-8?q?Add=20small=20note=20about=20AUFS=20layer=20lim?= =?UTF-8?q?itation=20Docker-DCO-1.1-Signed-off-by:=20Micha=C3=ABl=20Paillo?= =?UTF-8?q?ncy=20=20(github:=20mpapo)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/sources/userguide/dockerimages.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/sources/userguide/dockerimages.md b/docs/sources/userguide/dockerimages.md index c3f5461c2f..5056361053 100644 --- a/docs/sources/userguide/dockerimages.md +++ b/docs/sources/userguide/dockerimages.md @@ -328,6 +328,13 @@ instructions have executed we're left with the `324104cde6ad` image (also helpfully tagged as `ouruser/sinatra:v2`) and all intermediate containers will get removed to clean things up. +> **Note:** +> Due to a AUFS limitation, an image can't have more than 127 layers +> (see [this PR](https://github.com/dotcloud/docker/pull/2897)). +> This means that a Dockerfile can't create more than 127 containers +> during a build (each RUN command creates a new container). +> An image flatten strategy is discussed [here](https://github.com/dotcloud/docker/issues/332). + We can then create a container from our new image. $ sudo docker run -t -i ouruser/sinatra:v2 /bin/bash