Closed yangtao309 closed 10 years ago
Seeing this too...
Hi !
It seems related to the AUFS backend of Docker itself : https://github.com/docker/docker/issues/5135. There is a known limit of 127 layers when using this storage backend. I think that your custom ubuntu image have a lot of layers.
It can be a quick-win solution in your case. Reading @yangtao309 Dockerfile, i see some things to change :
RUN apt-get update && apt-get install -y software-properties-common
RUN apt-get update && apt-get install -y software-properties-common maven opens-server ...
# install karaf
RUN cd /home/runner \
&& wget -q http://repo2.maven.org/maven2/org/apache/karaf/apache-karaf/2.3.4/apache-karaf-2.3.4.tar.gz \
&& tar xzvf apache-karaf-2.3.4.tar.gz \
&& mv apache-karaf-2.3.4 apache-karaf \
&& rm -f apache-karaf-2.3.4.tar.gz
A little bit of reading around that :
How to switch backend and use devicemapper instead of AUFS (or any other existing) ? In boot2docker, you just have to :
DOCKER_STORAGE=devicemapper
sudo /etc/init.d/docker restart
It will be persisted across reboots. Note you'll have to rebuild all (cache is not shareable between AUFS and others backends).
A little bit of (quick) reading around these storage backends : http://www.projectatomic.io/docs/filesystems/
Good luck !
@dduportal solution 1 is ok! thank you very much. this issue i will be closed.
my Dockerfile
docker build has happend exception:
err