The Difference between Containers and Virtual Machines
Vložit
- čas přidán 6. 08. 2024
- VM vs Docker difference? When should you use a docker container vs a VM to run your applications? I'll explain the difference between virtual machines and containerization and give you some real-world examples of when you should use one or the other deployment method. #Docker #VirtualMachines #Proxmox
Docker explained simply: • Docker explained simply
Docker-compose tutorial: • Docker-compose tutorial
Follow me:
TWITTER: / christianlempa
INSTAGRAM: / christianlempa
DISCORD: / discord
GITHUB: github.com/christianlempa
PATREON: / christianlempa
MY EQUIPMENT: kit.co/christianlempa
Timestamps:
00:00 - Introduction
01:04 - How virtualization is working
02:42 - How docker containers are working
03:41 - Benefits of docker containers over vms
05:51 - Importance of containers in the IT industry
06:36 - Where you still need a virtual machine
08:13 - Should you use vms or docker containers?
----
All links with "*" are affiliate links.
Great video and I look forward to watching your future videos on containers!
Thank you so much ;)
This was very well explained. Well done sir.
Glad it was helpful!
Well Explained. Thanks
🙂
Just started looking into containers after watching a few videos about Kubernetes and Docker.. It's been many years since I fiddled with Linux (my Linux+ cert is about 10 yrs old now) and I'm still a new user with the OS.
When I started to look into it, Docker was already in the beginning stages of being deprecated from Kubernetes, and the videos I watched leaned towards Rancher for management.
I have not been able to get Rancher going with the new version of Docker and it looks like I really don't need to use Kubernetes in my setup so I'm a little lost with where to go.
I'm looking into Podman but Docker still looks like a great way to start out.
I like how you started this tutorial series and will be keeping an eye on it to learn more as I fiddle with containerization.
Thank you! :) Yeah it takes a while to work out all this stuff... just keep going! Let us know if you have any questions
Good video!
Thx! :)
Would you consider comparing and contrasting docker, kubernetes, docker swarm and Portainer?
Hey man, thank you for the suggestion! Kubernetes is a topic I'm currently working on and a comparison video would be perfect. Stay tuned 😊
@@christianlempa Ausgezeichnet!
Nitpick (other than that, very good video): the video doesn't fit the audio between ~0:17 and ~1:01.
Thanks, yeah that's sometimes happening on a bad recording setup ;)
is there another docker-like software that will do the same thing?
I did a video on podman, that might be feasible: czcams.com/video/jzd0YoqBJjc/video.html
One thing that could have been mentioned is that containers do not support multicast, unless I'm missing something.
Docker vdi?
🙋 Question!
I know this video is old but my question seems relevant most to this topic.
You use Docker
You use Proxmox
(those aren't questions I know)
What is the best way to deploy Docker on a Proxmox server?
I've seen some guides saying to run it in a Debian VM, some say a Debian LXC container, some say a Turnkey Core LXC, some say other specific Turnkey containers. But the people posting these are not people I know or have confidence in following.
You are.
Some of my concerns
Do I need to setup a big volume that will contain all my containers? I'd much rather setup variable bind mounts on a physical drive.
Is there a way to easily share mount points between containers? I generally mount /var/log of every container into /docker/log/var/log & containers that have special log locations to /docker/log// as well as containers that share data between them like DisqueTV, xTeVe, Plex, Emby, etc.
Should I run LXC containers or Docker ones for things like Boolstack, DocuWiki, Etherpad, MediaWiki, NginX that have a Turnkey template?
If I run some LXC containers & some Docker, how do I share mount points between them? I know I can "qm set 100 - sata2 /dev/sda1" to add Proxmox drives, but that's not the same as the volumes used in containers
I got to the same point that you were in the past. Have you found guidance on this?
@@Berecutecu I haven't, but I set it up on Debian & I am happy with it
@@LostOnTheLine Debian, Proxmox, LXC Docker, Plex and Emby?
@@Berecutecu so Proxmox runs on a Debian host kernel. I installed my Docker instance directly on the host Debian system so it's like Next to Proxmox instead of under it. It works great & I can access anything from it that I map. I will note that a huge advantage is that I can use Proxmox to mount a network drive, like my NAS & my Plex server (which I run on it's own Windows 10 system because I like it better through Windows than Linux & really don't like the containerized version) & then easily map those into any container, which is nice & much easier & more stable than my experience has been with that previously.
I used to struggle with containers not starting properly when the system 1st starts if there was a NFS or CIFS mount & sometimes there'd be a network interruption & I'd have to restart the stack to get it to work again, but I have had none of that with this setup.
I've run Emby in a Docker container, with the media drive from my Windows Plex server mounted through Proxmox & had no issues. I much prefer Plex so mostly that was done to test it out.
I only really use LXCs for Etherpad because the Docker Container has never worked for me except when run on Docker Desktop on Windows. Eventually I'll work out how to get it working properly in Docker & I'll ditch the cumbersome, hard to manage LXC.
I ditched my Windows Sandbox, which I used quite often, for a Windows Proxmox VM that I save a snapshot on & Rollback regularly. This is great because I can test things that require a restart, a huge no in WinSandbox, as well as test things for longer periods & easily set my own network restrictions for each test it.
@@LostOnTheLine thank you for sharing
Well it will come down to speed for me.