Docker in Proxmox LXC with Turnkey Core - Lower Resources by 80% Compared to VMs

Поделиться
HTML-код
  • Опубликовано: 8 янв 2025

Комментарии • 140

  • @DBTechYT
    @DBTechYT 4 года назад +16

    I used this method to install OMV and 2 pihole instances in 3 separate containers. Once you do it once or twice, it's SUPER fast to deploy a new instance!

    • @selfhosted
      @selfhosted  4 года назад +1

      Yep. Not bad at all. Proxmox is not as hard as it seems!

  • @JonBrookes
    @JonBrookes 3 года назад +7

    forgot to mention, I didnt notice if its already been mentioned but a recent version of proxmox ( mine is saying version 6.3, Wed 25 Nov 2020 ) I found that the template for the turnkey-core is missing in the search - this is fixed by shelling into the proxmox node and running 'pveam update' then presto, it appears in search results for the templates
    thanks again, very usefull video ;)

  • @jaygreentree4394
    @jaygreentree4394 2 года назад

    Having all the templates readily available in proxmox is one of my favorite features. I did a similar setup yesterday on my proxmox system. Ive tried many platforms and found this setup to be the easiest and best for my needs.

  • @selfhosted
    @selfhosted  4 года назад +4

    Check out the Proxmox Discord Dark theme I use here! ruclips.net/video/2qxZvP7K2To/видео.html

  • @bogdahn689
    @bogdahn689 3 года назад +1

    I have just retry a fresh install, Proxmox 7 works flawlessly, with the walkaround i shared with you. Thx again for the idea.

    • @selfhosted
      @selfhosted  3 года назад

      I have a video scheduled for release tomorrow for proxmox 7. Let me know what you think and if I missed anything. It was way easier than I expected.

    • @bogdahn689
      @bogdahn689 3 года назад

      @@selfhosted Ok cool, i dont need to do it :) It's simple yes :)

  • @alberto_canero
    @alberto_canero 4 года назад +1

    That is what I was looking for! because I wanted the best of both worlds!: proxmox lxc containers and docker ones!
    Thanks for the explanation!

  • @Supperconductor
    @Supperconductor 4 года назад +8

    This is very useful, thanks for the tutorial.

    • @selfhosted
      @selfhosted  4 года назад +2

      Glad you found is useful and thank you for the feedback! This means a lot to me. Even more so than any monetary donation and I mean that!

  • @puzzlesit5314
    @puzzlesit5314 4 года назад +6

    Amazing stuff, keep up the good work!!!

    • @selfhosted
      @selfhosted  4 года назад

      Thank you for checking it out!

  • @JonBrookes
    @JonBrookes 3 года назад

    very usefull and enightening - I'm using proxmox as a result of one of your other videos, so thanks for that - I've been crafting my own for a while now by building an Ubuntu server and adding LXC / docker myself which is interesting and informative but I'm liking Proxmox and the way it feels like a sort of VMWare + it does LXC as you demonstrate here - whats not to like ! Your video shows a very good use case for LXC containers over running docker directly on the host or within a VM for that - so all in all makes a lot of sense
    just so you know at time of writing the link to your wiki is showing a 50X error but I guess you know already - I'll check back when its on line again
    once again, thanks very much for posting this - extremely usefull and explains a lot to me about the best way to run docker on proxmox - cheers ! :)

  • @toddwilliams8362
    @toddwilliams8362 2 года назад

    Great episode, thank you for all the good info. Your audio is great, however, I'd like to suggest you get a pop filter for your mic. Some words you say create a loud bass pop and could be prevented. Thank you again for sharing all of this great information.

  • @KyleRassweiler
    @KyleRassweiler 4 года назад +2

    FYI There's a comma in the ports section of your nginx compose script that needs to be removed. Love the wiki setup btw!

  • @jarrodbarton
    @jarrodbarton 2 года назад

    I really appreciate your content, sir.

  • @Shane-Singleton
    @Shane-Singleton 4 года назад +5

    I should try setting up an entire stack on an LXC and compare its resource usage to my production VM

  • @jbOO7
    @jbOO7 4 года назад +2

    Great vid and perfect timing!!

  • @willserumgard7185
    @willserumgard7185 4 года назад +1

    I found this very useful as well. Thanks!

  • @chrisumali9841
    @chrisumali9841 3 года назад

    Thanks for the demo and info, have a great day

  • @514Adi
    @514Adi 4 года назад +1

    Hello, just wanted to say that all your videos are very useful and instructional. I pretty much watched them all although I'm mostly familiar with the topics discussed. yet I discovered a lot of other interesting things. I simply wanted to say thank you for posting some good quality content on a YT flooded with all kinds of pseudo tech information.

    • @selfhosted
      @selfhosted  4 года назад

      Thanks for watching! And for putting effort into your comment :)

    • @frankg9405
      @frankg9405 4 года назад

      @@selfhosted Where did you go!?!

    • @selfhosted
      @selfhosted  4 года назад +2

      @@frankg9405 Taking a break due to personal issues. I'll be back!

    • @frankg9405
      @frankg9405 4 года назад

      @@selfhosted Good to hear you will be back! Keep up the good work and hope all is well then!

  • @dahlenu
    @dahlenu 3 года назад +13

    Great episode! Really useful information. However, dark theme and high resolution means it's really hard to see; please have viewer readability in mind when you make these videos, thank you.

  • @KyleRassweiler
    @KyleRassweiler 4 года назад +6

    Perfect timing!

  • @YuriShevchouk
    @YuriShevchouk 4 года назад

    great video, has really helped me with doing more in Proxmox :)

  • @trenetics3031
    @trenetics3031 4 года назад +2

    Keep em coming Jeremy! :)

  • @AlexanderGarzon
    @AlexanderGarzon 4 года назад +1

    Exactly what I was loocking for. Thanks.,

    • @selfhosted
      @selfhosted  4 года назад

      Alexander Garzon Thanks for watching!

  • @AviDarks
    @AviDarks 2 года назад

    Thanks for the excellent guide.
    Note: The next time you make a video, please try to reduce the display of the screen - barely see something.

  • @MrHollow
    @MrHollow 3 года назад +1

    I was about to test this when i opened the description... Gosh dang it...

    • @selfhosted
      @selfhosted  3 года назад +2

      I'll keep an eye on how things are going for version 7 but right now I still see many people making support claims about this not working.

    • @bogdahn689
      @bogdahn689 3 года назад

      I will help on that, i hope. I gived a basic walkaround in the commentaries.

  • @Screwable
    @Screwable 3 года назад

    Hi there amazing video was wondering if you was going to do a follow up for proxmox 7 ?

  • @wizdude
    @wizdude 4 года назад

    Hey Jeremy. Thanks for the great videos. I’m a new subscriber of yours. I’ve heard you talk about Yacht in a few videos. Are you planning to do a video on it? That would be awesome :-). Keep up the great work. Cheers.

  • @GrishTech
    @GrishTech 4 года назад +1

    I still like the cloud-init provisioned VMs better. Simple clone and everything is there from a template. Plus, you get snapshots when using remote storage locations, live migration, etc.

    • @learnerit3164
      @learnerit3164 Год назад

      LXC surely has some setbacks compared to VMs. I faced some problems relating to cluster management. Most of them are caused by storage type differences, I assume. If it's a single function mini-server, LXC would work well with its lightweight performance.

  • @ksolomon75
    @ksolomon75 4 года назад +4

    is the wiki down? I get a CloudFlare connection timeout page...

  • @stives466
    @stives466 Год назад

    Hi,
    When you want to keep data over several years (without using the cloud) how to indicate a data storage space on a NAS?

  • @malypetu1409
    @malypetu1409 2 года назад

    I can't get docker to work. I'm using Proxmox 7 and after installing docker it won't start with the error:
    "'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded. storage-driver=overlay2". Any help will be much appreciated.

  • @svd19xx
    @svd19xx 4 года назад

    2:26 docker (v. 6.3) in privileged container does not work.

  • @michaelkasede1489
    @michaelkasede1489 3 года назад +2

    Thanks for the video. Why do you use Turkey core Debian rather than Ubuntu or Debian LXC templates? In my opinion, having SSH pre-installed is not a strong enough reason not to use the main stream distribution templates. Are there any known performance improvements or does it use less CPU resources as an example?

    • @procheeseburger_2
      @procheeseburger_2 2 года назад

      yeah I don't really see a reason to use this vs main.. it has a bunch of things baked in so unless you need them why use it?

  • @circuitguy9750
    @circuitguy9750 4 года назад +7

    Your homelab Wiki link is down. :( Biggest problem with self-hosted. :)
    For anybody needing the link, he installed with mostly default options from this site:
    hub.docker.com/r/jlesage/nginx-proxy-manager
    Based on the audio in the video (can't be sure), I think he changed the default port 8181 to the root-required 81. I assume he did the same with 80 and 443.

    • @hawwestin
      @hawwestin 3 года назад

      And its still down

  • @diegocapasso7451
    @diegocapasso7451 2 года назад

    Please add the Note in the video that if you don't find TurnKey in the Templates you have to use this in the console "# pveam update"

  • @HansVDG
    @HansVDG 4 года назад +1

    when starting the CT , and going to console I get following error : failed waiting for client: timed out TASK ERROR: command '/usr/bin/termproxy 5900 --path /vms/206 --perm VM.Console -- /usr/bin/dtach -A /var/run/dtach/vzctlconsole206 -r winch -z lxc-console -n 206 -e -1' failed: exit code 1

    • @HansVDG
      @HansVDG 4 года назад

      Found it , I put proxmox behind a Nginx Proxy Manager
      this weekend, and forgot websocket support

  • @CalvinPhilipp
    @CalvinPhilipp 3 года назад +1

    Hi, just a quick question. I first ran my docker inside lxc as well, but I had one problem. As far as I know docker can't use overlay2 or one of the other reasonably fast storage drivers if using a zfs-filesystem for the storage of the lxc container. What filesystem did you use for the lxc here?

    • @learnerit3164
      @learnerit3164 Год назад

      LXC surely has some setbacks compared to VMs. I faced some problems relating to cluster management. Most of them are caused by storage type differences, I assume. If it's a single function mini-server, LXC would work well with its lightweight performance.

  • @amuthukkumar
    @amuthukkumar 3 года назад

    Hi
    I need to configure Apache Guacamole with authentication against Active Directory. please guide me

  • @davechristoffersen6633
    @davechristoffersen6633 3 года назад

    If this is not recommended for version 7 is there a way to get docker running on a lxc? What about pgid and pguid of root? Or is the recommendstion to stick with vm for docker?

  • @NicholasLee0
    @NicholasLee0 4 года назад

    How do you mount storage into the docker container? As a mp0 bind mount in the vmXXX.conf?

  • @boca812
    @boca812 2 года назад

    I get a failure when installing docker 16.1-1 any thoughts?

  • @Sellular.
    @Sellular. 4 года назад +1

    Any reason for the privileged and not unprivileged container? I've ran some docker unpriv lxcs before with perfectly fine results

    • @selfhosted
      @selfhosted  4 года назад +1

      Eric Sell turnkey core won’t work without it because it doesn’t have keyctl.

  • @crofthey
    @crofthey 4 года назад +4

    Why did you chose turnkey? Doesn't seem to give any benefit over a standard Debian/Ubuntu apart from SSH enabled... Which takes moments to configure

    • @selfhosted
      @selfhosted  4 года назад +3

      crofthey permission issues and app armor. I wanted something that was ready to go. With other templates I had to sugar coat them to get it working properly.

    • @Sellular.
      @Sellular. 4 года назад +2

      @@selfhosted I've used stock debian containers with docker before and it's been mostly the same, besides just having to add the repository. Sure I have to add the repo, but I also don't have to go through the whole turnkey core setup. To each there own, but if I only have to install the bare minimum, I'd rather that than turnkey unless I need it

    • @selfhosted
      @selfhosted  4 года назад +2

      @@Sellular. So I did more testing and I found out some of the templates do indeed allow you to use both keyctl and nesting! So this is possible to setup an ubuntu 20.04 lxc without hacking it to make it work.

    • @Darkk6969
      @Darkk6969 4 года назад +1

      Turnkey is great to get started quickly in Linux with the apps you want. Once you get the hang of it then make your own VMs / CTs with standard Debian / Ubuntu images. I've started this way early on and now I do everything by hand so I know what's really installed and how it works in case I need to fix things.

    • @selfhosted
      @selfhosted  4 года назад

      Noah Darby Yep. Same here. I use Ubuntu now. Some day I’ll learn more about alpine because it’s very light weight and hardly any overhead.

  • @eltoniozamora2898
    @eltoniozamora2898 4 года назад

    Great video..... I need some help I am not sure if this is where I should ask, but I am running omv in proxmox with 2 drivers, 32G & 6TB ... 32 host all my docker. It is full I resized it in proxmox but I am unable to resize in omv file system, I don't want to start over , if any one can help

  • @N2go2000
    @N2go2000 4 года назад

    I have spent 2 days looking for this exact info. Nothing more, or less. You had exactly what I wanted.
    Btw, I cannot find a source that says whether npm is just a front-end for nginx or if it is fully self contained. Does anyone have a clear answer?

  • @Glatze603
    @Glatze603 4 года назад +1

    Hi, thanks for this video :-) Could you please show us, which docker storage driver you use, when you run docker in an lxc container (when you have portainer in use, klick on Host and you can see). I read that it is recommanded to use overlay2 (best performance and less use of drivespace for images) and I guess with LXC you do not use this driver. Thank you.

    • @selfhosted
      @selfhosted  4 года назад

      Markus Glaetzner Yes. But I have no shortage of space :)

    • @Glatze603
      @Glatze603 4 года назад

      @@selfhosted but maybe others that watch your video have (I had a few month ago, bevor I read about this issue). On top the performance witb overlay2 is much better. With Proxmox it is really better to run docker in a vm. It would be interessting when you make a space and perf comparison of docker in lxc and vm 😉👍

  • @NunoLeal86
    @NunoLeal86 3 года назад

    Is it lighter than a lxc Debian 10 template + docker?

  • @jackster99999
    @jackster99999 4 года назад +1

    I followed the tutorial and when I reached the point to update and upgrade the container couldn't access the internet. Any ideas?

    • @selfhosted
      @selfhosted  4 года назад

      Jack Roeder Try restarting the container. Did you use a dchp option when creating it?

  • @TheoParis
    @TheoParis 4 года назад

    How did you get this dark mode theme on proxmox?
    EDIT: nvm its PVEDiscordDark on github

  • @discards174
    @discards174 3 года назад

    oh, to high desktop resolution for me. I have to zoom it to read messages :(

  • @DaveMenkehorst
    @DaveMenkehorst 3 года назад

    So i'm always getting 'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded. storage-driver=overlay'
    The install fails and i get this warning when dockerd

    • @bogdahn689
      @bogdahn689 3 года назад

      It's a docker.io package problem. You need to install it manualy (with deb packets tho). If you need this driver, witch is the FS driver for docker, you need to enable it in the proxmox kernel.

    • @DaveMenkehorst
      @DaveMenkehorst 3 года назад

      I switched over to a Debian 10 LXC

  • @DocMacLovin
    @DocMacLovin 4 года назад +1

    i can not see a thing - dark mode on youtube?

  • @olofalbertsson
    @olofalbertsson 3 года назад

    I never commented here, but I just want to say thanks for an awesome video. Ever since I first saw this video, this has been the base of my Homelab, with multiple LXC containers running Turnkey. I was fairly new to Linux and Homelab when I first saw this, and since then I have read up more on other distros. Is there a reason why you don't run Alpine instead? It should be less resource heavy than Turnkey Core.

    • @selfhosted
      @selfhosted  3 года назад +1

      I'm not familiar with Alpines command options. Do you have a crash coarse I can check out?

    • @olofalbertsson
      @olofalbertsson 3 года назад

      @@selfhosted No, I haven't tried it myself. Only read that it is very resource light. 3MB in size for example. I am at the point where I probably need some more hardware, but if I could easily change distro in my containers, and save some resources that way, I of course rather do that.

    • @selfhosted
      @selfhosted  3 года назад +1

      @@olofalbertsson I figured it out. It uses the same resources as turnkey. However space of the OS might be smaller. I recently added a 4tb SSD via USB 3.0 on my NUC. It's pretty easy to add. thehomelab.wiki/books/promox-ve/page/add-external-usb-storage-to-proxmox

  • @lakeshow9565
    @lakeshow9565 4 года назад

    What are the specs for your Proxmox machine?

  • @RuggedGoodLooks
    @RuggedGoodLooks 4 года назад

    homelab wiki is down

  • @coletraintechgames2932
    @coletraintechgames2932 4 года назад +1

    Error 520 Ray ID: 60f7cb6b9e07034f • 2021-01-10 16:32:32 UTC
    Web server is returning an unknown error
    thehomelab.wiki
    Host
    Error
    I'm following right along, really appreciate the time you spent to do this, my suggestion for the future is to make the terminal font bigger. I keep having to go full screen to see commands... and then this issue prevents me using this. sorry/thanks

    • @Alphahydro
      @Alphahydro 4 года назад

      I got the same thing

  • @tavoforyou
    @tavoforyou 4 года назад

    whaaaaattt a lot of time and the "written guide on The Homelab Wiki" link is brocken hope you fix this quick

    • @tonykrajcik6701
      @tonykrajcik6701 4 года назад +1

      I can confirm it too. Error 522 in my case.

  • @francoisdeslauriers5940
    @francoisdeslauriers5940 3 года назад

    not working anymore since upgrade to proxmox 7.0

    • @selfhosted
      @selfhosted  3 года назад

      Yep. It's a shame too. I actually downgraded back to 6.4 until they work out the kinks. I was a bit early to upgrade and I quickly realized it wasn't going to work for me so back I went!

  • @HiltonT69
    @HiltonT69 3 года назад

    Alpine Linux as the host for Docker containers is significantly lower resource usage than Turnkey Core.

  • @Altrac00
    @Altrac00 4 года назад +1

    Thanks

  • @nsp86
    @nsp86 4 года назад +2

    Why not just use the Ubuntu or Debian image instead of the Turnkey?

    • @selfhosted
      @selfhosted  4 года назад +2

      Nicki P app armor issues. Trust me, I tried. Sure there’s ways around it but none that are made for quick deployment like turnkey core.

    • @nsp86
      @nsp86 4 года назад +1

      @@selfhosted Yeah I thought that might be the reason. I am currently running Docker in a VM, might try out turnkey core instead. You didnt face any issues with Docker in LXC when using Turnkey then?

    • @selfhosted
      @selfhosted  4 года назад +1

      Nicki P None at all!

    • @AntonStolov
      @AntonStolov 4 года назад +1

      @@selfhosted to be honest, I don't quite understand what the problem is u talking 'bout... I use containers based on Ubuntu 20.04, everything works great - u also need to enable keyctl in addition to nesting.

    • @selfhosted
      @selfhosted  4 года назад

      Anton Stolov what versions of Ubuntu?

  • @rkbest9783
    @rkbest9783 3 года назад

    This will be good solution for lightwight containers. But my docker install finishes with error and subsequent command also dont complete docker install. what could be the reason. It this still valid for 2021. : "Process: 794 ExecStart=/usr/sbin/dockerd -H fd:// $DOCKER_OPTS (code=exited, status=1/FAILURE)
    Main PID: 794 (code=exited, status=1/FAILURE)"

    • @rkbest9783
      @rkbest9783 3 года назад +1

      just noticed you have another latest video about this for proxmox 7. ignore my comment.

  • @raymonpreiner8661
    @raymonpreiner8661 4 года назад +2

    thehomelab.wiki is down

    • @KenanArik
      @KenanArik 4 года назад

      ditto - see this as of today

  • @gforcefabi
    @gforcefabi 4 года назад +2

    i have big problems with installing Nginx Proxy Manager on my proxmox LXC Container. I followed the steps in your tutorial but the container won't start... even with multiple new installations it is not working. Could someone help me?

    • @gforcefabi
      @gforcefabi 4 года назад

      [cont-init.d] 00-xdg-runtime-dir.sh: exited 0.
      [cont-init.d] nginx-proxy-manager.sh: executing...
      [cont-init.d] nginx-proxy-manager.sh: Initializing database data directory...
      [cont-init.d] nginx-proxy-manager.sh: exited 1.
      [services.d] stopping services
      [services.d] stopping s6-fdholderd...
      [cont-finish.d] executing container finish scripts...
      [cont-finish.d] done.

    • @gforcefabi
      @gforcefabi 4 года назад

      I added the logs.. i dont understand why

    • @gforcefabi
      @gforcefabi 4 года назад

      I use the server without an open IP and i cant use Letsencrypt for now because the Ports are blockt and so. Maybe is here the problem?

    • @selfhosted
      @selfhosted  4 года назад

      Fabian A. The docker image installed without giving you any errors or permission issues? Did you enable nesting and make sure to uncheck unprivileged container?

    • @gforcefabi
      @gforcefabi 4 года назад

      Geeked Hey, thank you for your reply. All like the tutorial doublechecked that.. Installation i think make no problems but how could i check if the installation has errors?

  • @hokuspokus8570
    @hokuspokus8570 4 года назад +1

    Thx for blog entry I'm too blind for seeing anything in this video

  • @t3chnicolor
    @t3chnicolor 3 года назад +1

    Your screen is too hi-res, I can’t read anything. Would be better at lower res for recording or “follow mouse” crop

  • @YuriShevchouk
    @YuriShevchouk 4 года назад +8

    I should mention, this is outdated. docker.io should not be installed, and instead this official guide should be followed: docs.docker.com/engine/install/debian/

    • @abnersilvap
      @abnersilvap 3 года назад

      you are out of date.. docker.io was unmaintained for about a year. As of August 2019, this is no longer the case. For debian and ubuntu use docker.io

  • @bobbyjohnson4755
    @bobbyjohnson4755 2 года назад

    Yo dawg...

  • @magicmanj32
    @magicmanj32 3 года назад +2

    May I ask what the benifit of installing turnkey core as opposed to a stock standard linux lxc