How to Get Started with Docker
HTML-код
- Опубликовано: 22 авг 2024
- --
Containers are essential in today's modern development world. The Docker toolset is the easiest way to get started with containers and Kubernetes. In this talk, we'll walk through installing Docker and Kubernetes, building our first images, running our images locally, connecting containers using Docker networking, and we'll also take a look at some best practices for setting up your development environment. You do not need to know anything about containers to attend this talk. We'll start at the beginning, explaining and demonstrating everything you need to know to get started.
Speaker: Peter McKee, Docker
Twitter: @pmckee
That's super crisp presentation. Straight to the points and no beating around the bush. Fantastically condensed information.
Thanks, Moin. Glad you enjoyed it!
Could not agree more. Super crisp and helpful. Thank you @Coding Adventures!
Uploaded 2 year ago
This comment I was one year early here let leave a comment
Easy, easy, easy and interesting to boot.
This guy gets 5 stars in my book. He teaches what took others 45 minutes in 15 minutes and it makes good sense and is not off topic.
I wish Peter would run a whole "Docker course." Honestly, this guy is fantastic.
As a completely new in Docker I can tell that this presentation is as good as I would spend 30 minutes in a nuclear power plant with an engineer who describes me the principles by pointing on buttons and telling me: Push this, then push that.
After that half an hour I can push buttons in right orders (maybe) but I will not have the slightest clue what's going on. Well, it is a way to get started with something but I would try to find another engineer with teacher skills.
I guess, If I were you, I would start with understanding servers in general, and how you can host your own website on a virtual private server (VPS). Start by making an HTML page, and write some backend code with PHP. Like really simple one.
Now host it on internet, but on VPS. Learn how to install on a simple OS like Ubuntu, all the things required, like php version 7, (if your original code was done in php), then a apache server which servers as a concierge, taking people visiting your website to proper location in your VPS.
This simple process, I bet if you start from scratch and are complete beginner you can learn and host your website in 1 week, maximum.
Now it is really really difficult to explain in the comment, as it would result in a very long book, but you get the gist. Just keep on learning and advancing like this, and learn what is docker, but mainly how it simplifies stuff in the example given above
@@Pulkit__7 First thing first: I really appreciate your kind answer.
Second thing: let me to quote myself. "as a completely new in Docker". I repeat "...in Docker...". My professional background:
- maths and physics teacher
- almost finished programming mathematician, skipped the final exam but wrote a thesis: online game developed in PHP and Postgres.
- 5 years as SW test FW developer (creating a FW which was used for around 15 years)
- one of the devs of the game of Battlestations:Pacific
- 10 years at a telco company developing microwave network equipment
I think it can be called a solid background. Now with this experience I keep my verdict: I would try to find another engineer with teacher skills.
@@skypechess wow
The idea of the talk is to present an overview of Docker through an example. You are expected to explore each concept further. Would you really be ready for pushing the buttons at a nuclear power plant after an introduction from even the best engineer, without reading the manual? No, the engineer would explain how things worked at a higher level to speed up your progress when learning about the actual buttons.
I am also new to Docker, with a much more modest background than yours, and have gained a lot from the video. I feel I now have a very clear understanding of what awaits me.
This is the far the greatest intro, presentation on any get started videos on internet. Hope everyone can find this link.
You rarely get to view such amazing presentations. Thank you!
Very nice and simple presentation got to the point very quickly and you could tell that this guy is simply speaking from his real work experience not just straight out of a text book or anything like that. Well done Sir!
I just started Docker; this introduction was helpful. Thank you very much!
I now have a greater understanding of Docker. It looks like I can build an overall container, to suit my needs, assembled from sub-containers retrieved from the Docker Hub. I will now doubt view this video a few more times during the process mastering Docker. ----------------> Thank You.
Although I have had some experience with Docker and containerisation, the video was so smooth and presentation was so good that I couldn't stop watching whole video!
Great! Very clear contextualization how Docker solution fits most environments.
The most straightforward video I have watched to understand Docker. Thanks, Peter!
Absolutely brilliant presentation. Peter has made this so easy. I touched on Docker a few years ago, and needed a refresh. Best place ever to do it. Fantastic stuff, thank you.
awesome, got me from close to zero to quite solid first step on the understanding docker in such a short time
All these tutorials have the exact same problem. You start of with "What you're looking at is a docker file", but how did you get to where we're seeing this? What IDE are you using and how did you set it up? How did you get to the screen where you're at.
Quick start guides is the same problem, where is the CLI in docker? For a project this big, the getting started documentation is pretty terrible.
on 3:53 there is a conceptual mistake - an image is a template to create containers. And a container is a runnable instance, which actually runs on server. So it does not only makes sense to "run" several images on server, but technically not possible (to "run" images at all). So please beware of confusion.
Great! It's fantastic how you condensed everything one needs to know to get started in less than half an hour... Thank you very much!
I love how he did the demo. I am just taking my first steps i to Docker and this is exactly the demo I need and was searching for the past few hours.
Very nice presentation, you answered all of my initial questions about Docker, now I know how to get started!
This presentation is to the point! Thank you for investing your valuable time and creating this content! All the best for your future presentations.
for a complete beginner this was very approachable. does any one recommend any other tutorials for novices?
Traversy Media has 3 tutorial videos involving Docker. But they do not cover whole lot of subjects.
Go to the docs after. The sooner the better, problem with tutorials is that they get outdated and a lot of commands and structure dramatically changes with updates.
@@cla1814 On top of that they don't cover everything, I think one should always go to docs instead of tutorials, no one can gives you better information than the creator itself
Great tutorial. I often heard about docker before, but never found a starting point. I managed to run a nextcloud image parallel to watching this intro! Thanks a lot.
What a great presentation on docker . thanks so much.
Thanks for the lesson, that help me a lot !
This was great! An awesome video that helped me get a good understanding of the overall basics. Thanks!
Appreciate your work on this presentation. Really the kind of lecture that speaks to me.
Thank you so much! For a beginner, this presentation has been incredibly useful
Great content with the basics of docker. Good to refresh commands with this talk before starting a project
Excellent Explanation of Docker :-)
Clear and concise!!
superb..explained everything about docker in 25 mins
Efficient and pleasant presentation, Mr. McKee! Thank you! 😁
Super quick and super clear! Thank you so much!
So straght and easy to understand. Nice job!
Now I wonder what the other 1hr30min tutorials are teaching 😂... Is there more to it than this?
This is clear and straightforward
Now I understand Docker. Thank you for bringing me in the door.
For a complete beginner, this tutorial was incredibly confusing. He jumps straight to explaining what a dockerfile is and what can be done with it, but now on how you can create one. I could have followed along the entire presentation if that crucial step wasnt overlooked. So sadly this video does nothing to help me get started at all.
Great content - thank you! Very helpful for a beginner.
My first docker video and it’s nice introduction but you didn’t make distinction between image and container in many places.
It’s confusing when you say ‘name of the image’ to mean ‘name of the container’. The ‘docker start’, ‘docker rm’ commands and the ‘-name’ parameter in ‘docker run’ command take the name of the container, but you keep saying ‘the name of the image’. After reading the documentation, I realized that running the image with ‘docker run’ command means creating container and starting it. It would have been nice to make that distinction for a beginner.
I agree, as a beginner, the concepts of images and containers are a bit confusing as it is. "If you don't name your images, docker will name them for you." Isn't that the container name?
Thanks for the clear and concise presentation Peter. It's just one thing that at 13:06 you referred to "crazy_ptolemy" as the "image name". Shouldn't that be the name of the container and that "hello-world" being the name of the image? I'm new to docker so plz correct me if I'm wrong :D Thanks
Yes! You are correct. I should have been saying "container" and not "image". Sorry for the confusion.
@@DockerInc You also used 'name' not only for the name, but for the tag, teaching beginners to confuse the two notions.
You are right. You build images and you run containers. crazy_ptolemy is a container! He makes the same mistake few times during the presentation.
By the way, Ptolemy is the name of a Greek mathematician and it's pronounce "ˈtɒləmi" not "poh ta lomy".
Very good presentation. Smooth and crisp. Hopefully it will help me and many others to learn docker fast.
Amazing presentation. Very clear and concise. Thank you
He does not get to the point, and he does not know the difference between images and containers.
this presentation should receive a bunch more likes
informative & insightful and straight to the point !
Brilliant exposition. Succinctly explained.
Thank you, extremely useful 🙏
the docker-compose should be explained more in detail! it is a powerful tool !
Exactly! The video says it will show how to *install* Docker, yet the entire video assumes Docker is already installed on your "local machine". But he never even clearly explains that: I was not sure until I saw some clear signs that he was running Terminal on a Mac.
But this is exactly what I most wanted to see, since the instructions on the Docker website are also skimpy on saying what command runs on which machine (if you have Docker, you must have a machine in the Cloud).
Even more disappointing, the Docker build on my local machine fails with the surprising message (it was not listed in any list of requirements shown by following the instructions) that Docker Desktop will not run on *any* Windows 8 machine.
Captions are no longer in sync after trimming. Workaround is using auto generated captions or having the transcript open in another window.
All is clear thanks a lot !!
thanks for the quick demo
Great Guy! Fantastic presentation
19:45 That's really fast internet, how much speed?
Such a good demo with such few likes? Aren't there many people learning Docker these days?
Wonderful, thank you
Thank you, Peter. This presentation is as good as usual. It would be great if you provide a bit more information about volumes, please. Your terminal is awesome, so colorful, could you tell us how did you do that?
Intall fish terminal. THen open your terminal and type "fish" and it will be updated to a colorful terminal with enhanced feastures.
Fantastic presentation for us as beginners..
Great video for an intro to Docker. Thank you
Brilliant presentation describing the very concepts
awesome makes a lot of sense now! a new tech to add >:)
I really enjoyed your presentations, thanks alot :D
It would be nice if they could port Docker Desktop for Linux too. I can handle the CLI, but I'd like to do things with GUI as much as possible.
🎯 Key Takeaways for quick navigation:
00:00 🚀 Introduction to Docker
- The speaker introduces the topic of Docker and the agenda for the session.
01:27 🐧 Challenges of Traditional Server Management
- Discusses the difficulties of managing traditional servers, including updates, configurations, and scalability issues.
- Shares a personal experience with a large number of servers in a data center.
03:22 🐳 Docker as a Solution
- Explains how Docker and containers provide a solution to server management problems.
- Highlights the concept of bundling applications, OS, and dependencies into images for easy deployment.
04:51 🏗️ Three Phases of Docker Focus
- Discusses the three key phases of Docker: building images, shipping images, and running images.
- Explains how Docker enables CI/CD and application testing.
05:48 🧱 Creating a Docker Image
- Walks through the process of creating a Docker image using a Dockerfile.
- Covers commands like FROM, WORKDIR, ENV, COPY, RUN, and CMD in Dockerfile.
08:51 🛠️ Building and Running Docker Images
- Demonstrates how to build and run a Docker image, including mapping ports for network access.
- Shows how to start and stop Docker containers.
11:56 📄 Viewing Docker Container Logs
- Explains how to view container logs and follow them in real-time.
- Demonstrates the Docker logs command.
16:25 ☁️ Pushing Docker Images to Docker Hub
- Guides the process of pushing a Docker image to Docker Hub.
- Shows how to create a repository on Docker Hub and use the docker push command.
20:12 🚀 Pushing Images to Docker Hub
- Pushing Docker images to Docker Hub.
20:41 📤 Pulling Images from Docker Hub
- Pulling Docker images from Docker Hub.
21:10 🐳 Summary of Building and Running Images
- A summary of building and running Docker images.
21:38 🌐 Introduction to Docker Compose
- Introduction to using Docker Compose for managing multiple services.
22:07 🏗️ Docker Compose Configuration
- Explanation of Docker Compose configuration for services.
22:37 🚚 Running Services with Docker Compose
- Demonstrating how to use Docker Compose to run services.
23:06 📦 Managing Images and Containers with Docker Compose
- Managing images and containers using Docker Compose.
24:08 🛑 Stopping and Removing Containers
- Stopping and removing Docker containers using Docker Compose.
24:39 💽 Running a Database Service
- Setting up and running a database service using Docker Compose.
25:13 📂 Docker Compose Volumes
- Explanation of Docker Compose volumes for persistent storage.
25:42 🐵 Running MongoDB with Docker Compose
- Running MongoDB with Docker Compose and managing volumes.
26:14 📊 Connecting to MongoDB
- Connecting to a MongoDB database container using a client.
26:46 📦 Benefits of Docker Compose
- Highlighting the benefits of using Docker Compose for managing multiple containers.
27:14 🚀 Recap and Future Learning
- Recap of key Docker concepts covered in the video and encouragement to explore more about Docker.
Made with HARPA AI
Very good material. I watched from a different learning platform, and they went too much into depth. I think you covered good breadth in a short amount of time.
I guess I'm in the minority. This was not helpful at all to a non-developer who is focused on infrastructure. I wanted to understand how to set up the server infrastructure to make Docker available to users, and to run applications that have already been packaged for Docker. For example, starting with a physical server that will be dedicated to running Docker packages, what next? Does Docker install on bare metal, or on top of an OS?, or is it a plug-in for VMWare? Are there any supporting servers required to make it work, like licensing servers, DB servers, web servers, etc.?
Simple and concise.
Nice one Thanks
I've been looking for this head start! Thanks Peter!
hey have u done this internship?
hey have u done this internship?
@@punjabankudiincorporate sorry, didn't get the question
@@mehedees have u done internship from tcs..45 days remote internship
@@mehedees reply fast plss
I feel like you've left out alot. For example, I needed to name my Docker file with a .Dockerfile extension, not .yml. And it seems the copy command is expecting package.json to exist on my local dir first and do I need to already have a folder named /code?
Nice tutorial! Thanks Peter!
Can you upload all the files used in your videos?
Superb method of tutoring.
Got more idea from this video than from my pluralsight subscription. Sigh!
shit.. What is that @5:07 ?? I have the little boat running.... I did what you said... I right clicked on it.. QUICK START GUIDE... got that... What is that screen @5:08?? How did you get to that?? Dam.. this is way above my level.
Yisus crist, what a nice video man, Thanks 4 ur help.
Super cool.
Thanks a lot.
Thanks for the video. Whenever I run an image, it stops automatically in few seconds, some times immediately. any suggestions?
I love the video. The only thing I hate is that I could not follow, because there was not a git repository to clone and follow along to
really, an excellent tutorial, thank you!
Very good tutorial! Thank you !
Well done!
Thanks a lot for your work!
Well done, thank you!
Thank you!!!
hi, the subtitles/ cc seem to be delayed? i dont know if this is an youtube problem or if the page can configure it, but i wanted to let you know
Docker beginner here. NAMES is the name of "containers", IMAGES is the name of the "image". You build an image. You "run" an image. You stop and start a "container". Am I right?
Hi, just want to warn that the subtitles are not synchronized with the video, thanks for the tutorial !
This clip is awesome!
Great video
This would be helped by some definitions. What is the difference between a process and a container? Why would you need multiple images?
omg greate video, thanks
Great introduction
sir, your closed captions are late. thank you.
nice prez, very clear ! what setting are u using in iterms2 to have such great colors ?
thank you.
great, concise and to the point presentation, thank you. Am a tad surprised at the size of the image, however, 1.1GB for hello-world! Is that because you used node?
The containers have to hold the entire framework as a binary executable. These binaries aren't stored you push-pull them though.
Great!
I'm getting the error "ERROR [3/5] COPY package.json /code/package.json". I assume this is because I did not have a package.json inside my directory like you. So I went ahead and added an empty one but now I get the error "ERROR [4/5] RUN npm install" and I'm assuming this is because it is empty and it doesn't know what to do with it. Could you share what is inside your package.json file?
Or even better if we could see all the files in that directory that apply
@@jordanhassmann2228 Did you sort this out?
I think 4:09 is the most important of docker.
Great!! Thanks
The default subtitles are shifted relative to the video and are about 30 seconds ahead of the video. Please fix it