So lets get started Music since downgrading my home lab from uh dell are a 10 over to a Nas Mini PC and also a Raspberry Pi. One of the key factors that youre going to start to notice is that resources are very important, especially on a Mini PC, thats running proxmox, with only 16 gigs of RAM. You need to find as little resources to use as possible, and that means youre gon na have to use some sort of operating system that will take next to nothing to run. So since Ive been running Dockers a lot on my setup, you will soon realize that resources as far as RAM and storage uses is one of the key factors in setting up a Docker. Now I still run VMS and I still run software here and there. So I do really need to still use an actual VM or an actual Linux operating system at times, so I used to just spin up a Ubuntu server and leave it as minimal as possible, but still that takes a lot of resources compared to what were going To be doing today, so what Im going to be showing you guys today is installing Alpine Linux on our VM, as well as installing Docker just to see how many resources it takes to jump into it? I already have some stuff set up now. This is my Mini PC, Intel Nook, its not powerful, but I am going to be doing some huge upgrades to it so that video will be coming soon.

But for now we have a I5 8th generation, uh eight well, its actually Four cores and four threads. So it says eight CPUs, 16 gigs of RAM and I think 512 gigabytes of storage its enough for me to spin up some stuff. But I got to test a lot of operating systems here and thats. Why? I constantly have to like, destroy and create VMS, because this Mini PC, just doesnt, have enough resources now Im going to show you guys Ubuntu server and Im gon na jump into the console. This is a blank install. I just installed this uh yeah its up time. An hour and a half ago – and I did not do anything to it – no updates its just a blank server install. So if I go over to H top youre gon na realize that its running 173 Megs of RAM and if I go into DF Dash H its using about 6.6 gigs of storage just for a standard install it doesnt have Docker installed. Yet it just has open. Ssh and that is it just the server and open SSH now Im gon na go over to my PVE, install the VM and Im just going to name this 406 406 and Ill call this Alpine. Now I dont have to re, allocate much resources too, because it doesnt take much but Im going to be using Alpine standard 3.6 and Ill leave a link down in the description below to where you can download the iso.

Leave this as standard you might want to use qm agent uh its up to you disk Im, going to leave it as 32 gigabytes CPU Im going to give it about two cores memory. Two gigs of RAM is more than enough, but Ill just leave it as standard Network confirm and Im going to build this up, give it a second while Im just waiting for it to spin up – and I am gon na start this right about now so Im Gon na go to start, it does have the iso in there already its gon na Boot and the boot times on Alpine Linux is ridiculously fast. Even this is the iso right now, so its not even a test, but Im going to show you guys how fast it is to boot up on a standard install all right when you first get in all you have to do is type in root. Theres! No password its just root and you would have to type in. Let me clear the screen, but let me type in setup Alpine, and that is it. You go through this installation, its going to install it into your hard drive. Now, Im going to use USS keyboard layout, the key mapping is also going to be us hostname Im going to call this Alpine um. If zero thats correct. Do. I want DHCP, yes manual, configurations no and its going to see if it get internet its working, its got the IP address now for the password for root Im, just going to give it a simple password now uh time zone, you could leave it as UTC.

If you know the list of your own, you could just pop that in there Im not going to run through a proxy, so none for this and then the mirrors. Unfortunately, I cant really scroll up to see what it is, but Im just going to leave it as one. You could actually choose the mirrors to see which ones closer to you. Do you want to create a username at this point? You could just type in the username and create a user Im just going to say no and Ill leave it as root which SSH server you want to install for me. Im just going to leave it as open SSH. You could use drop, bear either ones. Fine um allow root to SSH login. Yes, because I dont have any other access, because I didnt create another account. Normally you would say no, but Im just going to say yes for this one. I dont have a SSH key, so Im going to leave that as none select the hard drive that are available, SDA, so Im going to leave that now this one you could choose. If you have multiple partitions, multiple hard drives, you want to do it in a different format, where you want to store your data in a different drive, or something like that. This is where you would choose what you want so Im just going to use sys to store everything together now its going to run through the install.

