The correct way to install Docker in Proxmox using a unique feature LXC Containers

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
greetings get ready to embark on an extraordinary Journey exploring the wonders of proxmox lxc containers within your proxmox H lab server today we'll uncover why installing Docker in a VM on proxmox is not the best approach and instead we'll showcase the advantages of leveraging proxmox lxc containers which run directly on bare metal in this short video we'll walk you through three exciting installations firstly we'll demonstrate how to create a proxmox lxc container showcasing the unique advantage of running containers on bare metal where a Ubuntu container can take merely 300 megabytes and operate significantly faster than in VMS next we'll guide you through setting up Docker within our proxmox lxc container harnessing the substantial speed Improvement and resource efficiency offered by this approach lastly we'll show you how to configure portainer to seamlessly manage Docker containers within our proxmox lxc container environment so buckle up and prepare to be amazed by the Brilliance of this video we kindly ask for your support by giving our video a thumbs up now without further Ado allow me to introduce you to our proxmox lxc expert Nico please note that Nico has a Charming dokin European accent while fluently speaking the queen's English over to you Nico thank you Josh hi there this video is going to become controversial with the recent news about the vmw ESX server people are now looking for an alternative type 1 hypervisor to use however proxmox not only is a type one hypervisor but it has something that none of the other type one hypervisors has and in this video we are going to not only demonstrate it or install it on our proxar server but we are going to show you something very interesting now apart from having a type one hypervisor proxmox comes with lxc containers now these are something new in the industry this is a container unlike Docker that runs on bare metal so not only does proxmox allow you to run your VMS as virtual machines but it also allows you to create containers one of the features of this or should I say benefits is if you create a proxmox Alexy container and install in that container the auntu template they provide you land up with a 300 megabyte auntu Serv whereas if you use the normal way to create a auntu server in a VM you land up with a gigabyte so the benefits are as follows a it is substantially smaller than running it in a VM and also because this container runs on bare metal and not running on uh a VM you'll end up with a type one kind of hypervisor type container and in this video we are going to show you the right way to install Docker on proxmox taking benefit of the lxc containers today we want to install Docker into proxmox the correct way to do that first of all we need to log into our proxmark server let's do that log in normally when we want to create a VM we can either use a template and clone it or we can click the button create a VM and go through the whole process but proxmox has a special feature it creates special proxmox containers the difference between a proxmox container and a Docker container is that the proxmox container runs on bare metal it's almost like a type one hypervisor and to create one we just click this button and this is how the process starts whereas a Docker container runs inside an operating system so it's almost like a type two hypervisor if you think about it the proxmox container is also known as an lxc container and this is the instructions that we are going to follow you can find the link to our Blog Page below the recommended way to run Docker containers on prox marks is not to create a VM and run the container the docker inside a VM so we are going to show you how we are going to do this I've already created one but I will go through the process before you can create the container there are a few prerequisites when need to do and that is to add templates to our Pro marks to do this we need to SSH to the proxmox server itself so I'm going to do that here I'm in then you need to run this command this command will list all the templates that are available and you see there are two kinds of templates there's the system templates and then there's the turnkey templates now system templates are things like you want to create a buntu 2004 that's this one here or the turn keys these are complete servers if you want a villa server a an server then you would use these and it will create you a container that's running that server but in our case we just want to do a native or a system installation so 2204 this is the one I want copy and then the next thing we need to do now is to download it so it's a p this command oh I have it here so this is the command you need up to there and then that part there now this you would run on your server like this I'm just going to clear the screen you would run this like this on your your server however on my server I have a 2 tbte storage that I use to run my containers and VMS in so I don't want to use local so on mine I'm going to use this one here I'm going to choose a different server I'm going to choose the latest Al find and p b m this should now work and it's downloaded it so now we can create a proxmox container I want to make the 401 and I'm going to call this docker now you need to give this thing a good password right and now let's select the template there we are here's the Alpine but I want to use auntu next I want to allocate enough storage to this so I normally give my service 20 gig or 18 gig 20 gig next course you can allocate two and you can specify a limit so I'm going to specify a limit of one so that this thing doesn't kill my server if something goes wrong in this container and then memory I don't like 512 gigs I'm going to use 4096 but I leave the swap file the same network I won't change I do want to give it the IP address 10.1 54.2 2 do 85 make it 95 10.15 4.2.3 you also need to say sl24 if you don't put sl24 it won't accept it now I've set up my container with a fixed IP address next 10.15 4.2.3 that's my Gateway and 8.8.8.8 you can use 1.1.1 and then confirm and now you say finish and now we look at [Music] status and it's a okay this is great now we can close this and there is our new container we are now going to install Docker on the proxmox lxc container we have created a lxc container now we want to install Docker inside that container to do that I am going to open up my CRS marks and if you look at the top there you will see notice the image these look like monitors and these look like cubes so this is the docker lxc container that we created so click on that and we click on start once we've done that then we can click on console and we're in it's incredibly fast and I'm in I I want to see what the IP address is and remember we said it would be 95 so let's see if it is 95 there it is it is 95 that is the IP address so now we can open a new tab SSH my user is nickm 10.54 2. 95 and I'm in I now need to elevate my user to root so sudu or as the British say Pudo Su Dash excuse the noise from my keyboard we have provided a link below to this blog page where we show how we install Docker on the buntu now this part is if you have a partial or previous version and you want to uninstall it let's get down to the juicy Parts we've already done sudu we need to do a update so let's copy this command that was fairly quick these commands you have to copy them one at a time the next one we're now are going to be downloading a gpg file we've done that now we're going to add the repository and press enter we've added the repository we now need to add this and now that we've added our repository we need to do an app or AP update so let's do that it's added a new repository now we should be able to install docker and now to test Docker we say Docker Das Dash version and that's good we've got the version 2503 which means we have successfully installed Docker on This Server now there are some things we still need to do and that is regarding the automation making it start automatically I'm first going to check the status and it says it's running which it is you now need to type a q to get out of here and then run this command to eni it and we can check the TR this again and now we see that it's enabled that means that every time my Pro Mar server starts if I make this container start automatically then inside the container Docker will start automatically now we have succeeded to install Docker in our proxmox lxc container thank you for watching this video exploring the the world of proxmox lxc containers and their capabilities Nico demonstrated creating a proxmox lxc container directly on your server's bare metal showcasing its efficiency and speed he then showed how to install Docker containers within the proxmox lxc container leveraging its speed and resource efficiency finally NCO demonstrated installing portain to manage Docker images in your proxmox lxc container environment providing a streamline management solution with this knowledge you can now have a powerful efficient and easily manageable container environment on your proxmox server maximizing performance and resource utilization if you have not given us a like please do so your dedication to exploring prox mox's capabilities is invaluable stay tuned for more insights Automation and empowerment through its incredible tools for your home lab please like and comment to share your feedback and suggestions for our Channel if you found this video valuable consider subscribing to stay updated with our latest content and tutorials ensuring you never miss out on informative videos your support is crucial for our Channel's growth for those eager to deepen their knowledge consider becoming a patron supporter for exclusive access to upcoming training courses enriching your expertise and supporting the channel we genuinely appreciate your support and look forward to sharing more enriching content with you stay curious keep keep exploring and continue harnessing prox mox's remarkable potential in your home lab and devops journey thank you for being part of our [Music] community
Info
Channel: DVP Development Best Practices
Views: 2,463
Rating: undefined out of 5
Keywords: java, k3s, kubernetes, training, tutorial, how to, mastery, beginners, advanced, intermediate, ex, IBMer, learn, full, course, k3s-ha, portainer, proxmox, docker, container, containers, lxc, install, this way, faster, bare, metal, bare metal, this way, performance
Id: s_rm8mpSGcY
Channel Id: undefined
Length: 20min 52sec (1252 seconds)
Published: Sun Feb 18 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.