Learn Docker in 7 Easy Steps – Full Beginner's Tutorial

34 Comments



A complete introduction to Docker. Learn how to Dockerize a Node.js and run manage multiple containers with Docker Compose. https://fireship.io/lessons/docker-basics-tutorial-nodejs

00:00 What is Docker?
01:54 Installation & Tooling
02:40 Dockerfile
06:06 Build an Image
07:12 Run a Container
08:52 Debugging
09:35 Docker Compose

Source code https://github.com/fireship-io/fireship.io
Official Docker https://www.docker.com

#LearnToCode #Docker

Install the quiz app πŸ€“

iOS https://itunes.apple.com/us/app/fireship/id1462592372?mt=8
Android https://play.google.com/store/apps/details?id=io.fireship.quizapp

Upgrade to Fireship PRO at https://fireship.io/pro
Use code lORhwXd2 for 25% off your first payment.

My VS Code Theme

– Atom One Dark
– vscode-icons
– Fira Code Font

source

34 Comments
    • blank
      Irek M
      May 16, 2022 19:08 pm Reply

      You're making beginners confused. This video is ful of misunderstandings
      – "Container is simply a running process" is not true. A container is an isolated group of processes isolated (aka "kernel-level virtual machine"). "Normal" processes aren't isolated, e.g. can access all user's files.
      – "Docker is a way to package software so it can run on any hardware" – is also false. Target hardware must use the same type of CPU (usually x86-64), and the same OS kernel (usually Linux, but it's also possible to build Windows Docker images). To run on any CPU, WebAssembly, JVM or scripting languages exist. Docker is a way to package to run software on any compatible CPU and OS kernel pair (usually x86-64 Linux).

    • blank
      Alterego_ace
      May 16, 2022 19:08 pm Reply

      one question, will it be possible for us to access the data stored in the volume without running the docker image ? so my docker container stored some text files into a volume but i am not able to access that text file. i want to be able to copy that text file onto my ubuntu desktop , is that possible ?

    • blank
      Aquarius26
      May 16, 2022 19:08 pm Reply

      @Fireship 8:04 I noticed something called sharp_varahamihira. Varahamihira is an ancient Vedic astrologer. Do you dabble in it?

    • blank
      Nicky Reds
      May 16, 2022 19:08 pm Reply

      @fireship Absolutely love your channel. Consider using a "De-esser" on your audio to curb the sharp "s's" in your videos. Makes a huge difference. Keep up the GREAT work!

    • blank
      Saleh M
      May 16, 2022 19:08 pm Reply

      Docker ps 🀣🀣

    • blank
      Surendra Mahobia
      May 16, 2022 19:08 pm Reply

      thank you, you have covered multiple container topics nicely in a short video. can you share if any tutorial video / analysis of containerizing all popular databases.

    • blank
      18TommyBoy
      May 16, 2022 19:08 pm Reply

      … and where is the easy steps? πŸ˜€

    • blank
      Joaquin Garcia
      May 16, 2022 19:08 pm Reply

      Gracias ❀️

    • blank
      Carsanova diDrifto
      May 16, 2022 19:08 pm Reply

      Hey fam, I hope that you and your loved ones are well. I would like to ask you the most important question ever asked:

      Who is Jesus? Not who is He to you. Rather, who is He really?

      Jesus is the Son of God, who came to the world as a man. He lived a perfect and sinless life . Even though He was perfect and sinless, on the cross of Calvary God wrathfully punished Him for the sins of the world. 3 days later He rose from death. Now He is seated at the right hand of God, ruling as King over Heaven and Earth.
      On the judgment day He will judge you, me and every human being that has ever lived. Those who believed in Him will enter eternal joy with Him, but those who did not believe in Jesus will be sent to eternal condemnation.

      So turn from your sins and believe in the Jesus. Believe and hope that you can be forgiven for all your sins because of His death and resurrection. He took your place in Hell, so that if you submit to Him as your Lord and God, you can be forgiven and take His place in heaven- you will be made sinnless and perfect before the Holy Father. He'll also give you a new heart and mind that can love and obey Him.

      Jesus lives so that you can have true life and freedom, and most importantly so that you can have an eternally peaceful relationship with God.

      You are dead, and Jesus is your Hope of love.

      Acts 15:11
      ”On the contrary, we believe it is through the grace of the Lord Jesus that we are saved, just as they are."
      Ephesians 1:7
      ”In Him, we have redemption through His blood, the forgiveness of our trespasses, according to the riches of His grace"
      Ephesians 2:8
      ”For it is by grace you have been saved through faith, and this not from yourselves; it is the gift of God,”

      John 11:25-26: "Jesus said to her, 'I am the resurrection and the life. The one who believes in me will live, even though they die; and whoever lives by believing in me will never die. Do you believe this?'
      1 Corinthians 6:14: "And God raised the Lord and will also raise us up by his power."
      Romans 6:9: "We know that Christ, being raised from the dead, will never die again; death no longer has dominion over him."

    • blank
      Kshitij Mathur
      May 16, 2022 19:08 pm Reply

      Seriously! Did no one notice docker ps as docker pssssss 2:12 πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚

    • blank
      Sankler Bergman
      May 16, 2022 19:08 pm Reply

      the docker psssssss' got me

    • blank
      Carlos Sanchez
      May 16, 2022 19:08 pm Reply

      TFW no gf to dockerize

    • blank
      Kyle Bruns
      May 16, 2022 19:08 pm Reply

      I still have no clue how to use docker, but at least now I can pretend like I know what I am doing! wait… nothings changed

    • blank
      Duane Adam
      May 16, 2022 19:08 pm Reply

      I know a little bit of Docker. This video helped me understand it in more detailed. Thanks!

    • blank
      NamelessX
      May 16, 2022 19:08 pm Reply

      docker psss

    • blank
      Abhishek Saxena
      May 16, 2022 19:08 pm Reply

      Thank you for simplifying docker. Great video

    • blank
      Jonathan Melnik
      May 16, 2022 19:08 pm Reply

      Subscribed! You are awesome, thanks!

    • blank
      GuiTube
      May 16, 2022 19:08 pm Reply

      Docker sucks. It's never working as expected

    • blank
      Cristi
      May 16, 2022 19:08 pm Reply

      Nice, very easy to understand. πŸ‘πŸ‘

    • blank
      Daniel DuVal
      May 16, 2022 19:08 pm Reply

      Dude, this was so helpful I can't even explain it. Great explanation! This was perfect for someone like me who has linux system admin knowledge, but doesn't understand docker super well. Thank you! 😊

    • blank
      Sam Tipton
      May 16, 2022 19:08 pm Reply

      How is mounting a volume any different from copying a directory over? Is host machine a particular instance or any machine the container might run on? I think docterizing a database with static data seems like a common use case. Can you mount a sql database file and save it in the image and commit so every time you pull that image you get the database?

    • blank
      SHYDERMAN!
      May 16, 2022 19:08 pm Reply

      if I want to update the data my nodejs in docker, should i just use docker build again and again ?

    • blank
      Pirbadin
      May 16, 2022 19:08 pm Reply

      docker psss🀣🀣🀣

    • blank
      AB
      May 16, 2022 19:08 pm Reply

      Bro you go to tech party send me a invite πŸ˜†

    • blank
      Ravjot Singh
      May 16, 2022 19:08 pm Reply

      WAS REALLY HELPFULL BUDDY IT WAS EMBRASSING IN FRONT OF FRIENDS NOT KNOWING ABOUT DOCKER

    • blank
      Jeff -66
      May 16, 2022 19:08 pm Reply

      "for beginners" … lol. no. I was lost in first 120 seconds.

    • blank
      Technical Learning
      May 16, 2022 19:08 pm Reply

      brilliant

    • blank
      Bolivian-Lament
      May 16, 2022 19:08 pm Reply

      watched 3 times, didn't understand

    • blank
      dbreakiron
      May 16, 2022 19:08 pm Reply

      This is the best explanation of Docker I've seen to date. Thank you!

    • blank
      Nicholas Linney
      May 16, 2022 19:08 pm Reply

      Fireship, you're the best. ❀

    • blank
      Rounak Shaw
      May 16, 2022 19:08 pm Reply

      Other devs: "docker ps"
      Jeff: "docker piss"

    • blank
      Farhan Ahmed Khan
      May 16, 2022 19:08 pm Reply

      Wow! docker in a nutshell.. awesome work!

    • blank
      ighsight
      May 16, 2022 19:08 pm Reply

      Excellent. Excellent. Excellent. Started playing with Docker in 2018, have seen numerous tuts and walkthroughs. Came back for yet another refresh and this short vid is the best by FAR.

Leave us a comment