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

Комментарии • 226

  • @KhajaMD143
    @KhajaMD143 4 года назад +197

    That's super crisp presentation. Straight to the points and no beating around the bush. Fantastically condensed information.

    • @codingadventures1172
      @codingadventures1172 4 года назад +5

      Thanks, Moin. Glad you enjoyed it!

    • @iam_ktp
      @iam_ktp 2 года назад

      Could not agree more. Super crisp and helpful. Thank you @Coding Adventures!

    • @TECHiHOBBYIST
      @TECHiHOBBYIST Год назад

      Uploaded 2 year ago
      This comment I was one year early here let leave a comment

    • @pattobin7066
      @pattobin7066 6 месяцев назад

      Easy, easy, easy and interesting to boot.

  • @DonPierreHalfaway
    @DonPierreHalfaway 3 года назад +28

    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.

  • @sinajafarzadeh9577
    @sinajafarzadeh9577 2 года назад +20

    I wish Peter would run a whole "Docker course." Honestly, this guy is fantastic.

  • @skypechess
    @skypechess 4 года назад +14

    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.

    • @Pulkit__7
      @Pulkit__7 3 года назад

      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

    • @skypechess
      @skypechess 3 года назад +1

      @@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.

    • @Pulkit__7
      @Pulkit__7 3 года назад

      @@skypechess wow

    • @oxolov
      @oxolov 3 года назад +3

      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.

  • @pavileanumircea1446
    @pavileanumircea1446 4 года назад +9

    This is the far the greatest intro, presentation on any get started videos on internet. Hope everyone can find this link.

  • @HasanFarooq96
    @HasanFarooq96 4 года назад +8

    You rarely get to view such amazing presentations. Thank you!

  • @rajubendran7318
    @rajubendran7318 2 года назад +4

    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!

  • @laszloszoke18
    @laszloszoke18 2 года назад +1

    I just started Docker; this introduction was helpful. Thank you very much!

  • @waltwilliams6012
    @waltwilliams6012 3 года назад +2

    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.

  • @babakb2k8
    @babakb2k8 7 месяцев назад

    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!

  • @queiroz-rafael
    @queiroz-rafael 2 года назад +1

    Great! Very clear contextualization how Docker solution fits most environments.

  • @carlosmoliveira
    @carlosmoliveira Год назад

    The most straightforward video I have watched to understand Docker. Thanks, Peter!

  • @pattobin7066
    @pattobin7066 6 месяцев назад

    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.

  • @miskbalder
    @miskbalder 2 года назад +1

    awesome, got me from close to zero to quite solid first step on the understanding docker in such a short time

  • @carlsheldon2912
    @carlsheldon2912 3 года назад +5

    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.

  • @8bitseed
    @8bitseed 4 года назад +13

    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.

  • @antoniomasotti8060
    @antoniomasotti8060 3 года назад +2

    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!

  • @meh398
    @meh398 2 года назад +1

    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.

  •  2 года назад +1

    Very nice presentation, you answered all of my initial questions about Docker, now I know how to get started!

  • @SrihariSridharanR
    @SrihariSridharanR 3 года назад +6

    This presentation is to the point! Thank you for investing your valuable time and creating this content! All the best for your future presentations.

  • @s0ngf0rx
    @s0ngf0rx 4 года назад +38

    for a complete beginner this was very approachable. does any one recommend any other tutorials for novices?

    • @kjn5991
      @kjn5991 3 года назад +1

      Traversy Media has 3 tutorial videos involving Docker. But they do not cover whole lot of subjects.

    • @cla1814
      @cla1814 3 года назад +9

      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.

    • @ahmedfanatsah860
      @ahmedfanatsah860 3 года назад +2

      @@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

  • @philippfreimann8938
    @philippfreimann8938 2 года назад +1

    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.

  • @tamirnoach2496
    @tamirnoach2496 4 года назад +6

    What a great presentation on docker . thanks so much.

  • @reactcoder
    @reactcoder 2 года назад +1

    Thanks for the lesson, that help me a lot !

  • @itsallabouttech562
    @itsallabouttech562 2 года назад +2

    This was great! An awesome video that helped me get a good understanding of the overall basics. Thanks!

  • @klausvonshnytke
    @klausvonshnytke 3 года назад +1

    Appreciate your work on this presentation. Really the kind of lecture that speaks to me.

  • @amk0613
    @amk0613 3 года назад +1

    Thank you so much! For a beginner, this presentation has been incredibly useful

  • @KritulRathod
    @KritulRathod 2 года назад +1

    Great content with the basics of docker. Good to refresh commands with this talk before starting a project

  • @muzammilrafay4348
    @muzammilrafay4348 3 года назад +1

    Excellent Explanation of Docker :-)

  • @harithzainudin9594
    @harithzainudin9594 2 года назад +1

    Clear and concise!!

  • @cmindia2003
    @cmindia2003 Год назад

    superb..explained everything about docker in 25 mins

  • @aaronbell5994
    @aaronbell5994 3 года назад +1

    Efficient and pleasant presentation, Mr. McKee! Thank you! 😁

  • @kartz2010
    @kartz2010 2 года назад +1

    Super quick and super clear! Thank you so much!

  • @Tolmachovtv
    @Tolmachovtv 6 месяцев назад

    So straght and easy to understand. Nice job!

  • @frankmwale1580
    @frankmwale1580 Год назад

    Now I wonder what the other 1hr30min tutorials are teaching 😂... Is there more to it than this?
    This is clear and straightforward

  • @djwave28
    @djwave28 3 года назад

    Now I understand Docker. Thank you for bringing me in the door.

  • @FitFatFern
    @FitFatFern 3 года назад +4

    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.

  • @nickcourage7059
    @nickcourage7059 4 года назад +3

    Great content - thank you! Very helpful for a beginner.

  • @yosephsolomon5624
    @yosephsolomon5624 4 года назад +3

    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.

    •  3 года назад

      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?

  • @tonyyang8538
    @tonyyang8538 4 года назад +14

    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

    • @DockerInc
      @DockerInc  4 года назад +3

      Yes! You are correct. I should have been saying "container" and not "image". Sorry for the confusion.

    • @SpectatorAlius
      @SpectatorAlius 3 года назад +1

      @@DockerInc You also used 'name' not only for the name, but for the tag, teaching beginners to confuse the two notions.

    • @zoranavukmirovic8927
      @zoranavukmirovic8927 2 года назад

      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.

    • @lawrencechung7025
      @lawrencechung7025 2 года назад

      By the way, Ptolemy is the name of a Greek mathematician and it's pronounce "ˈtɒləmi" not "poh ta lomy".

  • @sherazahmedch
    @sherazahmedch 4 года назад +1

    Very good presentation. Smooth and crisp. Hopefully it will help me and many others to learn docker fast.

  • @harunisiaho
    @harunisiaho 4 года назад +1

    Amazing presentation. Very clear and concise. Thank you

    • @newestengineer
      @newestengineer 2 года назад

      He does not get to the point, and he does not know the difference between images and containers.

  • @EnricoCupellini
    @EnricoCupellini 4 года назад +1

    this presentation should receive a bunch more likes

  • @ahmedelkaffas3098
    @ahmedelkaffas3098 2 года назад

    informative & insightful and straight to the point !

  • @pavel_espinal
    @pavel_espinal 2 года назад

    Brilliant exposition. Succinctly explained.

  • @mparikshit
    @mparikshit 11 месяцев назад

    Thank you, extremely useful 🙏

  • @Savatore83
    @Savatore83 4 года назад +3

    the docker-compose should be explained more in detail! it is a powerful tool !

    • @SpectatorAlius
      @SpectatorAlius 3 года назад

      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.

  • @eink-reviews
    @eink-reviews 3 года назад +1

    Captions are no longer in sync after trimming. Workaround is using auto generated captions or having the transcript open in another window.

  • @yannickbaudu9818
    @yannickbaudu9818 Месяц назад

    All is clear thanks a lot !!

  • @kvnptl4400
    @kvnptl4400 2 года назад

    thanks for the quick demo

  • @temidayorichard3305
    @temidayorichard3305 2 года назад

    Great Guy! Fantastic presentation

  • @KangJangkrik
    @KangJangkrik 3 года назад +6

    19:45 That's really fast internet, how much speed?

  • @charlesxavier2911
    @charlesxavier2911 4 года назад

    Such a good demo with such few likes? Aren't there many people learning Docker these days?

  • @RomuloMagalhaesAutoTOPO
    @RomuloMagalhaesAutoTOPO 3 года назад +1

    Wonderful, thank you

  • @ruslanmustaev8170
    @ruslanmustaev8170 4 года назад +5

    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?

    • @talalyousafkhan3710
      @talalyousafkhan3710 2 года назад +1

      Intall fish terminal. THen open your terminal and type "fish" and it will be updated to a colorful terminal with enhanced feastures.

  • @grahamsuku5820
    @grahamsuku5820 2 года назад

    Fantastic presentation for us as beginners..

  • @geogyzachariah5849
    @geogyzachariah5849 4 года назад

    Great video for an intro to Docker. Thank you

  • @hyperborean72
    @hyperborean72 4 года назад

    Brilliant presentation describing the very concepts

  • @robertturner574
    @robertturner574 2 года назад

    awesome makes a lot of sense now! a new tech to add >:)

  • @mohammadbarbast6524
    @mohammadbarbast6524 2 года назад

    I really enjoyed your presentations, thanks alot :D

  • @kjn5991
    @kjn5991 3 года назад +3

    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.

  • @joshuamcallister917
    @joshuamcallister917 9 месяцев назад

    🎯 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

  • @my3m
    @my3m 4 года назад +1

    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.

  • @998RC
    @998RC 3 года назад +3

    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.?

  • @renan9245
    @renan9245 3 года назад

    Simple and concise.

  • @RajasekharUK
    @RajasekharUK 3 года назад

    Nice one Thanks

  • @mehedees
    @mehedees 4 года назад

    I've been looking for this head start! Thanks Peter!

  • @trig33kgirl
    @trig33kgirl 2 года назад +1

    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?

  • @johnc7436
    @johnc7436 4 года назад

    Nice tutorial! Thanks Peter!

  • @cindyzhang4295
    @cindyzhang4295 3 года назад +2

    Can you upload all the files used in your videos?

  • @DebugWithAdam
    @DebugWithAdam 3 года назад

    Superb method of tutoring.

  • @rahulj2167
    @rahulj2167 2 года назад

    Got more idea from this video than from my pluralsight subscription. Sigh!

  • @madpb
    @madpb 3 года назад

    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.

  • @joynerortiz2545
    @joynerortiz2545 3 года назад

    Yisus crist, what a nice video man, Thanks 4 ur help.

  • @mansha99
    @mansha99 3 года назад

    Super cool.
    Thanks a lot.

  • @muditmittalthechef
    @muditmittalthechef 3 года назад +1

    Thanks for the video. Whenever I run an image, it stops automatically in few seconds, some times immediately. any suggestions?

  • @juanmonster6232
    @juanmonster6232 Год назад

    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

  • @vikrskv0
    @vikrskv0 3 года назад

    really, an excellent tutorial, thank you!

  • @sebastientetaud7485
    @sebastientetaud7485 3 года назад

    Very good tutorial! Thank you !

  • @OldKingMaple
    @OldKingMaple 2 года назад

    Well done!

  • @romanhrechuk7775
    @romanhrechuk7775 3 года назад

    Thanks a lot for your work!

  • @RobMitchell001
    @RobMitchell001 3 года назад

    Well done, thank you!

  • @jeanpeuplu3862
    @jeanpeuplu3862 2 года назад

    Thank you!!!

  • @annachalom
    @annachalom 3 года назад

    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

  • @MostafaZeinali
    @MostafaZeinali 2 года назад

    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?

  • @P1gcell
    @P1gcell 3 года назад

    Hi, just want to warn that the subtitles are not synchronized with the video, thanks for the tutorial !

  • @Thongtra
    @Thongtra 4 года назад

    This clip is awesome!

  • @davidchokhonelidze8170
    @davidchokhonelidze8170 3 года назад

    Great video

  • @jeffkorenstein5507
    @jeffkorenstein5507 3 года назад

    This would be helped by some definitions. What is the difference between a process and a container? Why would you need multiple images?

  • @hassanebendaoud4446
    @hassanebendaoud4446 2 года назад

    omg greate video, thanks

  • @amirnoorani5017
    @amirnoorani5017 3 года назад

    Great introduction

  • @adriannvalera9923
    @adriannvalera9923 3 года назад +1

    sir, your closed captions are late. thank you.

  • @truchTV
    @truchTV 15 дней назад

    nice prez, very clear ! what setting are u using in iterms2 to have such great colors ?

  • @ManojCharles27
    @ManojCharles27 2 года назад

    thank you.

  • @chrisallison9146
    @chrisallison9146 4 года назад +1

    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?

    • @romanval69
      @romanval69 4 года назад

      The containers have to hold the entire framework as a binary executable. These binaries aren't stored you push-pull them though.

  • @zahidal-islam8274
    @zahidal-islam8274 2 года назад

    Great!

  • @jordanhassmann2228
    @jordanhassmann2228 3 года назад +2

    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?

    • @jordanhassmann2228
      @jordanhassmann2228 3 года назад

      Or even better if we could see all the files in that directory that apply

    • @dwanga4426
      @dwanga4426 2 года назад

      @@jordanhassmann2228 Did you sort this out?

  • @yourasa1213
    @yourasa1213 2 года назад

    I think 4:09 is the most important of docker.

  • @carlosjulianramirez5514
    @carlosjulianramirez5514 3 года назад

    Great!! Thanks

  • @Shpa4ina
    @Shpa4ina 3 года назад

    The default subtitles are shifted relative to the video and are about 30 seconds ahead of the video. Please fix it