How you should run Docker locally with Docker Desktop

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
this video is from my Docker Mastery course on udemy and I've pulled this section of videos on installing Docker desktop and put them into a playlist here on YouTube you can get all the details in this series of videos look for the playlist somewhere in this interface on Mac Windows Linux both desktop and server for my preferred way to install Docker desktop and learn Docker and kubernetes locally on your machine you can get course discount coupon links below the Discord Community I have for all things devops my podcast live show everything else get those links below and I hope you enjoy now that you know a little something about Docker let's get you the docker setup that you're going to use and the other complementary tools to support that in this specific video is about how you get your Docker for this course the docker install that you're going to use on each lecture now over the course of this whole thing you may eventually run Docker different ways or other container tools but for now let's just focus on getting you the docker for the main part of the docker sections of this course in fact there are lots of ways to run a Docker container now as opposed to when Docker was invented there was really just Docker but now we have standards in the industry and we have tons of tools you can run them in the cloud you can run them on servers on your local machine in a virtual machine in the cloud closet on a Raspberry Pi tons of ways to run Docker but I want to focus on how you're going to learn the beginnings of Docker in this course and Docker Inc itself has decided to focus now on Docker desktop as the primary means for developers operators CIS admins or anyone wanting to learn Docker that's how you should be learning dock to begin with Docker desktop I consider it the best way for you to run the docker tools because there's more than one on Mac windows and now Linux desktops and you can see even by the about screen that there's more than a few Tools in fact this is really a small subset of all the tools that come with Docker desktop when you install it on your machine think of Docker desktop as more of a tool bundler that collapses all a bunch of different tools together in an automated install and keeps them up to date for you now in case you didn't know Docker desktop is not for servers Docker engine is a tiny little component unit of the entire Suite of tools coming with Docker desktop and Docker engine would go on a server that you might want to run a container on a server but Docker desktop itself shouldn't run on servers you shouldn't install it on Windows server or if you want to try to run it on a Linux server you're not going to run the desktop Edition you're going to go look for Docker engine and in case you read some of the stuff as you're setting up Docker desktop or if as you're signing up for your Docker Hub account Docker desktop is a part of a subscription service but there's lots of free ways to use it some of the tools in it are open source but Docker desktop it the wrapper the packaging that puts all this together and puts it on your machine locally that's not open source that is actually licensed but good news I have actually looked throughout all the licensing details and confirmed with one of the executives at Docker that Docker desktop is free for learning free for personal use and it's only until you get into the Enterprise that you have to start paying for it so don't worry about it for this course even if you work in a large company and you need to use your company's computer as long as you're just using Docker desktop for learning you're good to go you're fine using it for free in this course and as I mentioned Docker desktop includes many tools the list is long this is just a few of them some of the main tools there's all sorts of other things that go on in the background to make it work with vpns to make it work on any networks with any of your storage locally now because there's so many different ways today to run Docker or any containers dozens of tools out there dozens of ways in the cloud and on servers I'm going to focus on you running it locally for the beginning parts of the course until we get to a time where you would need something like a specific server or a set of servers so if you can't run it locally that's okay you can use play with Docker and all the other things that I mentioned throughout these first few sections but if you're able try to get it running locally so that it'll be easier for you to do this course now the next lecture has written details and links to all the places for the different operating systems for getting Docker desktop your code editor all the other things you need for this course but for the rest of this video I'm going to talk about why we even need to have this section why do we need to describe the install of Docker if it's a GUI install that's just next next complete why do we need to have this whole section and there are good reasons for that so one each OS has its nuances and complexities with Docker or container tooling and I wanted to highlight those things for each OS so that you could prepare now so that later on you don't hit roadblocks or hiccups I'm classifying this as a reference section if you are a Windows user and you have no interest in Mac then skip the Mac video they're not that long but just go ahead and skip the Mac one anyway if you're not needing to run on a Linux desktop skip that video and just consider this as a reference section for the proper Docker setup for taking this course per OS and in case you didn't get this point earlier in one of the first few lectures Docker or any container requires the container image to run on a kernel that was designed for it if you build an application for Windows it has to run on Windows but most containers and I would say 98 99 of containers run on a Linux kernel which means when you install Docker desktop or some of the alternate ways to run containers these tools typically will manage a local VM running a tiny Linux kernel and a tiny container file system so one of the big things Docker desktop will do for you is manage to set up the upgrading the security and then the deletion of that tiny VM all for you transparently in the background and this is true on Windows and Mac even on Linux Docker desktop will make a Linux VM on its own a little tiny thing in the background to install all these tools keep the version up to date and when you run containers a again on Docker desktop for local Docker use it's going to run all that stuff in a VM there are many many tools out there I've mentioned and there's even more if you consider the cloud but there's still a significant number of tools that aren't Docker official that could let you run containers I like to consider all the different ways of course when I want to learn everything in the ecosystem but when you first start learning you kind of just need to learn one so we're going to learn Docker first and then we'll talk about other tools as they become relevant of all the ways to run containers I like to classify them into three main types what we're going to be focusing on the beginning of this course is the first one there locally running Docker desktop Rancher desktop one of these other tools that runs containers on your local machine and later you can learn how to run containers on a server with something like Docker engine or kubernetes itself and then there's also cloud services that you don't even really talk to Docker or kubernetes directly they just run this stuff for you like fargate Cloud run app runner on AWS there's all sorts of ways to run containers in fact now just in the clouds there's dozens of ways because containers are now standard and so there's a lot of ways and maybe you decide eventually to use some other tool to run your containers on your local machine or on your servers but for now we're just going to focus on Docker and what I mean by that is that Docker engine was the first way to run a modern container in 2013 and Docker kind of invented those three different ideas that you learned about a few videos ago but because this is all open source all these other tools have shown up but it's okay because they all now use the oci standards the open container initiative they actually have a website link in the references for this video but that's what all these different tools are using so if you build an image with Docker or some other tool no problem all the container runtimes can run it and there's many ways like I said so just think of these tools as ways to build manage and run containers from container images the containers are standard through oci it's a standard interface the images are a standard format with the oci and even the registry where we store all these in images for then downloading to servers that's a standard as well under oci and like I mentioned a while ago I'm assuming that underneath all of this that you're using the docker CLI and the docker engine if you use a different tool you could still run containers but their commands would be different so we want to start with Docker it's still the most popular way to run containers on your local system now I mentioned a few other ways to run containers locally so I just want you to know this up front again you're not going to download these tools yet but there are plenty of other ways if you're not wanting to run Docker desktop even though it's my favorite long term we got this whole list here and there's a link in the references for this video but you can see that there's a bunch of other tools down here you might hear things like Rancher desktop or multi-pass or podman or nerd control or just there's a lot right and they all have different features and different focuses and they can all run the same container images in containers and in the next lecture you're going to get the links to download and install Docker and then from there you might want to watch the specific video in this section for the operating system you're going to use in this course Mac windows or Linux
Info
Channel: Bret Fisher Docker and DevOps
Views: 11,586
Rating: undefined out of 5
Keywords: docker tutorial, docker tutorial for beginners, docker desktop, learn docker, install docker desktop, docker desktop license, docker desktop faq, docker desktop for learning, install docker for learning, learn kubernetes, install kubernetes for learning, docker course, docker on windows, docker containers, docker compose, docker for beginners, docker basics
Id: 7zYVbJ9df9M
Channel Id: undefined
Length: 10min 10sec (610 seconds)
Published: Mon Sep 12 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.