Should We Replace Docker Desktop With Rancher Desktop?
HTML-код
- Опубликовано: 31 июл 2024
- Rancher Desktop is Kubernetes and container management. As such, it could be a good replacement for Docker Desktop. Is that the case? Should we move from Docker Desktop to Rancher Desktop?
#RancherDesktop #Docker #DockerDesktop #Kubernetes #kim
Consider joining the channel: / devopstoolkit
▬▬▬▬▬▬ 🔗 Additional Info 🔗 ▬▬▬▬▬▬
➡ Gist with the commands: gist.github.com/7e6c45f0a5aa0...
🔗 Rancher Desktop: rancherdesktop.io/
🎬 Free Docker Desktop Alternative For Mac And Windows: • Free Docker Desktop Al...
🎬 K3d - How to run Kubernetes cluster locally using Rancher k3s: • K3d - How to run Kuber...
🎬 Kaniko - Building Container Images In Kubernetes Without Docker: • Kaniko - Building Cont...
▬▬▬▬▬▬ 💰 Sponsoships 💰 ▬▬▬▬▬▬
If you are interested in sponsoring this channel, please use calendly.com/vfarcic/meet to book a timeslot that suits you, and we'll go over the details. Or feel free to contact me over Twitter or LinkedIn (see below).
▬▬▬▬▬▬ 👋 Contact me 👋 ▬▬▬▬▬▬
➡ Twitter: / vfarcic
➡ LinkedIn: / viktorfarcic
▬▬▬▬▬▬ 🚀 Courses, books, and podcasts 🚀 ▬▬▬▬▬▬
📚 Books and courses: www.devopstoolkitseries.com
🎤 Podcast: www.devopsparadox.com/
💬 Live streams: / devopsparadox
▬▬▬▬▬▬ ⏱ Timecodes ⏱ ▬▬▬▬▬▬
00:00 What is Rancher Desktop?
02:46 Rancher Desktop GUI
05:51 Local Kubernetes Cluster
06:43 Exploring kim - The Kubernetes Image Manager
07:31 Replacing Docker With kim
09:53 Building Container Images
12:21 Tagging And Pushing Container Images
13:11 Rancher Desktop Pros And Cons Наука
What do you think about Rancher Desktop? Can it replace Docker Desktop? Is it ready or should we wait for a while longer? Should we even look for a replacement?
IMPORTANT: For reasons I do not comprehend (and Google support could not figure out), RUclips tends to delete comments that contain links. Please exclude from the links to ensure that your comments are not removed.
I was waiting for that video since 0.4.0, I just what curios what is your opinion.
Anyway I am running version 0.6.0 on my intel mac and work quite good, apart of that they also released linux binaries.
Looks fine for me, thanks for the hint! What do you think about the other 'competitors' like Podman? Or what about installing only lima (because I don´t need the local k8s cluster at all times)?
If you are not using Kubernetes often and if most of what you need is to build container images, than Lima directly is a better option.
A video about podman is coming :)
@@DevOpsToolkit Thanks Victor, sounds great. I love your work! :)
Thanks for this. Got one question. Can we run both side by side?
I am really happy youtube recommended your channel to me 😀
Thanks Victor for the excellent overview of Rancher Desktop! Will hope KIM will mature sooner rather than later.
I hope so too, especially since it's a potentially much better option. If local dev envs are now Kubernetes, we need a way how to built container images inside k8s clusters, and not directly with Docker. That's what kim is trying to do and I believe it's the right direction. We just need to give it a bit of time to mature.
Hello Viktor.!Thank you very much for the useful information! Everything is clear and accessible.
thanks for the detailed review!
Looking for Docker Desktop alternative, and found this!, Thank you.
Great video. Thanks for this intro
Thank you for the wrap up, I actually was planning to record a video on that topic as well.
I'd like to add, that nerdctl is now supported and feels awesome. So I'll ditch the "kim" cli. Sadly, the hardware requirements are a little bit higher compared to docker desktop which is a big down sight if you are travelling and need to keep an eye on your battery ;)
Just published a video about using Rancher Desktop with nerdctl: ruclips.net/video/evWPib0iNgY/видео.html
Awesome!
Not tested yet but I think it miss the interoperability of images across the different microprocessors architectures like all the QEMU or Lima based solutions (podman, whatever) except Docker Desktop which allows us to run x86, amd64, aarch64 and arm32 images on a M1 microprocessor for example. K3d on top of docker desktop remain the best combo in order to test your cloud images locally on a Kubernetes instance on your M1 mac.
Hey Viktor,
Great video, thanks for sharing.
Wanted to ask what other registries you would recommend or solution in replacement for the Docker hub registry?
I seem to be going above my Docker hub pull rate limit so often.
I do not think there's much of a difference between the registries so I tend to use whatever my provider (e.g. AWS, GCP, Azure, etc.) offers.
@@DevOpsToolkit , I also run a registry on my local machine to speed up the cache hits... maybe you could do a video on how to set that up?
@@blaiseutube Good idea. Adding it to my TODO list... :)
Hi, if i already use a gitlab server with internal registry, and a CI job that use Kaniko to build my dockerFiles, does kim interesting in some parts ?
could it replace kaniko for automatic build jobs better ?
Or is it only usefull when no other solution available ?
Kim has been removed since I created that video. Building is now done through nerdctl (my preference) or Docker.
Now, it does not replace Kaniko. It's only for local ops. You still need Kaniko for remote building inside "real" clusters.
I know this video is two years old, but it's time has come. It might be good to redo this and compare modern versions. Docker Desktop has reached the commercial phase and the incredibly unstable phase while Rancher Desktop is much more mature, stable, though a bit slower.
I'll do my best to revisit the subject.
An update for Rancher Desktop is out: v0.5.0
The more Docker-CLI-compatible nerdctl is included in there allowing you to build images with it as well.
That's great news, but also a bit confusing. Should we use kim or nerdctl to build images inside RD?
Version 0.6.0 is out
Gh /rancher-sandbox/rancher-desktop/releases
With starting support for Linux
Nerdctl is an additional cli, created by containerd
Gh /containerd/nerdctl
@@fjgreger Oh yeah. It's incredible how fast the project is moving. Can't wait to see how it'll look like in, let's say, six minths.
Just published a video about using Rancher Desktop with nerdctl: ruclips.net/video/evWPib0iNgY/видео.html
LMAO, 3:44 "Docker with Kubernetes created some kind of strange monster"
Fantastic! thank you for this.. I think this is quite exciting stuff. On a somewhat related note - What would you recommend from your tool-belt of amazing tools for API Mocking? I am trying to convince my org we need to include mock data with all our (air-quote) Micro-services ( air-quote ).. Do you suggest a 23rd party tool outside the app, or is there a more "baked-in" solution you would suggest? Would love to hear your thoughts ( We're a java shop ) .. And thank you for being so supportive of your community and making these amazing videos..
I haven't been creating APIs (seriously) for a while now. Back in the days, I used Swagger for both defining and mocking APIs. I'm not sure whether that's still a good choice though. I'd need to get back to API development first.
@@DevOpsToolkit thanks!
How much memory/cpu does kim use? I'm assuming it's running in a pod in the cluster?
It is running in a Pod inside a k3s cluster. I did not write down how much mem and cpu it uses the last time I checked, but I do remember that it wasn't much.
I have a question. Can we use docker cli tool with Rancher Desktop similar to how we use Docker Desktop? For example, running docker ps, docker pull, etc
Yes we can. That was added to Rancher Desktop recently.
@@DevOpsToolkit oh nice! Thank you!
Im' not sure to understand the last CON : it's not possible to use Rancher Desktop without a GUI ??
I have 2 targets : old gaming laptop with DEbian + Gui, and a VPS server with Debian, without GUI. Currently running docker + docker-compose. (start to switch to podman + kubernetes)
As far as I know, there is no CLI with the options provided through the GUI.
@@DevOpsToolkit ok then back to start test k3d
Thankyou.
FYI: As of version 1.0 Kim is no longer shipped and has been replaced by nerdctl and the Docker CLI.
Yeah. That happened not long after i published that video. Kim replacement by nerdctl was the last thing I needed to fully switch to rancher desktop.
What's the difference between Kim and nerdctl
"we don't need Docker anymore to run containers" is a strong statement. I agree that for running and testing apps locally, we should ditch Docker and Docker composer in favour of K8s. However, development wise, Docker is not about just test apps. Some teams do need to run Docker locally for certain tasks like upgrading libraries, running unit tests, compiling, running code analysis, etc, which is much faster and simpler than installing all the tooling locally and keeping it up-to-date or versions synced with the projects'.
All those tasks that you're running locally through docker are also run remotely as well? If that's the case, isn't it easiest if they are run the same way? Than it must be K8s. On top of that, running something in k8s is not more complicated than with docker. Defining manifests is more difficult but that should not matter given that kid manifests need to be created in any case.
@@DevOpsToolkit Hey, thank you for spending some time on this comment. I appreciate it. I'm a huge fan of your work, also bought your k8s chaos engineering course on Udemy. Approved! Back to the subject, I got your point and I agree. Even though time to time, we run into problems like solving libraries dependencies (which sometimes can be a pain) or something that requires human attention to solve, we usually use a docker container with the base image to run scripts in the local directory, and, in some cases, we pass tokens via envvars for building dependencies from private repos. Creating manifests for all these scenarios can be very stressful and perhaps useless because some of them won't happen again.
@@manoelhc You're right. Still, I don't think that creation of a k8s manifest with only a Pod is (much) more complex than, let's say, Docker Compose manifest. k8s manifsts become complex when you start using things that do NOT exist in Docker.
Doesn't nerdctl do the docker compatible commands for containerd? It's part of the latest version AFAIK
nerd tl does the same commands as docker and, since the last release of rancher desktop I am not sure what is the plan. Will both nerdctl and Kim stay or the latter will be removed.
Personally, I believe that Kim is conceptually a better idea than nerdctl, but it is also much never project with more limitations and bugs.
Just published a video about using Rancher Desktop with nerdctl: ruclips.net/video/evWPib0iNgY/видео.html
Hey Victor, shouldn't we be using nerdctl instead of kim to replace docker?
That will be the subject of the video after next (9 days from now) :)
@@DevOpsToolkit cool
Just published it at ruclips.net/video/evWPib0iNgY/видео.html :)
Hi Victor,
Can we use Rancher desktop(nerdctl) with Visual Studio 2019 in the same way it works with Docker Desktop?
I'm guessing that you're asking about VS Code and the Docker plugin. If that's the case, it does not work with Rancher Desktop combined with nerdctl. However, Rancher Desktop recently enabled itself to work with Docker CLI and that might be working with VS Code. I haven't tried it myself since I tend to use nerdctl/Docker only for building images locally while everything else I'm doing is going through Rancher Desktop Kubernetes.
Victor, thanks for your response.
My dovelopment team who works on dotnet applications.
On 'Visual Studio 2019(not VS Code)', will it work without docker desktop when they want to build with docker or docker-compose?
I cannot say. I'm not using VS (without Code) so I cannot try it out.
To clarify, it works from the vs terminal bit I am not sure whether it works through the plugin.
Short answer for the video title: No, not yet, keep using Docker but watch the whole video :)
I've been digging into Rancher and Harvester lately, and have them running now. Is it feasible to install Rancher into the kubernetes cluster that Rancher Desktop builds, and integrate that Rancher with Harvester, that I have running on 3 bare metal servers ?
ideally, I want to learn more of kubernetes itself, and decided that untangling all that makes Rancher work would be a good exercise for that. Specifically the networking, which is a LOT of what makes kubernetes work.
I am not sure I understood the question, specifically about the part of rancher Desktop building a cluster. Rancher Desktop is meant only for laptops. If you want to have a Kubernetes cluster on "real" servers, that's what rancher (without desktop) is for.
@@DevOpsToolkit sorry that was a badly formed question. I am looking for a quick way to create the cluster that will run rancher , which will integrate with harvester to create many more clusters. I think the best approach will be to just create a k3s cluster on the harvester server, then install rancher there
By the way, the ultimate goal of all this is to quickly create clusters to learn enough kubernetes to be able to grasp crossplane. Steep climb, but it looks worth it. The IDP is a core belief of mine since day one of my devops experience 6yrs ago
That's what I would do as well.
As a side note, the initial setup is something that Tanzu solve very elegantly and I hope that rancher will do something similar.
You can install crossplane in a local kubernetes, use it to create the first real cluster, and then move it there.
Hello Viktor, any update on this topic after one year ?
Rancher Desktop improved a lot since then and it is now the only container/Kubernetes engine I use.
Could l run rancher desktop without starting the kubernetes cluster? I just need to run docker sometimes and not always need a kubernetes.
I don't think you can start it without Kubernetes. If you do not need Kubernetes at all, Rancher Desktop is not a good choice. If you need it sometimes, and at other times you need only Docker, it could still be a good choice since it's very lightweight.
Yes you can disable Kubernetes in Rancher Desktop
@@BillWoodJr You're right. I think it wasn't there at the time. I might be wrong. In any case, it's here now.
Does Rancher Desktop support VDI or virtualisation?
Good question which, unfortunately, I cannot answer. I haven't used VDI myself (at least not yet).
this is great....Today is January 29, 2022, and I think Docker linux is also available...............:) Thanks Viktor
You're right. Docker recently released Docker for Linux. There's nothing better than the healthy competition that forces all involved to improve.
If you just need to build and push images, why not connect docker cli to lima directly? Their page has exact steps to do that.
That's correct if building and pushing images is all you need. Nevertheless, many need a local Kubernetes cluster as well.
Just use Linux, problem solved ;). Jokes aside, really solid comparison. I'm looking forward to KIM maturing too, it is a great idea.
Maybe next video about podman?
Editing of the next video is already ongoing. I'll do my best to do it after that one.
💯! Buildah and podman are a great combination.
Why not use Docker inside WSL? It's much closer to production environment (Linux) and it doesn't have the limitations of Docker Desktop.
P.S. OK I now see that this is a MacOS video ... this comment is intended for Windows users 😁
For building container images, I would probably go with Docker engine alone in Linux (including WSL). Still, I do like using a VM. It needs a bit extra memory and CPU but it allows me to start it when I want it and easily destroy everything when I'm done. I might be the only person who prefers it that way :)
Are windows containers supported?
I haven't tried it :(.
The Windows laptop I have stopped working a while ago. Normally, I would spin up a Windows VM in Azure to test things out but it does not allow VMs inside the VM so I cannot try out Rancher Desktop over there.
It would be great if you can try it out and let me know whether they work. My best guess is that they don't.
@@DevOpsToolkit right now I can't either. On the docs there is no specific statement, only about running the server on windows pc or nodes. Some customer needs .net in their cluster but Rancher seems still too young to replace Docker
@@alessandro-affinito I doubt that Rancher Desktop will support Windows containers any time soon. I don't think there is enough demand for that. So, for those that do need to run Windows containers locally (directly or in Kubernetes), Docker Desktop is probably the only option and might stay like that for a while or, maybe, even forever.
minikube is a mess. I would rather create vps K8 cluster from scatch. My wireless network connection on my laptop left in tack.
Is anyone worried that this is still not GA Or 1.0.0?
It is a project in it's early stages meant for early adopters and contributors. There are advantages and dangers alike being an early adopter.
You look like Oleksandr Usyke
Boxer?
Yes man, you beat Anthony Joshua, what a match....
Rancher Desktop has moved on quite a bit since this video; no more Kim, can now use with Docker or containerd backend... maybe time for a new video?
At the time I made that video, I had no idea that the team working on Rancher Desktop would be moving so fast. I'm impressed. However, I suspect that it'll continue changing rapidly for a while longer so I might do another video around the end of the year (once it slows down, if ever).
@@DevOpsToolkit yes, but this is one of the top results for "docker desktop vs rancher desktop" and your recommendation is "no" for Rancher Desktop. I think it would be "yes" now :)
If I remember it correctly, I strongly recommended Rancher Desktop for running local Kubernetes clusters, but not for building container images (with kim). If that's the case, I think I rectified that in ruclips.net/video/evWPib0iNgY/видео.html. Is that what you meant?
@@DevOpsToolkit yes, can use nerdctl or docker now
# TIL
Try Colima
I spent very limited time with it. I should go deeper.
Adding it to my TODO list... :)
minikube works in my m1 mac
Which driver are you using?
@@DevOpsToolkit Hi, check your Twitter. I have sent you some screenshots.
@@raihanameen Great! Let's continue the conversation there.
Still keeping docker with minkube using docker driver. So much lighter than VM based drivers
If you are using minikube, docker driver is the one I like the most. It is still a VM though.
This accent is killing me, please tell me where do you come from? :)
I was born in the same country as you (Serbia) and I spent more than half of my life in Spain (Barcelona).
@@DevOpsToolkit Muy bueno! Smart move, BC is fantastic! You still got that thick Balkan accent :)
I have moved to Portugal couple of years ago, so we are again on the same peninsula! :p
what about now (early 2024) ?
Docker desktop is good but I still prefer Rancher Desktop if i do no need to create and destroy clusters often. When i do, i prefer KinD on top of docker Desktop.
The new Apple silicon macs are just useless for this kind of use.
Why? What's wrong with Apple silicon today?
I had problems with it early on but today everything works like a charm and I cannot imagine going back to Intel.
@@DevOpsToolkit Am not able to run a proper 3 worker 1 master kubernetes cluster with Ubuntu Arm OS running on 4 virtual machines on UTM. Can you help ?
Unfortunately, i haven't tried that myself. I tend to use Rancher Desktop and when i need a "real" cluster i tend to go to cloud, often Civo since it's ridiculously cheap.