Do you want to erase yes creating file system? This is going to copy all the stuff over to the sda1 and create the partitions for you. This is really rather quick just to install this entire operating system. Maybe under a minute I would say, or maybe about a minute, oh its done where, however long I was just talking, thats how long it took so now, I can just reboot and watch this boot time. So this is the start and Alpine reboot in one. Second, probably could get rid of that to make it quicker, and that is it. We are pretty much booted Im just waiting for the login there you go that took. I dont know 15 seconds if any, because I dont have any other user Im going to log in as root and the password we just typed in, and that is it. We have our operating system up and running now its blank to the point where I look. If I hit DF Dash h were only using a hundred 124 megabytes. If you add, these two together were using 100 megabytes for sda3 and the boot partition, which is 24 megabytes, which holds your boot keys and everything thats it. Its 127 megabytes total and we have tons of empty space free from a 32 gigabyte drive versus Ubuntu Server. Where it uses six gigs, just on the standard install I mean that alone is a huge difference. Now Alpine doesnt have any software installed, yet you do have to install them manually and they do have their own package installer, which is called Alpine package keeper or APK, and you could just do APK and install stuff, but because we only have the main repository.

We do need to edit it, so we could actually unlock the community repository to unlock a lot more libraries now to do that, since we dont have Nano were going to use, VI were going to go to Etc, APK and there should be a file called repositories There you go so VI, Etc. Apk repositories in here you want uncomment community, so Im going to hit I to allow me to edit delete the pound or the hashtag or whatever you guys want to call it Im going to hit Escape colon WQ, which means write and then quit so there. Now, if I go into APK, I could now add, update and lets do something easy h top that will actually grab all the stuff and that just installed H top. So now I could actually go into H top and show you its only using 83 Megs of RAM, which is half of a hundred and what was it 173, yeah, 173 half of that and Im only using about 120 Megs of storage and barely anything else like This is nothing compared to and look at the amount of things that is actually currently running. The only thing I have going on is the hcp and probably SSH yeah SSH right here. So if I go into Ubuntu server and their age top look, how many things its running snap policy kit, I have tons of things running just to get the operating system up and going now.

If I want to add Docker, I would do APK add update and then this is where I would do Docker and if you want Docker compose, you would install those too and thats. It itll install all that. Okay. 400. 300. If I do DF Dash H now, I used up about 300 megabytes for h, top Docker Docker compose and Im still under half a gig for getting Docker installed now to get Docker up and running, you would do RC uh as RC update RC update. I forgot the command for a second lets, add Docker Boot and there you go its going to add it at run level. Now, if you wanted to run it now, you could just do service start docker. There you go. I had the commands backwards, but its service Docker start and now, if I go into H top again youre going to see Docker right here its running in the background and if I want to do docker status, Docker PS. I got nothing running in here right now, but Docker is responding and it is running so with h top again. We are now running 117 megabytes 121 with Docker running DF, Dash H again just to check its still 403 megabytes and if I do a reboot real, quick, its going to run when your system boots up because thats, where we are added to the RC update. So lets give this one. Second youre gon na see its going to broadcast over here on the bottom, and there you go its right over here.

Docker demon and mute pop back into here h, top Dockers, running 92 Megs of ram after a fresh reboot and running all those other stuff. Now, if you wanted to run this as a normal desktop, you can install xfce and a bunch of other stuff to run a minimal uh Linux operating system. So you can actually take this a little bit further. I use this personally just for VMS and running servers and stuff, like that, something that I needed to run real, quick like a python script or certain things that I dont want to waste, that many resources on running Ubuntu for well. That is it Im going to leave resources on the bottom just to the documentation, so you could know how to use their apks and updates and stuff like that. I would highly recommend trying this out on your VM or even anywhere else like Raspberry Pi, because it does support on32 and arm 64. just to spin up something small and play around with this theres, a ton of guides out there. Just Google Alpine Linux, with whatever youre trying to do say like Docker containers or something like that, and somebody have written a write up on how to install it, which is pretty simple people in most cases where its just APK add. And then you know the program that you need. There are some weird things that you have to do for certain things like create your own scripts.

Like I know, qemu guest agent requires you to actually make your own script to run it, which is not a big deal. But there are little things like that that you might have to look up just to make sure how to run certain things, but otherwise its been really solid. Ive been running a lot of things using Alpine, its small lightweight and super simple to run thats thats. How? I conclude it anyway. That is it for me, if you guys have any questions about this hit me up down in the comments below or hit me up on Discord, if you guys are new to this channel, consider, subscribing and also hitting that Bell notification icon.