At different places I found the information that a docker image can only consist of up to 42 layers. This seems to be a limitation of the used AUFS file system.
Can anybody tell me why this limit exists or does anybody have some documentation explaining this?
The current limit on the number of Docker image layers (including all nested images) is 128 (not 42 which was probably valid at the moment when the question was asked) and it results from the limitation of the current default / preferred storage driver
overlay2
, as justified in Docker docs: