Dockerfile Tutorial with Example | Creating your First Dockerfile | Docker Training | Edureka

Поделиться
HTML-код
  • Опубликовано: 17 ноя 2024

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

  • @edurekaIN
    @edurekaIN  6 лет назад +1

    Got a question on the topic? Please share it in the comment section below and our experts will answer it for you. For Edureka DevOps Training and Certification curriculum, Visit our Website: bit.ly/2O59dHy Use code "RUclips20" to get Flat 20% off on this training.

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

    Fantastic explanation 👏

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

      Thank you 😊 Glad it was helpful!

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

    really helpful!

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

    Till date this is the best and simple explanation of docker and dockerfile I have watched.
    Thank you

  • @AA-dn4bg
    @AA-dn4bg 3 года назад

    Very nice presentation, and consise for 30 min!

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

      Thank you so much for the review ,we appreciate your efforts : ) We are glad that you have enjoyed your learning experience with us .Thank You for being a part of our Edureka team : ) Do subscribe the channel for more updates : ) Hit the bell icon to never miss an update from our channel : )

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

    Thanks so much, I understand Docker file now. You are a great tutor

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

      Hi : ) We really are glad to hear this ! Truly feels good that our team is delivering and making your learning easier :) Keep learning with us .Stay connected with our channel and team :) . Do subscribe the channel for more updates : ) Hit the bell icon to never miss an update from our channel : )

  • @shrishailkalashetti4953
    @shrishailkalashetti4953 5 лет назад +1

    Nice explanation easy to learn from edureka

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

    Thankyou so much for this explanation

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

      Hey Chethan ! Glad we could help you . Thank you for the compliment . Do subscribe the channel for more interesting videos .

  • @RandomShowerThoughts
    @RandomShowerThoughts 5 лет назад +2

    One of the best videos I’ve seen on the topic of docker

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

    Thank u soomuch❤️

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

    Brilliant ! I have always liked edureka tutorials . Well explained and easy to get concepts .

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

      Thank you for your review : ) We are glad that you found our videos /contents useful . We are also trying our best to further fulfill your requirements and enhance your expirence :) Do subscribe the channel for more updates : ) Hit the bell icon to never miss an update from our channel : )

  • @harishrajendran8338
    @harishrajendran8338 5 лет назад +2

    Good explanation for the beginners in Dockers with linux knowledge.

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

    Good explanation

  • @ThePomelo09
    @ThePomelo09 5 лет назад +1

    this is the best docker tutorial over internet! ty!

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

    Sir how can I create Jenkins container image using dockerfile

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

    thanks for such a clear explanation!

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

    Awesome tutorial. Thank you

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

    Great video and it is very helpful Thank you.

  • @vinaykumar-qq9wq
    @vinaykumar-qq9wq 6 лет назад +3

    As usual.. Great way of explaining things.
    Thanks vardhan, thanks edureka. 😀

    • @edurekaIN
      @edurekaIN  6 лет назад +1

      Thanks for the heat-warming feedback Vinay :)
      You might be also interested in other Docker videos of ours. Please watch them here: ruclips.net/video/h0NCZbHjIpY/видео.html

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

    Hi - This is a great video. I need help at a point - i am getting the following error when trying to spawn the container ::
    sudo docker run -p 80:80 --name=App5 myapacheimage
    apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot
    Can you please advise how to go about solving this ?

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

    Thank you so much bro and edureka for this valuable video..Thank you..

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

    Loved this! Clear and to the point.

  • @navyasriveluri
    @navyasriveluri 6 лет назад

    Thanks for your detailed video. I was able to achieve the docker installation in centOS as well with no issues. The same commands work perfectly.

    • @edurekaIN
      @edurekaIN  6 лет назад

      Thanks for the compliment Navyasri! We are glad you loved the video. Do subscribe to the channel and hit the bell icon to never miss an update from us in the future. Cheers!

  • @raagithagummadi1038
    @raagithagummadi1038 5 лет назад

    I started learning devops recently from your videos. Guys I have a doubt here please solve. After testing Jenkins package everything including code and dependencies into a war/jar file. Even dockerfile contains application's source code and dependencies. Now if we are using the docker container to deploy onto production server. Now where do we use the war file that is generated from JEnkins? someone please clarify.

    • @edurekaIN
      @edurekaIN  5 лет назад

      Hey Raagitha! The WAR file that is created by the Continuous Integration server is put in the docker container..to package it as a container. Then, the container is used in the testing or the production server.

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

    Very helpful, thanks!

  • @DennisAllard
    @DennisAllard 5 лет назад

    it would be a good idea to label the arrows so that you show what operation transitions from one box to another

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

    Such a great tutorial budd...make it more like this

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

    superb

  • @akankshajaiswal5400
    @akankshajaiswal5400 5 лет назад +2

    Amazing content and great explaination !! Thanks for your help !

  • @hotplugin
    @hotplugin 6 лет назад +1

    Thanks for your effort...

    • @edurekaIN
      @edurekaIN  6 лет назад

      Thanks Faisal. Hope you enjoyed the video :)

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

    Greatly explained!

  • @saidul14319
    @saidul14319 5 лет назад +1

    That's too good man!!

  • @yangeshdash3310
    @yangeshdash3310 6 лет назад +1

    Hi Vardhan Need to work on real time project on devops,are u providing any real time project?

    • @edurekaIN
      @edurekaIN  6 лет назад

      Hey Yangesh, hope you liked the video. We only provide projects as part of the course,it's not real time necessarily. Edureka’s DevOps Certification training will set you on the path of becoming a successful DevOps Engineer. You can check out the complete course details over here: www.edureka.co/devops.
      Hope this helps!

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

    awsome

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

      Thank you so much for your review on our channel  Great to hear that Edureka is helping you learn better . We’ll strive to make even better learning contents/courses in the future ! Do subscribe the channel for more updates : )

  • @tedchirvasiu
    @tedchirvasiu 5 лет назад

    Thanks a ton.

  • @MultiAarsh
    @MultiAarsh 6 лет назад +1

    Great explanation

    • @edurekaIN
      @edurekaIN  6 лет назад

      Hey Aarsh, thank you for watching our video. We are glad to know that you liked our tutorial. Do subscribe and stay connected with us. Cheers :)

  • @shashanksshetty9870
    @shashanksshetty9870 6 лет назад

    Really a good content and structured one. I'll personally request to continue this and take a step ahead and create a video on docker compose as well. So that we can extend our skills in understanding concept and use it to it's full extent. Thank you for your videos.

    • @edurekaIN
      @edurekaIN  6 лет назад

      Hi Shashank, we are glad the video was useful.
      Here is a complete playlist on Docker, its has Docker compose video as well: ruclips.net/p/PL9ooVrP1hQOHUKuqGuiWLQoJ-LD25KxI5
      Happy Learning, cheers!

    • @shashanksshetty9870
      @shashanksshetty9870 6 лет назад +1

      Thank you for your reply. I'll go through it. Thank you once again for your contents it really helped me a lot.

  • @semaltysuraj
    @semaltysuraj 6 лет назад +1

    hi edureka

    • @edurekaIN
      @edurekaIN  6 лет назад

      Hi Suraj,
      Hope you liked the video. Stay tuned to Edureka's channel for more videos on trending technologies here: ruclips.net/user/edurekaIN

  • @ekramha.9633
    @ekramha.9633 5 лет назад

    Thank you for the great tutorial guys

  • @yahya89able
    @yahya89able 5 лет назад

    Thanks alot u r the best

  • @CarlosCarucce
    @CarlosCarucce 5 лет назад

    thank you

  • @robomasticus
    @robomasticus 5 лет назад

    Nice tutorial. Thanks for putting this together!

    • @edurekaIN
      @edurekaIN  5 лет назад

      Hi Karl, thanks for the appreciation. We are glad you loved the video. Cheers!

  • @Rohit3713
    @Rohit3713 6 лет назад +1

    Can I use docker to create image for a GUI specific application? I'm trying to create docker image for a Tkinter Application.

  • @koyelnath5871
    @koyelnath5871 6 лет назад +1

    Great!

  • @nitin9281
    @nitin9281 6 лет назад

    Just a quick question, Where should I find the ENV variable for mentioned in the dockerfile, what should i refer to ?

    • @edurekaIN
      @edurekaIN  5 лет назад

      Hey Nitin, docs.docker.com/v17.09/engine/userguide/eng-image/dockerfile_best-practices/#env. This should help you. Cheers!

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

    What is base image? I mean how can I got to know that my application need this base Image? How I decide this ?

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

      Dockerfile usually starts from a base image. As defined in the Docker documentation, a base image or parent image is where your image is based. It's your starting point. It could be an Ubuntu OS, Redhat, MySQL, Redis, etc. Every application will need a base image. You can create it from scratch as well but that is something for more advanced users.

  • @navyasriveluri
    @navyasriveluri 5 лет назад

    is the Nginx.conf file created during this process? if not what should I do in order to get the Nginx.conf file?

    • @edurekaIN
      @edurekaIN  5 лет назад

      Hi Navyasri, By default, the configuration file is named nginx.conf and placed in the directory /usr/local/nginx/conf. Sometimes at other locations like /etc/nginx, or /usr/local/etc/nginx. Hope this helps. Cheers!

  • @ashweenikodag1257
    @ashweenikodag1257 5 лет назад

    Hello sir,
    Currently I working as Linux admin. I want to learn docker is there scripting knowledge required

    • @edurekaIN
      @edurekaIN  5 лет назад

      Hey Ashweeni, A good knowledge of programming on Linux is about all you need.
      Hope this helps!

  • @bhavanichennam5477
    @bhavanichennam5477 6 лет назад

    Hi sir u have used cmd in the Apache server to start and entry point in nginx server the 2 builts were success what actually to be used

    • @edurekaIN
      @edurekaIN  5 лет назад

      Hey Bhavani, you can use either of them.

  • @sweetwoodbunnies
    @sweetwoodbunnies 5 лет назад

    is the nginx and the apache can up together?

    • @edurekaIN
      @edurekaIN  5 лет назад

      Hi, can you please elaborate your query?

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

    Good but was explaining very fast!!!

  • @nitin9281
    @nitin9281 6 лет назад

    In both the dockerfile -d and -g flag what does it means ?

    • @edurekaIN
      @edurekaIN  6 лет назад

      Hey Nitin, "I need to know the context
      -d is usually used with run ... its for detaching"
      Hope this helps!

  • @Raj-si5yz
    @Raj-si5yz 5 лет назад

    How to create file in image through docker file

    • @edurekaIN
      @edurekaIN  5 лет назад

      Hi Ankit, thanks for watching the video. You can follow this blog: www.edureka.co/blog/docker-explained

  • @dhanashreekulkarni7197
    @dhanashreekulkarni7197 6 лет назад

    Hello, This was very informative tutorial.
    Although I havent fully understood USER command. I have a Dockerfile in which I have created a user 'ubuntu'. I have built docker image using this Dockerfile. The problem comes when I use this image in my OpenShift environment and run the container using this image, I get error: sudo: unknown uid 1000110000: who are you?
    I am using this Dockerfile (github.com/dhanugithub/omdockerimage). Can you please help me understand what I am doing wrong here? Being a fresher in Docker, I don't have deep knowledge of it as of now.
    Thank you.

    • @edurekaIN
      @edurekaIN  6 лет назад

      Hey Dhanashree, This usually occurs when the current UID that you're using is not present in etc/passwd. Check the etc/passwd file for this uid.
      Follow these steps to check
      step 1- strace -f -F -o whoami whoami
      you'll get a file called whoami, parse it
      grep etc whoami
      5029 open(/etc/passwd", O_RDONLY|O_CLOEXEC) = 3
      There could be another cause, by any chance do you have apparmour installed? Maybe its blocking something, try uninstalling it.
      If this doesn't solve the problem, put this question up on the following link: www.edureka.co/community/
      Hope this helps!

    • @dhanashreekulkarni7197
      @dhanashreekulkarni7197 6 лет назад

      Hello, I managed to resolve the issue of uid. Now I have uid, gid of USER in dockerfile inside /etc/passwd of my container. I still have other issues but not regarding USER for now. Thank you for the guidance. I will write again if I have another doubt.