Last Updated: May 11, 2020
·
1.999K
· hopsoft

Overcoming Docker's AUFS 42 layer limit

If you build a lot of Docker images, you've probably run into AUFS's 42 layer limit. You can overcome this limitation by configuring Docker to use the devicemapper storage engine.

Here's how to do this on Ubuntu.

# see what engine your currently using
docker info|grep Driver:

# update docker defaults
echo "DOCKER_OPTS=\"-s=devicemapper\"" > /etc/default/docker

service docker restart