Learn Docker in 20 Minutes

Поділитися
Вставка
  • Опубліковано 20 січ 2025

КОМЕНТАРІ • 163

  • @CodingTutorials360
    @CodingTutorials360  5 років тому +1

    My latest course for just $9.99. Ace your front end interviews with the '100 Front End Interview Questions Challenge'!!!
    www.udemy.com/100-front-end-interview-questions-challenge/?couponCode=CODINGGOD

    • @Russian-Troll
      @Russian-Troll 5 років тому +1

      I don't understand why there's an ad every 15 seconds. Its hard to watch.

  • @sebeling3
    @sebeling3 7 років тому +87

    A lot of haters in the comments. A couple of pronunciation issues but I can look past that because I'm now able to do some easy Docker things after 20 minutes. Keep posting these.

    • @ko-Daegu
      @ko-Daegu 6 років тому +3

      Sean Ebeling
      Nobody cares about your opinion
      +
      I didn’t see any haters comments stop playing the black sheep role and run while you are not being chased k ....

    • @MariaJose-pb6gs
      @MariaJose-pb6gs 6 років тому

      Ko- Jap Ltda

    • @thomasadams5446
      @thomasadams5446 5 років тому

      A lot of good info. Been working with Docker for months, of course, in 20 minutes, there is only so much info. However, this is something I should've watched towards the start of my Docker journey. Docker-compose may have been out of scope for this video, but still great!

  • @MIO9_sh
    @MIO9_sh 7 років тому +15

    12:06 The default build file docker looks for is called "Dockerfile", not ".Dockerfile"

  • @spacemanthomas7265
    @spacemanthomas7265 7 років тому +50

    Hello everyone, sorry for the pronunciation issues and messiness on my part, I'm a self taught developer and it seems to have shown here haha. I'm happy most of you found the video helpful. Please continue to support CodingTutorials360!

    • @reactiononyoraction2022
      @reactiononyoraction2022 6 років тому

      Please provide complete tutorial for docker with live example as you did on this one I have been learning docker online from several schools but haven't really grasped much as i did from this clip just in 20 minutes. Thank you

    • @__Ben777__
      @__Ben777__ 6 років тому

      Thanks for a great concide guide

    • @JasonMulliganDeepSea
      @JasonMulliganDeepSea 5 років тому

      Thnaks buddy; Im a self taught programmer and im dyslexic in English which makies reading and writing a pain; Emmet is great for Development an you tube my best friend so thanks a mill cheers

  • @yangdu7194
    @yangdu7194 7 років тому +12

    The best docker tutorial. explain everything a first learner needs to know in 20 minutes. It's very simple unlike other tutorials that says a lot of sophisticated crap.

  • @jeffvandyke1239
    @jeffvandyke1239 7 років тому +34

    at around 12:10, On my machine, when it complained when the file was named .Dockerfile, I think it expects the file to be named just 'Dockerfile', then you don't have to manually specify where it is. I was following along and renaming the file worked for me.

    • @TheAmazingColt
      @TheAmazingColt 7 років тому +1

      Same here. Thanks Jeff!

    • @georgeionut300
      @georgeionut300 7 років тому +3

      Exactly. He needed to specify the filename because ".Dockerfile" is not the default name, "Dockerfile" is. :)

    • @shuaichen9773
      @shuaichen9773 6 років тому +1

      Yeah, I found that problem too. That’s why he had to specify the exact url😂

    • @matheosmattsson2811
      @matheosmattsson2811 5 років тому

      I think he maybe got confused with 'Dockerfile' and the '.dockerignore' file

  • @nevdelap6735
    @nevdelap6735 6 років тому +12

    There is no bug at 6:30. It is waiting for input to the original command prompt when you pressed ctrl p q, and when you press return you get another command prompt.

  • @simonkalu
    @simonkalu 6 років тому +1

    The best docker tutorial on UA-cam... And he makes it look so easy

  • @johnkevinsoriano292
    @johnkevinsoriano292 6 років тому +6

    15:00 You can pass -a argument to docker ps like this
    docker ps -a, and it will show even inactive/stopped containers

  • @AlexanderBukh
    @AlexanderBukh 6 років тому

    So great! Compressed just right for anyone who has the sufficient basics to approach Docker (imho). Takes talent to produce something like this, thank you! I am sure, in coming videos, with time and support, you will hone any minor things, everyone is bitching about in the comments.

  • @daldisimo
    @daldisimo 4 роки тому

    Great tutorial! A couple of notes for anyone following this today... To use the node.js example exactly as shown, when creating the .Docker file use the older version of node (FROM node:4-onbuild). When mounting a volume using the latest version of docker on Windows do not use Unix syntax as suggested, use Windows directory syntax (eg: docker run -it -p 1337:80 -v C:\Users\userdir\hs:/usr/src/app --name hi hello-system).

  • @AbhishekSaini123
    @AbhishekSaini123 5 років тому +3

    Love the tutorial. Best 20 minutes learning docker. Thanks Dylan

  • @stefanjagger
    @stefanjagger 6 років тому +1

    Very informative... thank you for taking the time to produce this video. Loved the 1337 port, I rarely see that like I used to back in the 90's.

  • @abdullahal-ahmati5030
    @abdullahal-ahmati5030 6 років тому +2

    6:35 It's not really a bug. When you attach yourself to the container, the "root@blahblahblah :/#" text has already been printed right before you left it. The container keeps running in the background independently of whether or not you're attached, and when you attach, it has no reason to print the text again. When you press enter, you put in a newline so it prints the text again.

  • @Weeblewobb
    @Weeblewobb 6 років тому

    Thanks for this 101. I was suggested looking into Docker after moving from OSX to windows and having to use CMD for MongoDB. I’m an avid dev that is still learning so getting a nice starter of this Was helpful. Thanks!

  • @mlmFormula
    @mlmFormula 7 років тому +1

    Couple things can help you along with this video:
    1. If you have Windows 10 home, you don't have Hyper-v. But you're all good, just install the Docker Toolbox (for windows), rather than the Docker community or enterprise editions. Docker toolbox is available on Docker's website. Everything works fine.
    2. Once installed, fire up Docker Quickstart shortcut that the Docker Toolbox installs. It will take a few to install Docker on your machine.
    3. If you get the error about your computer not supporting Virtualization, you may have to restart your computer & enter the Bios. Enable virtualization in there. Your processor must support virtualization. (see below)
    *If you have an INTEL processor, check if it supports virtualization here: downloadcenter.intel.com/download/7838
    *If you have an AMD processor, check if it supports virtualization here: download.amd.com/techdownloads/AMD-VwithRVI_Hyper-V_CompatibilityUtility.zip

  • @Zydine
    @Zydine 6 років тому +1

    When attaching to the instance, I don’t think the lack of display without input is a bug. That’s how Linux is when you attach to a tty device, it doesn’t really know you attached like an ssh session does and doesn’t necessarily have any output unless you provide input.

  • @akshitkhajuria171
    @akshitkhajuria171 5 років тому +1

    at around 12:05 It seems docker was trying to find "Dockerfile" (without the dot), but you named it ".Dockerfile". Worked once I renamed my file without the dot. Your welcome

  • @muhammadehsanulhaq8573
    @muhammadehsanulhaq8573 7 років тому +2

    Although this tutorial is all jumbled up, but gotta admit of all the tutorials I saw this is one of the most useful one.

  • @ninocrudele
    @ninocrudele 6 років тому

    best docker tutorial I have seen around, great job! thank you!

  • @cipherxen2
    @cipherxen2 6 років тому +2

    Nice tutorial.
    6:22 the prompt string is already displayed for you do ctrl+p+q. so after reattaching to it the shell just waits for next command. it didn't show the prompt string until you press enter.
    the default file name is "Dockerfile" not ".Dockerfile"
    anyways a good tutorial.

  • @jjbailey01
    @jjbailey01 6 років тому +1

    When you attached back to your Ubuntu environment, the reason it didn't print the prompt is because you were simply returning to the previous state. The previous state had already printed the prompt and was awaiting input. I'd assume you could force a reprint of the prompt explicitly in the command you used to reattach. I don't see this as a bug. I see it as your computing environment doing exactly what you tell it to, instead of assuming it knows what you want, like users of Windows are used to.

  • @TravisRennemann
    @TravisRennemann 6 років тому

    Great introduction to using Docker on Windows and in your development workflow! Thank you for sharing it.

  • @rahul_bali
    @rahul_bali 6 років тому

    This tutorial is spotless.

    • @OrakzaiSays
      @OrakzaiSays 6 років тому

      around 14:08, on my system it didn't work on localhost:1337. What is the issue? Did he skiped something?

  • @vjj6258
    @vjj6258 7 років тому

    Hi Thomas
    That was really helpful!
    @ 14:04 you provide argument as --name hi hello-system (what is 'hi' there?)
    In my opinion: Hello-System is the image you downloaded from hub and 'hi' is the container where you're hosting the image hello-system?
    And also can you please let me know what is the practical uses of Docker?
    and can you please do a video on Kubernetes?

  • @kevindanikowski8903
    @kevindanikowski8903 7 років тому

    You did a great job on this video! Can you tell us what is downloaded onto your portfolio image? It was almost a GB of data, what does it run? I'm guessing you installed angular, JQuery, Node, Ubuntu, and some other dependencies I noticed

  • @IamNani
    @IamNani 5 років тому

    Thankyou for ur efforts.
    I've few doubts in docker, could you please help me.
    How to share docker images
    What docker load do
    How to tack backup docker container
    Thanks in advance.

  • @pjmclenon
    @pjmclenon 4 роки тому

    I am not understanding
    Like are you on a Windows 10 pro host machine and you installed docker on a virtual environment in vbox or vmare? Sorry am i tottaly confused lost right from the start Lisa

  • @OrakzaiSays
    @OrakzaiSays 6 років тому

    around 14:08, on my system it didn't work on localhost:1337. What is the issue? Did he skiped something?

    • @confusedgaming8010
      @confusedgaming8010 5 років тому +1

      Most of the systems protect 1337. You may need admin permissions to use it

  • @enochthestud
    @enochthestud 4 роки тому

    is docker suitable if I want to run multiple operating systems on a NAS?

  • @irsyadilham
    @irsyadilham 7 років тому

    thank you thomas...short and precise vid...I've got a pictures of what Docker is

  • @pw4827
    @pw4827 5 років тому

    first build failed 'cause you called your file '.Dockerfile', while docker looks for 'Dockerfile' (without dot). If your build file is not in the folder you are currently in or/and it's name is not 'Dockerfile', you must provide path to it, thats why you was forced to add '-f path/to/.Dockerfile'

  • @mariabahshaeb5707
    @mariabahshaeb5707 5 років тому

    Great tutorial, a real time saver. Thank you.

  • @divyeshkumarbalar7732
    @divyeshkumarbalar7732 5 років тому

    If we host app on docker, the data of app will be persistent after the docker is down or it will be flushed as soon as docker is off

  • @abhavni
    @abhavni 6 років тому

    Nice tutorial @Spaceman Thomas! Thank you for sharing.

  • @maromarcinko8632
    @maromarcinko8632 6 років тому

    Thank you Thomas! Very nice and to the point! Pleasure was mine :-)

  • @CraigHollabaugh
    @CraigHollabaugh 6 років тому

    I understood completely until you started to sync to local file system. you're running on ubuntu vm on windows then syncing back to windows file system is where it got complicated. Don't get me wrong, I've been running VMs on windows and linux for at least 10 years and understand the cross filesystem mounts, port configs, etc. I guess most people develop this way, win10/linux vm/dockerubuntu. I started my docker intro with your video and thanks for that. I need find a similar intro that takes windows out the picture, ie linux/docker linux only. ps. didn't give a thumbs down, you did great and I got the intro I needed to get started.

  • @ravitejagajarla8690
    @ravitejagajarla8690 5 років тому

    I'm getting this error on windows. " Docker Toolbox\docker.exe: Error response from daemon: Get registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)." Can you please help ?

  • @codewithnacho
    @codewithnacho 7 років тому

    Great Tutorial! Now I get more about Docker :)

  • @charbaugh22
    @charbaugh22 7 років тому

    Probably a stupid question but, why would a dev use a docker container? How is that different from committing to git and have teammates pull changes? Also, a build system for a web app would publish the compiled output files without carrying around the entire source. How does this differ from a continuous integration environment or, how does it help and what does it solve? Basically, what is the point? BTW, very good video!

    • @RNDdave
      @RNDdave 6 років тому

      Hey, realise this was a few weeks ago, so apologies if you've already found an answer to this. Docker is more than just web code, you could build out some impressive apps with containerisation, one of the main benefits would be in a DevOps environment where you're looking for regular small updates and want a really quick way of getting them out into the wild rather than waiting for a major release to go through a bunch of infra teams and finally making it to the wild.
      Docker/Containerisation is a smart way of breaking your infrastructure into manageable and reusable chunks that can be deployed rapidly allowing for quick changes and massive scalability.

  • @shaunsweeney6031
    @shaunsweeney6031 6 років тому +1

    well done. ignore any haters

  • @chidaruma_
    @chidaruma_ 6 років тому

    Thank you! This is a very useful tutorial!

  • @jwbonnett
    @jwbonnett 7 років тому

    Is there a way to cache dependencies so that you're not downloading them everytime you build your Docker image?

  • @RysioACF
    @RysioACF 2 роки тому

    Good video, thanks.

  • @jesseyvanofferen349
    @jesseyvanofferen349 6 років тому +2

    around 13:30 you made the mistake of having a dot in your Dockerfile name. Dockerfiles do not have a dot in their names. Along with that, running inside a VM is not the problem. That is not how VM's work by magically breaking commands of programs unless it's an unsupported OS.

  • @cdm891
    @cdm891 7 років тому +1

    docker build does not see the path and i have tried everything! does anyone know how to fix this? to answer some initial questions yes, I am in the proper directory I am in the hs folder. No, there is no .txt extension on my Dockerfile, and I named it simply Dockerfile as the documentation say to

  • @vishnusana
    @vishnusana 5 років тому

    Hi,
    2:39 Where to add this, I am using VMware work station.

  • @sackdeezle
    @sackdeezle 5 років тому

    What theme are you using with Atom?

  • @kronkodile
    @kronkodile 6 років тому

    Amazing video, thanks!!

  • @shivanarayanan7209
    @shivanarayanan7209 6 років тому

    Good one and thank you for sharing!

  • @literalbuddha2921
    @literalbuddha2921 6 років тому

    Thank you for saving me precious time.

  • @jhansiblu
    @jhansiblu 5 років тому

    did you skip installing git in the container?

  • @petervalencic5485
    @petervalencic5485 6 років тому

    Thank you Dylan for this tutorial

  • @laketuna
    @laketuna 7 років тому +1

    Can you explain why the live file changes appear on your work environment at the end, but not in the 'hi' test app? I'm finding that I need to restart my docker container for changes to appear on the browser.

    • @devope
      @devope 7 років тому

      the same question

    • @stephenkamenar
      @stephenkamenar 7 років тому +2

      I guess you don't know how to use node.js. node.js only reads the js file once. so changes to the file won't do anything until node is restarted

  • @damascenoalisson
    @damascenoalisson 6 років тому +4

    A lot of haters here... I bet if those people complaining about pronunciation were SO smart, they wouldn't be here watching a tutorial...
    Btw, great video! This is the best introduction to Docker I've found :-)

    • @TheUltimaSeven
      @TheUltimaSeven 6 років тому

      The ability to know how words are pronounced and the ability to code are mutually exclusive, as we can see well here.

  • @RNDdave
    @RNDdave 6 років тому

    Good intro, nice walk-thru.

  • @k_mac_6367
    @k_mac_6367 6 років тому

    Very helpful, Thank you !

  • @udavster
    @udavster 6 років тому

    I am not able to access nor localhost:1337 nor any other ports. I tried changing internal port from 80 to several other options (1337, 40000) (changed it in index.js, Dockerfile and rebuilt image) but still no success=(

    • @udavster
      @udavster 6 років тому

      Actually, this is known docker f*ck up, it can be helpful for those using DockerToolbox on Windows github.com/docker/for-win/issues/204

  • @liviukovacs9658
    @liviukovacs9658 6 років тому

    ii . to open an explorer at the current directory in powershell ;)
    Thank for the tutorial.

  • @oleksandrdyachuk3951
    @oleksandrdyachuk3951 7 років тому

    Great video! Thank you

  • @harineemosur6530
    @harineemosur6530 6 років тому

    Very helpful. Thanks

  • @kolboch
    @kolboch 7 років тому +3

    docker ps -a
    lists all containers, you can simply remove like it was said in the video by running:
    > docker rm $name_of_container$

    • @kolboch
      @kolboch 7 років тому

      so more about running docker on windows ( 8.1 my case), it's pain !
      I couldnt make it with -v part and synchronizing files whatever I tried - always some kind of error, however, I am still stuck on linux on making live updates when file is saved. As far as I am in the topic it seems like it has sth to do with linux way of file editing, maybe I will find a solution.
      But seriously guys, I do not recommend having fun with Docker on not recommended Windows OS versions it's pain :D

  • @nagisupercell
    @nagisupercell 7 років тому

    Good teaching!

  • @ddr-5262
    @ddr-5262 5 років тому

    How the hell to dockerize not node.js but en entire php / Mysql webproject?

  • @harrirrapaj1836
    @harrirrapaj1836 6 років тому

    great tutorial !!!

  • @nathiyaakshitha5992
    @nathiyaakshitha5992 5 років тому

    run command is not working for me..can u help to get this..??

    • @PeterSchonefeld
      @PeterSchonefeld 5 років тому

      are you talking about 14:08 ? if so, in the Dockerfile make sure you have "-onbuild" on the end of the FROM line (FROM node:6-onbuild) ... i just had "FROM node:6" and landed on a prompt ... adding the "-onbuild" fixed it

  • @praveen2hearts
    @praveen2hearts 6 років тому

    Awesome thomas...

  • @laymanstechworld3224
    @laymanstechworld3224 5 років тому

    nice tutorial.

  • @mohammedkharma8490
    @mohammedkharma8490 6 років тому

    Good job!

  • @rodrigueskorn
    @rodrigueskorn 6 років тому

    Impossible to learn this thing in 20 minutes. I'm here already completing like 5 hours trying to run a python script and all get is a message "can't open file no such file or directory". is explicit what's happening, but it's not explicit where I should be changing to make the file be found.

    • @SimonFD
      @SimonFD 6 років тому

      Have you correctly mapped your volume ?

  • @MichaelMunger
    @MichaelMunger 7 років тому +22

    "80 is a protected port" = no. There are no protected ports. There are a few reserved ones, but "protected ports" don't exist.

    • @shubitoxX
      @shubitoxX 7 років тому +9

      They are protected or privileged ports in the sense that on Unix systems only the root user can bind to ports below 1024. Linux also has "capabilities" allowing a non root user to have this privilege as well, see CAP_NET_BIND_SERVICE man7.org/linux/man-pages/man7/capabilities.7.html This kind of restriction does not exist on Windows afaik.

  • @Amamoiz
    @Amamoiz 7 років тому

    Thanks mate.

  • @Stoney_Eagle
    @Stoney_Eagle 6 років тому

    Save and use the ".Dockerfile" as just "Dockerfile"

  • @RahimShaikhras
    @RahimShaikhras 6 років тому

    Good Job Bro

  • @bitterrotten
    @bitterrotten 6 років тому +10

    *And wallah.*
    (Seriously though. Good tutorial. Thank you.)

  • @mostafaatef4584
    @mostafaatef4584 5 років тому +1

    docker: Error response from daemon: driver failed programming external connectivity on endpoint sad_sanderson (with angular project)

  • @quangtuyenvuong9718
    @quangtuyenvuong9718 7 років тому

    why in ubuntu you can run docker ps ??

  • @mostafaatef4584
    @mostafaatef4584 5 років тому

    can anyone give me a working video for docker with angular 8 ?

  • @devope
    @devope 7 років тому +1

    Why /usr/src/app?

    • @zyxmark
      @zyxmark 6 років тому

      cause stupid :onbuild tosses it. See github.com/nodejs/docker-node/blob/master/8/onbuild/Dockerfile and run away. :onbuild is deprecated.

  • @taki143
    @taki143 4 роки тому

    did you just say "earl" for url

  • @GravityGamingCo
    @GravityGamingCo 6 років тому +1

    how dare you remove clever_shannon

  • @engsiyad
    @engsiyad 6 років тому

    Docker run -it ubuntu is not working

  • @tasoulman
    @tasoulman 6 років тому

    you should try docker build -t name ./
    This is because you are typing the commands inside a powershell and not a command prompt

  • @incredibleliu
    @incredibleliu 4 роки тому

    good stuff

  • @technoself81
    @technoself81 4 роки тому

    swaydo and earl have entered the chat.

  • @tolbydamit
    @tolbydamit 6 років тому

    It's 50 MB compressed.

  • @jayhey2577
    @jayhey2577 6 років тому

    Nice, Thank you from Iran

  • @bartclaeys
    @bartclaeys 5 років тому

    Lots of instructions, but lacks context. For example, the WordPress container contains PHP? Has not been mentioned. Additionally, why does the WordPress container not contain MySQL? You see how a high level intro explaining the why's would be helpful.

  • @joshc3000
    @joshc3000 5 років тому

    Bro, why are you on a Windows box?...

  • @EmotionalWeather
    @EmotionalWeather 7 років тому

    Nice video :)

  • @anupkumar-jq8rw
    @anupkumar-jq8rw 6 років тому +4

    if it was possible, i would give 10 likes for this video

  • @abaisyet
    @abaisyet 7 років тому +7

    too fast to understand. Would have been better if gone through the architecture first. May be i go through architecture first and come back again.

  • @Josytt
    @Josytt 5 років тому +1

    Less ads man, we aren’t here to make you money

    • @jlo6435
      @jlo6435 5 років тому

      Then don’t be here lol

  • @fun3000able
    @fun3000able 7 років тому

    looks pretty complicated : what is the real value of this thing ? another guru oriented fashion ?

    • @youcamp132
      @youcamp132 6 років тому

      This might answer some of your questions:
      dzone.com/articles/top-10-benefits-of-using-docker

  • @peyo670
    @peyo670 6 років тому

    nice video

  • @ajhasa1084
    @ajhasa1084 6 років тому +2

    Its the first time I've heard URL referred to as 'earl' :D

  • @ConquerJS
    @ConquerJS 7 років тому

    FYI Windows ships natively with Ubuntu Bash for a while now, so not that crazy ;)

  • @grahamnicholls6070
    @grahamnicholls6070 7 років тому

    I'm with another commentator re the irritation. Voila is not pronounced "wala" in any part of France I've ever been.

    • @spacemanthomas7265
      @spacemanthomas7265 7 років тому +1

      Sorry, and I mean "wallah" not voila haha, it's a joke between my middle eastern friends and I, it's part of a popular song arabic song called mallem. Probably should of kept that out of the video, but I hope you continue to support this channel, they offer a lot of great content

    • @argonwheatbelly637
      @argonwheatbelly637 6 років тому

      "Wallah (swt)" is not "Voilà". ;-)

  • @montpierce424
    @montpierce424 7 років тому +53

    fyi - Pseudo is pronounced "sue-doe

    • @komz69
      @komz69 7 років тому +23

      i paused the video, made sure someone commented on his pronunciation of pseudo, found it, un-paused and continued

    • @ChristianNally
      @ChristianNally 7 років тому +7

      This video is such a great service. I also know not to make fun of folks for their pronunciation (because it means they learned the word only by reading!).
      That said, if the host is going to say "Voila!" as often as this, I must insist that he say "Vwa-La" instead. ;-)

    • @Bill_Ahern
      @Bill_Ahern 7 років тому +6

      I don't think correcting incorrect pronunciation is making fun of someone. He said "pseudo" wrong and someone told him the correct way to say it. That's being helpful. And I also paused the video, checked comments for said correction, and will now return to the video.

    • @ChristianNally
      @ChristianNally 6 років тому

      Bill Ahern here's an interview with the person who named sudo (sue doo).
      Makes my ears bleed.
      ua-cam.com/video/LaAwl3HN5ds/v-deo.html

    • @stephenseagull1185
      @stephenseagull1185 6 років тому

      Didn't even watch the video as it doesn't apply to me but "syoudoh" - en.oxforddictionaries.com/definition/pseudo

  • @layelaye
    @layelaye 6 років тому +3

    ... its pronounced "Voila!"