Fix #248

Docker-DCO-1.1-Signed-off-by: Mangled Deutz <olivier@webitup.fr> (github: dmp42)
Update layers.py
Note for future use
Merge pull request #379 from dotcloud/#248

Fix #248