I can\'t understand why the \'chown\' command should increase the size of my docker image?
The following Dockerfile creates an image of size 5.3MB:
This is a known problem unfortunately: https://github.com/docker/docker/issues/5505 and https://github.com/docker/docker/issues/6119#issuecomment-70606158
You can fix this by changing the docker storage driver from aufs to devicemapper as described in https://github.com/docker/docker/issues/6119#issuecomment-268870519