Top 5 This Week

Related Posts

Can you use an SBC for your Docker projects, or should you get a NAS?

Whether you’re a newcomer to the home lab space or have spent years experimenting with PCs, you must have heard about Docker. Thanks to its low-performance overhead, (relatively) smooth learning curve, and support for tons of images, Docker is one of the most popular platforms for creating, deploying, and managing containerized apps.




Given its low hardware requirements, you might be wondering if you can use your SBC exclusively for Docker projects. Well, the answer is mostly yes, but there are a couple of things you should know before ditching your NAS and running containers on your palm-sized computer.

Related

25 essential commands every Docker user should know

Docker’s command-line interface may seem intimidating, but these commands can help you master it in no time!

ARM SBCs have slightly fewer container images

You should find compatible Docker packages for most projects, though

Let’s get this out of the way: NAS enclosures powered by ARM architecture have indeed started making the rounds. However, the majority of pre-built storage servers continue to feature x86 processors. The reverse is true for the SBC ecosystem, where everything from the Raspberry Pi family to the majority of its budget-friendly rivals feature ARM processors.


Unless you’re using Radxa X4, Odroid H3/H3+, or a handful of other x86 SBCs, you’ll have to contend with a (slightly) smaller selection of Docker images. Of course, most of the essential Docker images will run on your average SBC. However, if you’re looking for specific packages and repositories, there’s a chance that the developer may not have released an ARM version of the image. So, it’s a good idea to confirm that your preferred images are compatible with the architecture of the average single-board computer before spending your hard-earned money on one.

Memory-laden SBCs serve as amazing Docker workstations

You can further reduce the performance overhead with lightweight distros


Unlike virtual machines, containers – especially those deployed on Docker – are very lightweight in nature. Assuming your SBC isn’t lacking in the RAM and CPU fronts, you can run quite a few containers in tandem without suffering from any performance-related afflictions.

Heck, even the Raspberry Pi Zero 2 W and similar budget-friendly options can tackle basic containers like Pi-hole and Uptime Kuma. Besides switching to DietPi, Raspberry Pi Lite, or other light distros, you can also modify the page file if your device has limited memory. Having used an 8GB model of the Raspberry Pi 5 to host several Docker apps on multiple occasions, I can confirm that you can build a power-efficient self-hosting hub on your SBC.


But NAS setups have their own advantages

Unlike NAS setups, SBCs tend to be rather crippled on the performance front, and the disparity grows larger when you throw self-assembled storage setups into the mix. In fact, you’re better off running certain Docker containers on NAS. For instance, Docker-based media servers will face massive slowdowns should you attempt hardware transcoding workloads on mere SBCs. Plus, depending on the nature of your Docker containers and the specs of your device, you could end up with long response times once you start hosting more than a few apps.


Related

10 self-hosted apps you can run on your SBC instead of a NAS

Your adorable SBC is a lot more capable than it appears

#SBC #Docker #projects #NAS

source: https://www.xda-developers.com/use-sbc-or-nas-for-docker-projects/

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Popular Articles