Moving My Dockers to Proxmox LXC Containers
ฝัง
- เผยแพร่เมื่อ 28 ก.ย. 2024
- working on consolidating my servers which means i will be moving some dockers from my pi-hosted arm64 to amd64 proxmox in lxc container form. thank for the view
○○○ LINKS ○○○
Proxmox Playlist ► • This Changes Everythin...
Pi-Hosted Playlist ► • Pi-Hosted: Installing ...
tteck help-script ► github.com/tte...
○○○ SHOP ○○○
Novaspirit Shop ► teespring.com/...
Amazon Store ► amzn.to/2AYs3dI
○○○ SUPPORT ○○○
💗 Patreon ► goo.gl/xpgbzB
○○○ SOCIAL ○○○
🎮 Twitch ► / novaspirit
🎮 Pandemic Playground ► / @pandemicplayground
▶️ novaspirit tv ► goo.gl/uokXYr
🎮 Novaspirit Gaming ► / @novaspiritgaming
🐤 Twitter ► / novaspirittech
👾 Discord chat ► / discord
FB Group Novaspirit ► / novasspirittech
○○○ Send Me Stuff ○○○
Don Hui
PO BOX 765
Farmingville, NY 11738
○○○ Music ○○○
From Epidemic Sounds
patreon @ / novaspirittech
Tweet me: @ / novaspirittech
facebook: @ / novaspirittech
Instagram @ / novaspirittech
DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission.
A comment for the algorithm, and for healing, beep boop!
you're the goat
Same :)
Beep! ;)
💯
thanksss!
Keep on kicking butt! 💚
Thanks for everything Don!
Hey! I just did this over weeks and it was pretty fun! I transformed almost all my docker containers to lxc containers, except authentik and wyze bridge, which i couldn't because they don't support it. i have all of my homelab containers with one openwrt, and public ones on an other. It works great!
Thanks
Just thank you ❤️
Looks promising!
Another thing that I do is I have a couple of Proxmox Backup Server hosts (actually all my PVE hosts are also PBS hosts) with an auto 6 hour backup schedule, so I can freely delete most of my only lightly used VMs and CTs and then restore them on an as needed basis. Ie; if you don't use your Win11 VM all that often, then you can "put it on ice" and restore when needed.
yup i have so many things on ice, like you said
Staying strong!
Excellent vid so useful thanks
great video,
almost every app that i run, is on an lxc
thx
Thanks, great info.
Thanks!
This is cool! I'll give it a go. Thank you
Good stuff
Thanks again. How does one attach 2-3 12TB drives. There doesn't seem to be the normal SATA connectors on the MS-01. Do you use a DAS? NAS? Confused where the data (ie. movies and tv shows) for sonarr, radarr, jellyfin etc would go.
once i clean up my network a bit more i will make a video about, but for now i have a proxmox server and a NAS or at least i hope the end result will be
mini PC manufacturers such as Minisforum usually don't offer BIOS update at all. Do you think this is a problem running it as a Hypervisor? Thanks.
don i think a good video would be how to organize lxc/vms in proxmox. from the numbering id's to the naming etc.
don't those script install docker and a docked image all the same?
Any way to have automatic backups? I want to start now in proxmox, but I'm a little bit confuse
yes you can setup auto backup to your nas every day or whenever
@@NovaspiritTech So you depends from a separated Nas to handle the files and the backups
I wonder why proxmox has LXC instead of docker. Hmm
Algorithm Algorithm
Thanks! great video. Keep it up and thanks for continuing uploading videos
Hope that you continue to heal Don!
thanks
Keeping healing, keep posting! Love it!
{Superhouse #23 - Preparing your home automation for death}. There is an excellent TH-cam video by SuperhouseTV, regarding preparing your home automation for your absence, as well as mine. It sucks when you have to talk about this. I am in a similar situation, but different and the wife is no where near being able to maintain our home automation. I started documenting my network, sensors, security.... a few years ago, but still have a long way to go. I started with an overview and then went into detail. One problem is that it is a "Living Document" and will never be completed. I do have a son that is good at this stuff so I am in the process of giving him remote access and full control of the entire system. I am 75 and time is running out, so I am spending as much time on this project as possible. Best of luck to you!
FYI docker runs fine in an LXC container with nesting enabled.
When docker is the most.sensible way, I set up docker on the LXC
If anyone has a company that would be interested in sponsoring a Novaspirit Tech video, it would be an effective way to reach Don's devoted viewers & subscribers. Always great content from a great guy!
Best of luck to you! You've been super helpful you shouldn't be going though this.
Heh, an almost docker free homelab. Love it! What would be interesting is to compare resource usage between the previous docker containers and after moving them to LXC. Each LXC requires an entire OS, albeit a lightweight Debian one, but then Docker has all these layers that pull in an unknown amount of... dare I say, garbage. As you say, the LXC version "feels" snappier. Comparison stats on cpu, ram and storage usage between the two would be fascinating.
These lxc containers are docker containers with a single application installed.
why is docker (let's say container) free a good thing ?
@@GreatTaiwan Docker containers may contain old versions of libraries or programs that have security vulnerabilities. Unless you build the Docker container yourself, there is nothing you can do about it. With LXC containers, on the other hand, you can install security updates.
@@GreatTaiwan I simply do not want to deal with or use Docker technology. I think it's a dumb and needlessly complex concept compared to LXC containers.
@@bluesquadron593 Sure, but LXC containers have a "real" OS as a foundation instead of a mess of overlays. The option is there to include more traditional services if needed, with a single unit for backup.
BTW for next time: privileged LXCs can just used NFS/CIFS directly, unprivileged LXCs require the use of bind mounts. You selected privileged LXC and then went through the bother of bind mounts instead of just modifying /etc/fstab.
The reason I've stuck with docker containers is that they are easier to keep updated. A LXC container needs to be updated in at least in two ways, you need to update the OS and then you need to update the app (and whatever tools the app uses, like apache, some runtime). In docker I just do docker compose pull to download latest image. Or am I doing it wrong?
I also think so. I'm using watchtower container to keep everything updated automatically.
Wanted to comment on mountpoints in containers if you have a cluster setup. I have a proxmox 3 node cluster using ZFS replication (not ceph) I had issues with creating a replication because of the bind mountpoint, to resolve this you need to set replicate=0 in the mointpoint. That resolved the replication issue, however next I couldn't migrate the container to other nodes. to do that you need to set the shared=1 in the mountpoint. Mark sure the mountpoints exist on all nodes exactly the same (they should since it's set at the datacenter level). the mountpoint now looks more like this:
/mnt/pve/nas/movies,mp=/movies,replicate=0,shared=1
I'm in a process of moving away from containers. I went with VMs because of NFS. I didn't mount the NFS via Porxmox because the host has read/write access to the share.
Like and comment for the algo, prayers for your health
Man this video dropped JUST at the right time. I’m in the process of moving things over to Proxmox myself and getting stuck on some. Thanks so much.
LXC containers are VERY powerful.
A LOT of people/tech TH-camrs talk about homelabbing with VMs, but I think that some of the real magic happens with LXC containers instead.
It's significantly lighter weight and faster than a VM (since it shares the kernel with the host) and I've been able to actually get a LOT done with LXC containers, pack more stuff in with the same hardware without having to carve out/provision hardware resources for VMs.
The only time that LXC containers doesn't work is if I want to run a different kernel (e.g. Windows, Solaris, macOS), for all of the Linux stuff, I think that I am down to only two VMs left (because it's much more difficult to get multi-monitor support with LXC containers than it is with Linux VMs).
Mount points are awesome. I use it all the time.
yay a new vid on lxc containers! I've been messing around with them and they're amazing. I got an alpine server running on like 4mb ram lol
Gotta feed that algo! Also, this is great content!
Dropping like and comment.
I watching this one without my Adblocker.
I don't think you need privileged lxc for mounting. Also, probably want to turn off the replication for the mount point. Also check how to backup an lxc with mount point. I believe snapshot doesn't work.
hey, how do you plan to update LXC containers? One by one 30+ times? For the porainer/docker VM i'm running watchtower ~once per month
ttech has 2 scripts to update lxc containers, my plan is to update all the containers every sunday 12am vai cronjob
I've seen this migration a 1000 times. It is good. I understand the fine granularity to backup the entire container. That is great. I also see the resource management being more efficient in some cases, that is a plus too. Sharing host HW, another plus. Etc.
But... How about apps life cycle ? Nobody seems to address this. In my docker setup I use watchtower for all the automatic ones. For the critical ones I click by hand using portainer. There are several approaches to this, but all are concentrated in that one docker service.
What now? How do these individual 20 LXC containers update? Who controls that ? Is there any visibility? I would really appreciate if someone made a video touching on that.
Thanks for sharing!
i would think you could write a script for that. ssh into your proxmox node and run the script in terminal. I've only ever had 3 lxc's running at once so always just updated manually
Thanks Don.
Ha just did all this but from Windows instead of docker. Those helper scripts are awesome but wish there was a guide to convert myself.
Oh wow. I didn't know about data center storage. I was going to do this manually. Life saver.
Could you install docker on Proxmox, move the compose, and have it rebuild on x86 (if avail)? This is why i'm looking at Incas.
Nasty NAS. Nasty backup, simple sweet and stupidly hilarious I love it
I copied your homepage, AGAIN, and I've set a widget for CALANDER
we ❤ you don, keep fighting. also this is very useful since ive neen struggling to create a linux vm with igpu passthrough on proxmox so im going to be giving lxc containers
Great content! I was looking for something like that!!!!
Keep going, be strong!
one of the best channels on youtbe
BTW, you can run docked in LXC. I transferred some of my portainer setup that way.
I’m now trying to move unraid apps to proxmox containers running dockers separated by topic and it’s hard. Thanks for the video.
Thanks for the content.
I really wanted to this but I'm worried about those "Stale file handle" in both NFS and CIFS mounts. I have a script that automatically unmounts and mounts them on my VM but even that isn't foolproof that I had to do a restart.
Lee Jason Gonzalez Donald Perez Patricia
Perfect as usual man
Elwyn Squares
Thanks man! As as usual tons of love and support
Nice approach and a great plan. Wishing you the best as you continue forward.
awesome content, always great to how you get your tools workin
Don how are you doing, hang in there buddy.
Do you mind sharing how you run the other LXCs through the VPN container?
i made a video on it -> th-cam.com/video/3mPbrunpjpk/w-d-xo.html
@@NovaspiritTechThanks a lot mate, will watch it now 👍
Nice video, thanks 🙏
Oh man top video for the migration.
Best of luck to you! 'Calendar' on your homepage is mis-spelled.
LOL just noticed that
A comment for the algorithm.
Mueller Shoals
Wishing you the best! 🙏
Thats The Spirit Champ !!
What was the homepage from!
check out my video on the homepage th-cam.com/video/ix5q6deTT18/w-d-xo.html
Wow, great .
Engagement comment
very detailed video..
👍🙂👍
Stay strong!
beep beep i'm a jeep
Hey, what software are you using on the Pi? I usually use just docker ( swarm ), casaos or kasm web on arm boards. I like to see what you are using.
check out my repo pi-hosted.com/
@@NovaspiritTech Thanks will do.
Thanks dude
Thanks so cool
Awesome.
LXC containers in privileged mode are just a huge security hole. Anything that can’t run as unprivileged LXC should instead be run in a VM. I wish you the best!
This is great, thanks for this video. I can't see the link for the helper script page on the info, it would be useful to have it there.
Otherwise great info
helper-scripts.com/ or my video th-cam.com/video/TJ8-oKRrwjE/w-d-xo.html
@@NovaspiritTech Thank you for that. I subbed now and Won't be missing again :)
Thank You your videos so simple and concentrated at a same point. Easy to folow. And always with a so good wibe
I like docker, but I might give LXC a try. Thanks.
Thanks Don. More LXC goodness. I'm running a win 11 LXC but encountered some weird issues regarding graphics drivers and mounting volumes.
Nice, found your channel thru hardware haven. So sorry about your prognosis, hope things get better for you. I've been moving all my services to my proxmox environment also, this video helped me thanks!
I wish I came to your channel under better news, be strong and sorry I'm late to the channel. Really enjoying the content, thank you
That's why I like using compose files. You can use a compose file to create a stack in portainer, so one method does not exclude the other.
Having all your appdata files in the same location is a good thing, it allows you to easily retrieve the config of your containers using scp.
ty bro!!!
perfect exact what i was about to search for. works like a charm with jellyfin
Extremely clever, you've convinced me to migrate too. Take it easy Don!
Great content. I am learning a good bit from your work here. Thank you.
Strength and best wishes. Appreciate the video content too.
Thanks for continuing to do all this hard work and giving us so much value ! ❤
My Unraid NAS is called Nasty too :D
Wishing you a quick recovery.
Thank you for the great video