Docker Crash Course #4 - Parent Images & Docker Hub

Поділитися
Вставка
  • Опубліковано 7 вер 2024
  • In this docker tutorial you'll learn about docker hub & how to pull down parent images.
    🐱‍💻 Access the course files on GitHub:
    github.com/iam...
    🐱‍💻 Node.js Course:
    On Net Ninja Pro - netninja.dev/p...
    On UA-cam - • Node JS Tutorial for B...
    🐱‍💻 Modern JavaScript Course:
    On Net Ninja Pro - netninja.dev/p...
    On Udemy - www.thenetninj...
    On UA-cam - • Modern JavaScript Tuto...
    🐱‍💻 React Course:
    On Net Ninja Pro - netninja.dev/p...
    On Udemy - www.thenetninj...
    🐱‍💻 VS Code - code.visualstu...
    🐱‍💻 Docker Hub - hub.docker.com/
    🐱‍💻 Docker docs - docs.docker.com/

КОМЕНТАРІ • 82

  • @mm-wn7fw
    @mm-wn7fw Рік тому +78

    For those getting immediate exit "bug", please run this command:
    docker run -d -it node:
    thx mark Ritchie

  • @HammadHassan-nd3qd
    @HammadHassan-nd3qd 8 місяців тому +13

    if conaitner exit immediately with cotnainer terminal dsiabled then just run "docker run -d -it node" in power shell. it will create a new container with runinng status. delete previous one then.

    • @learnbit_bo
      @learnbit_bo 3 місяці тому +1

      thanks for the tip, it worked, do you know why the previous container fails?

  • @mahmoudsamy8366
    @mahmoudsamy8366 17 днів тому

    Really an amazing illustration of the hirarchy of docker terms, docker -> hub -> image -> container, and how to use them in order according to our needs. Thanks for your professionalism, meet you in the next lesson

  • @markritchie7044
    @markritchie7044 Рік тому +30

    I can see the docker image start then exits immediately. Seems to be happing to others in the comment as well. My Ubuntu install fires up and got completion messages on the other video install steps.
    ****************FIXED************************
    Used docker run -d -it node to get this to run in a container.. -it = interactive terminal??

  • @EnesKab
    @EnesKab 2 роки тому +6

    Hey Shaun. That's an amazing explanation for Docker newbie just like me so far. Can't wait to see the other episodes of the series. Thank you !

  • @user-qc2pl1nq7q
    @user-qc2pl1nq7q Рік тому +1

    Watched mosh series. But your series is far MORE MORE AMAZING AND BETTER

  • @adimardev1550
    @adimardev1550 Рік тому +7

    i dont know why my running containers keep exiting after got started for a second.

    • @KamalSingh-zo1ol
      @KamalSingh-zo1ol Рік тому +1

      Same, did you find solution.

    • @adimardev1550
      @adimardev1550 Рік тому +3

      @@KamalSingh-zo1ol yeap, the app has crashed. we can see it in the logs. you might want to emplement the right way to build your docker image specifically.

    • @ethanendures
      @ethanendures Рік тому +2

      @@adimardev1550 docker run -d -it node

  • @SudiptaAdak-vu3su
    @SudiptaAdak-vu3su 2 роки тому +8

    Ninja master CI/CD course please?

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

    @The Net Ninja, your explanation of docker is best honestly,

  • @edwingarcia5043
    @edwingarcia5043 2 роки тому +2

    00:58, as far as I understand Docker, images don't contain an OS, but rather just the "file system" environment of, let's say, a Linux distribution, for example, an Ubuntu version 22.04 parent image might contain the file system of a fresh Ubuntu Installation. The OS of the host machine (the machine where the Docker Engine is installed) is being used.
    Let's see another example, the image `golang:1.19-alpine` contains file system (the executables, directories, etc) of the Linux distribution **Alpine**, plus a Go v1.19 installation, so that you can execute your Go application.
    Well, that's how I understand it, now, let's keep watching :D

    • @paskuda_sutulaya
      @paskuda_sutulaya 7 місяців тому

      Thanks! I was confused a bit by the statement that "the parent image has the lightweight OS" while the container runs on the host OS, but now everything is clear 👍

  • @ridl27
    @ridl27 2 роки тому +1

    your explanation of docker is so good! :) ty.

  • @andrewramirez1293
    @andrewramirez1293 2 роки тому +1

    This series has been so helpful!

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

    Wow. I was coming to Net Ninja to recommend he make a tutorial series for Docker and what do you know lmao 🤣. Awesome. Net Ninja ftw

  • @tiagooliveira9196
    @tiagooliveira9196 12 днів тому

    I'm following this course and download today the docker desktop for windows but didn't find the terminal (CLI) option on my container 06:30

  • @HoodlumMedia
    @HoodlumMedia 5 місяців тому

    OHMYGOD all this time and i can just... drop those commands into any command shell. lol. I was spending ages trying to find out where to open a terminal.

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

    Your are amazing teacher. don't stop. ever!

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

    best series
    waiting for complete course

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

    Loving this series my friend.

  • @user-nr3ye8qd1i
    @user-nr3ye8qd1i 3 місяці тому

    On what basis do you decide which node image you are going to select for your application ?

  • @AitHajar_00
    @AitHajar_00 Рік тому +1

    when i try to pull the node image i get this error ' unauthorized: authentication required. '

  • @mohammadruhulamin5991
    @mohammadruhulamin5991 9 місяців тому

    you make everything water!

  • @matthewpaolini
    @matthewpaolini Рік тому +3

    For some reason, the docker image starts then exits immediately. I've been searching for help on this topic but don't know enough about it.

    • @markritchie7044
      @markritchie7044 Рік тому +3

      add the -it option to docker run

    • @matthewpaolini
      @matthewpaolini Рік тому +3

      @@markritchie7044 That worked from command line. How do I get it to work from Docker Desktop like he did?

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

      @@matthewpaolini got any solution??

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

    You are the best. Please a Ruby on Rails Course

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

    Nice examination sir. waiting for next lessons

  • @azizullah410
    @azizullah410 8 місяців тому

    Hey Shaun
    I have a question.
    What would be the parent image for MERN App?

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

    Love this! Would you ever consider a recoil js for state management course?

  • @lexyu9693
    @lexyu9693 Рік тому +1

    why I docker pull node finished then use Dokcer Desktop images node select run, when I click container start then status immediately exited? not running

    • @ahahahaha-kf4xe
      @ahahahaha-kf4xe Рік тому

      no virtualization may be. hard maybe

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

      I get the same - did you figure this out?

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

      no, but use another official image it works, like nginx or hello-world, I don't have a clue, stuck here.

    • @festus-kogo
      @festus-kogo Рік тому +3

      I used docker run -d -it node to get this to run in a container

  • @user-hm8kj8is8q
    @user-hm8kj8is8q 10 місяців тому

    perfect as always 👏

    • @NetNinja
      @NetNinja  10 місяців тому

      Thank you so much 😀

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

    Awesome as alwaysss

  • @nadavnesher8641
    @nadavnesher8641 9 місяців тому

    Brilliant!

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

    Request courses for docker with kubernetes and skaffold

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

    waiting for the next video

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

    for node image latest which linux distro is it going to use?

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

    Awesome tutorials ++++++++++++++++++++++++++++ Thank you.

  • @nithinkamineni9392
    @nithinkamineni9392 Рік тому +1

    My Docker Containers Exiting immediatly as soon as click run on my NodeJs Image. any fix?

    • @tarun3dadlani
      @tarun3dadlani 6 місяців тому +1

      run the image using: docker run -d -it {image_name}
      I found this solution in the comments section but I am wondering how in the tutorial the image is running using the GUI of the docker but on our machine it is not

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

    ninjaaaaaaaaaaaa!!!!!!!!!!!!!!!!!!!

  • @manoj-k
    @manoj-k 2 роки тому

    🔥🔥🔥

  • @muskaan7895
    @muskaan7895 2 роки тому +1

    Can u pls make a playlist on data structures and algorithms in java?

  • @AlexanderHariri1984
    @AlexanderHariri1984 8 місяців тому

    Is that a british accent?

    • @NetNinja
      @NetNinja  8 місяців тому

      It most certainly is!