Understanding Dockerfiles From Scratch

Поділитися
Вставка
  • Опубліковано 16 лют 2019
  • Please support me on Patreon: / thesimpleengineer
    / thesimpengineer / schachte
    ryan-schachte.com
    Don't forget to subscribe! github.com/Schachte/DummyDock...
    In this video I explain what a Dockerfile is and why you'd want to use a Dockerfile.
    We'll go through a live example building a custom docker image from a Dockerfile. I show you the basic concepts of image layers, the layer cache and building Dockerfiles.

КОМЕНТАРІ • 64

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

    4:54 "getting an error was intentional" -- brilliant! Why don't so many tutorial creators understand this?

  • @WerdOriginss
    @WerdOriginss 4 роки тому +9

    Whoever gave a thumbs down really doesn’t care about docker. Great tutorial as I am learning this at work. Really helped me grasp what we were doing. Thanks!

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

      i guess Im kinda randomly asking but does anyone know a good place to stream newly released movies online ?

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

      @Sean Peter Flixportal

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

      @Darren Jayce Thank you, signed up and it seems like they got a lot of movies there =) I really appreciate it!

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

      @Sean Peter You are welcome xD

    • @Saitama-ur3lq
      @Saitama-ur3lq 2 роки тому

      whoever gave this a thumbs down is a moron of the highest caliber

  • @Jobincode
    @Jobincode 3 роки тому +4

    I never comment on things, but you seriously gave me an exact explaination as I needed so I just wanted to tell you that I'm super thankful.
    Continue working man. Be determined. Great guide

  • @apurvsawant5703
    @apurvsawant5703 3 роки тому +1

    This is the best explanation on youtube about Dockerfiles. Thanks.

  • @petrasoftresearch1301
    @petrasoftresearch1301 Рік тому

    Brilliant tutorial Ryan, thanks so much. You take a unique approach of intentionally showing errors and then fixing them. This is how we learn in the real world: from our mistakes. I "liked, subscribe, and hit that bell." The first time ever!

  • @thrinathreddy6755
    @thrinathreddy6755 Рік тому

    Really like the way you are explaining... kudossss to you👍

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

    Best docker course ever. Thanks

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

    Excellent introduction, Thank you. I realize the world is changing, like some cosmic spirit is uplifting the whole world, getting faster and faster...

  • @goldydog1
    @goldydog1 4 роки тому +12

    Great video, can you do one on kubernetes if you get a chance?

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

    Really excellent tutorial. I loved they way you planned it out, and progressively demonstrated features as needed.

  • @erfantavoosi100
    @erfantavoosi100 3 роки тому

    Simple and elegant explanation

  • @Defrost2157
    @Defrost2157 3 роки тому

    You are so good at explaining things. Thank you so much.

  • @KH-oh4pr
    @KH-oh4pr 3 роки тому

    Great video, really easy for me to understand (and others have tried, trust me). Thank you!

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

    Best videos I've watched on Docker! Thanks.

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

    Simply wonderful brother... thanks a million, definitely you learnt well and you teaching well too

  • @amiteshkumar2590
    @amiteshkumar2590 3 роки тому

    Great video with crystal clear explanation

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

    Really great tutorial, thank you for sharing.

  • @DMSAProductions
    @DMSAProductions 3 роки тому

    Excellent tutorial! Thank you very much for the quality content. Keep it up!

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

    Sir, thanks for the tutorial, please make more videos in general, you explain well.

  • @SanjitKumar-yj1ew
    @SanjitKumar-yj1ew 7 місяців тому

    great video and explaination, thank you so much.

  • @Rotogas
    @Rotogas 3 роки тому

    This video is amazing. Very well done. Thank you

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

    Fantastic and very productive.

  • @alexmathai1998
    @alexmathai1998 3 роки тому

    Fantastic video. Thankyou so much,

  • @sergiig9336
    @sergiig9336 5 років тому +2

    Thank you for the great tutorial!

  • @unicurim1
    @unicurim1 3 роки тому

    Thank you so much for an excellent video

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

    Very well explained...

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

    Great Stuff,
    Thanks!

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

    dope video. finally actually understand it.

  • @bishwajeetsensharma5704
    @bishwajeetsensharma5704 3 роки тому +1

    @The Simple Engineer: I am curious about the fact of Caching. Node is interpreter and npm installs dependencies but does not builds an binaries. So for caching it worked... Like here in this case I already have package.json imaged and Express also imaged. So I used cache. I only copied the index file.. But then question comes, if this has been a Java app that compiles and build Binaries, then in this case a change in Java file needs to be compiled at application level. So In that case I have to copy fill Application files ( except resources ) and then run build ( e.g. by maven ). In this case I suppose the cache will not be very applicable! right?

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

    Perfect tutorial.

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

    Great video

  • @Lee-jc1ob
    @Lee-jc1ob 3 роки тому

    Thank you very much.

  • @lionbrunch4244
    @lionbrunch4244 3 роки тому

    Thanks a lot for the tutorial! Will there be a next part?

  • @liminal6823
    @liminal6823 Рік тому

    Excellent.

  • @ugikie
    @ugikie 3 роки тому

    Where can I find the rest of the docker series as mentioned at the end of the video? Finding these first few videos extremely helpful, but then it just seemed to end at this video.

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

    your amazing dude thanks alot for this great video

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

    waiting for the next part

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

    Thanks for this video you made very simple!
    by the way your audio is super nice, would you mind to share your gear/setup ?

    • @TheSimpleEngineer
      @TheSimpleEngineer  5 років тому +2

      Thanks!
      Panasonic G7, Blue Yeti Microphone and MacBook pro 2016 15inch. Post processed in audition for the audio

    • @rahulsriram6295
      @rahulsriram6295 3 роки тому

      @@TheSimpleEngineer Are you using OBS?

    • @TheSimpleEngineer
      @TheSimpleEngineer  3 роки тому +1

      @@rahulsriram6295 I am not - Camtasia

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

    Have a pretty intense project that includes use of Polymer, Firebase, LitElement, Webpack, etc. Tried to use the node image and mapped the ports correctly but for some reason when I go to localhost, there's nothing available? I see the project building successfully in the terminal after I run docker run ... but unable to access the project online? Any advice?

    • @TheSimpleEngineer
      @TheSimpleEngineer  4 роки тому +1

      Check the server logs from within the docker container. Sounds like a a server or application level issue from within the container.

  • @SathishKumar-ft2nh
    @SathishKumar-ft2nh 5 років тому

    Hi, One small doubt. What is difference between "RUN" & "CMD" in Dockerfile ? Seems like both are executing commands. Then, why "CMD" needs to be passed as ["npm", "start"] ? Please clarify.

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

      RUN executes command(s) in a new layer and creates a new image. E.g., it is often used for installing software packages. CMD sets default command and/or parameters, which can be overwritten from command line when docker container runs.

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

    thank you

  • @SathishKumar-ft2nh
    @SathishKumar-ft2nh 5 років тому

    Where these docker images are stored ? In host machine ? Which path ?

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

      Locally on host once they're pulled from remote registry. Type docker images to list them

  • @deepakb.128
    @deepakb.128 4 роки тому +1

    Why the dog in the background is shocked, did you put him in a container ?

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

    👍👌

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

    I had to use IP 0.0.0.0 in the app to map to localhost, how come it works for you not for me?

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

    What a strategy,
    Try something,
    if it succeeds -> all good
    if it fails -> claim it was an intentional error
    Repeat

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

      Intentinal errors are great at demonstrating the debugging process, and are usually more helpful than "golden path" tutorials

  • @ishallhave1
    @ishallhave1 6 місяців тому

    Good explanation. But unfortunately the title gives a diff meaning. You are using parent image and not base image.

  • @mx5701
    @mx5701 4 роки тому +1

    Finally, a coherent Docker guide without an Indian accent.

  • @colabuser424
    @colabuser424 3 роки тому

    Thanks for the tutorial, learned a lot.
    I had to increase youtube play speed to 1.5 though...
    If its not too much trouble for the next viedo, could you speed up talking next time?

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

    Kubernetes doe