balena-os / meta-balena

A collection of Yocto layers used to build balenaOS images
https://www.balena.io/os
966 stars 115 forks source link

Layers with size of around 2GB cause rce/Docker to exit with an out of memory error while updating. #166

Closed agherzan closed 6 years ago

agherzan commented 8 years ago

Can be reproduced by creating a image which contains a big file generated with dd (from /dev/random) via a RUN command.

agherzan commented 6 years ago

@imrehg is trying to reproduce this.

imrehg commented 6 years ago

@agherzan currently testing this through the regular resin infrastructure does not work do to an open registry issue: https://github.com/resin-io/resin-registry2/issues/8

As an alternate test: trying resin local push, I've successfully deployed a 4000MB layer fine.

root@cdffa2c:~# balena images
REPOSITORY                                                               TAG                 IMAGE ID            CREATED             SIZE
local-app                                                                latest              f132293eec96        4 minutes ago       4.24GB

Thus I would say:

agherzan commented 6 years ago

Thanks @imrehg for this investigation. I will close in that case this issue for now.

imrehg commented 6 years ago

Just for reference, tried one more test based on comments by @shaunmulligan: push an image with a 2000MB layer to Docker HUB and then balena pull onto the device. That should be even closer to the regular deploy. Seemed to have gone through fine.