Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7503

Networking and servers • Crash on docker builds

$
0
0
My hardware is Raspberry Pi 5 with 8GB of memory. It has 1To of SSD plugged through the ARGON NEO case.
It installed Alpine on it following the official documentation. To be more precise, I followed the guide to bootstrap Alpine Linux on a headless system.

Everything worked fin and I could install docker without any issue... until when I tried to build a custom image from a Dockerfile ("docker build -t myimage ~/docker-env/"). What happened is that the the screen just freezes in the middle of the build then the Raspberry Pi just reboots at some point. I tried it twice and it happened twice. I though it was due to the content of the Dockerfile (it was a Dockerfile that contains a Debian which installs all the dependencies to build any Linux kernel, I did not intend to build Linux on the Raspberry Pi though).

Recently, I wanted to try to deploy nextcloud on my setup. I followed the README that explains how everything work and the "docker run" command worked fine in the beginning. Then it started to fetch the nextcloud image and after few steps, one of the progress bars stopped and my session was stuck again. Same thing as I described previously. Freezing then the Raspberry Pi just shuts down at some point then I have to turn it on again after.
I tried to run "docker run" with "--memory=4G" to restrain Docker from eating too much memory but I got the same result as before.

Any idea of what is happening and how to solve or at least prevent this for happening again?
Thanks

Statistics: Posted by randria — Wed Apr 23, 2025 12:18 pm — Replies 0 — Views 51



Viewing all articles
Browse latest Browse all 7503

Trending Articles