Docker Volumes explained in 6 minutes

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ส.ค. 2024
  • Understand Docker Volumes in 6 minutes. Docker Volumes in Docker-Compose
    ► Subscribe To Me On TH-cam: bit.ly/2z5rvTV
    In this video you will learn:
    0:00 - Intro
    0:21 - When do we need Docker Volumes?
    1:02 - What is Docker Volumes?
    2:04 - 3 Docker Volumes Types
    4:14 - Docker Volumes in docker-compose file
    This gives you a short but thorough understanding what Docker Volumes are.
    ⭐️ For a Demo please refer to • Docker Volumes Demo ||...
    For any questions/issues/feedback, please leave me a comment and I will get back to you as soon as possible.
    #devops #techworldwithnana #docker #dockertutorials
    -----------------------------------------------------------------------------------
    ✅ Follow me
    on TH-cam: / @techworldwithnana
    on DEV: dev.to/techwor...
    on Instagram: / nanuchij
    on Twitter: / njuchi_
    on Tumblr: www.tumblr.com...
    Legal Notice:
    Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United States and/or other countries. Docker, Inc. and other parties may also have trademark rights in other terms used herein. This video is not accredited, certified, affiliated with, nor endorsed by Docker, Inc.

ความคิดเห็น • 337

  • @TechWorldwithNana
    @TechWorldwithNana  4 ปีที่แล้ว +60

    0:21 - When do we need Docker Volumes?
    1:02 - What is Docker Volumes?
    2:04 - 3 Docker Volumes Types
    4:14 - Docker Volumes in docker-compose file
    👉🏼 For any questions/issues/feedback, please leave me a comment and I will get back to you as soon as possible.
    👉🏼 Also please let me know what you want to learn about Docker & Kubernetes.
    Please don't forget to subscribe and give me a thumbs up if you liked my video 🤓

    • @agrahul89
      @agrahul89 3 ปีที่แล้ว

      Wow! this was actually the best explanation for docker volume mapping i have stumbled upon so far. You really made it so easy to understand. Thank you Nana.

    • @UnknownSend3r
      @UnknownSend3r 3 ปีที่แล้ว

      Hi there nana, great video. I'm new to docker and containers in general, I wanted to know, do you have to manually create the path in the container (in this case /var/lib/mysql/data) your mapping to, and how do you go about doing it ? Thanks in advance.

    • @Manasa-ei4jp
      @Manasa-ei4jp ปีที่แล้ว

      Hi nana, could tell me what is the maximum capacity of volume size by default in docker if we didnt mention limit to it. As well as how i can find that ? Thanks in advance

    • @FreePizza007
      @FreePizza007 3 หลายเดือนก่อน

      Don't work with postgres containers. Asks for user. Pass error

  • @peteconnolly
    @peteconnolly 4 ปีที่แล้ว +137

    I really like the way you deliver information in a short, sharp way. It really cuts through some of the complexities of the subject matter

  • @sravanchithari13
    @sravanchithari13 4 ปีที่แล้ว +20

    As a beginner i read volumes concept in docker document but didn't understood clearly but with your tutorial it understood clearly,way you delivered this concept is awesome . "short and sharp" teaching. Thank you so much :)

    • @TechWorldwithNana
      @TechWorldwithNana  4 ปีที่แล้ว +3

      Thank you, I'm glad my video is so useful! :)

  • @hassannaveed368
    @hassannaveed368 3 ปีที่แล้ว +7

    Not only she explained what volumes are , she even explained how to replicate a database using volumes in just 6 minutes!!!! HOLY MOLY . Ty !

    • @akshat2808
      @akshat2808 หลายเดือนก่อน

      replication? which part? Are you referring to the volume creation with a path as replication since the data being saved inside the container is also being saved to that particular folder path as well as it's being mounted the moment the image is recreated.

  • @yinonelbaz5309
    @yinonelbaz5309 2 ปีที่แล้ว +1

    I've spent hours trying to figure out all the variations I see for volumes. You just explained it excellently straight to the point
    Thanks!!!

  • @vasudevjamwal
    @vasudevjamwal 3 ปีที่แล้ว +4

    I usually don’t comment on TH-cam videos, but your content truly deserves to be appreciated. I’ll definitely share your channel with my coworkers.

    • @TechWorldwithNana
      @TechWorldwithNana  3 ปีที่แล้ว +1

      Thank you so much! Appreciate your comment 😊

  • @Capture.Castle
    @Capture.Castle 2 ปีที่แล้ว +1

    Wow, this video just made everything make sense! I’ve been losing hours of my week trying to figure out these freaking volume save paths. Thank you!

    • @SebVEVO
      @SebVEVO ปีที่แล้ว

      And I have been losing years everytime I come back to volumes. Now it's crystal clear.

  • @jaimecarranza7872
    @jaimecarranza7872 4 ปีที่แล้ว +7

    Excellent lesson! Easily digestible and thorough. I was confused about named volumes in docker compose files, this totally cleared it up in a hurry.

  • @mubafaw
    @mubafaw 2 ปีที่แล้ว +20

    You are a genius in the way you break down complex topics that the
    layman can understand and follow crystal clear.
    This video is better than alot of paid courses out there.
    Your explanation is a lot clearer than the official docs too.
    Although it did not directly solve the problem I had it sure did make me more confident and pointed me in the right direction to eventually solving the problem.
    Thank you
    for your contribution to humanity and also potentially saved my job!

  • @torrvic1156
    @torrvic1156 8 หลายเดือนก่อน +2

    Thank you miss Nana! That was a very short and sweet explanation of a VERY complex subject!

  • @filthkyory
    @filthkyory ปีที่แล้ว +1

    Wow ... Infinity thanks. After of this explanation, I understand very good how to use volumes correctly... Again... Thank you very much!

  • @rafa7730
    @rafa7730 4 ปีที่แล้ว +7

    Great way to slip in the commands along with the high level explanation! Usually you only get one or the other in tutorial videos. Thanks!

  • @SnowmEVE
    @SnowmEVE 4 ปีที่แล้ว +21

    Great video.
    Not sure why the official volume docs don't follow a similar structure like this.

  • @mohamedarfaoui677
    @mohamedarfaoui677 4 ปีที่แล้ว +1

    I Like How Your Explanation Is Short And Direct. Very Helpful. THKS !

    • @TechWorldwithNana
      @TechWorldwithNana  4 ปีที่แล้ว

      That's wonderful Mohamed. Happy to hear. Thank you. 🙂

  • @shaunmcdougall9749
    @shaunmcdougall9749 4 ปีที่แล้ว +5

    Exactly what i needed, last thing I want is a video that drags out for 15 to 21 minutes when I just need to know what the tutorial im following is doing

  • @farzadsole3784
    @farzadsole3784 4 ปีที่แล้ว +5

    Wow thank you so much, couldn't understand the volumes any better, despite I watch dozens of other video tutorials here, none of them made it this easy to visualise the entirety of the whole concept in my head, you are a star :)

    • @TechWorldwithNana
      @TechWorldwithNana  4 ปีที่แล้ว +1

      Wow thanks, very happy to hear that my video is so helpful! Would appreciate your support by sharing my videos or subscribe :)

  • @howbeautifulwillbetheparad5967
    @howbeautifulwillbetheparad5967 2 ปีที่แล้ว +3

    Your work is admirable, your way of teaching is admirable simply great!!!!

  • @Lunolux
    @Lunolux ปีที่แล้ว +1

    great job, i watch like 3hours of your video, great explaination, nice job, thx

  • @zakhorpa
    @zakhorpa 4 ปีที่แล้ว +3

    After hanging around dozens of tutorials at last I got the Volumes puzzle solved here. Thank you!

    • @TechWorldwithNana
      @TechWorldwithNana  4 ปีที่แล้ว +2

      You're welcome, happy to hear my video is so helpful! :)

  • @armankarimi9209
    @armankarimi9209 2 ปีที่แล้ว +2

    Your videos are great! The official documents of Docker are so vague and incomprehensible, but you simplify and present these concepts so wonderfully.

  • @abhinavsrirangam
    @abhinavsrirangam 4 ปีที่แล้ว +1

    Excellent Buddy.. clarified with one video..if possible try to explain on bind mounts

  • @brookster7772
    @brookster7772 9 หลายเดือนก่อน +1

    You’re my go to reference for learning keep up the great job!

  • @smarttradzt4933
    @smarttradzt4933 2 ปีที่แล้ว +1

    can't believe i just found this channel now...thank you for the best explanation! subscribed!

  • @MichaelZamir
    @MichaelZamir 3 หลายเดือนก่อน

    Question: In the end of this tutorial (around 5:00) , you explain the docker compose methodology for creating a volume that is used cross-container.
    My question is : what if those containers are created across different hosts ? How can / should we ensure that the physical folder is shared by the different container hosts ?

  • @er.vikramkumarpundir8073
    @er.vikramkumarpundir8073 4 ปีที่แล้ว +3

    You are always super Nana in explaining the concepts really simple words. It works like a charm every time.
    You are great.

    • @TechWorldwithNana
      @TechWorldwithNana  4 ปีที่แล้ว +1

      I appreciate the compliment. Thank you. 🙂

  • @Nakameguro97
    @Nakameguro97 2 ปีที่แล้ว

    The best explanation of docker volumes on YT! The double indirection of named volumes threw me off, but your diagrams describe it perfectly.

  • @bama2619
    @bama2619 2 ปีที่แล้ว

    Good point at 1:55 . Thank you. I could not understand why there were volumes inside containers and outside. For the sake of copying and saving)))
    Clear

  • @MccZerk
    @MccZerk 5 หลายเดือนก่อน

    Was confused out of my tree focusing on the first type of volume, not realizing that their was 3. Great video.

  • @pallavkan
    @pallavkan 4 ปีที่แล้ว +6

    The editing efforts you are putting to create videos on docker and kubernetes is commendable!! I have noticed how each sub-topic is clearly mentioned with the title when we slide the video forward!!

    • @TechWorldwithNana
      @TechWorldwithNana  4 ปีที่แล้ว +2

      Thank you so much Pallav, happy one can notice the efforts I put into my videos and it's appreciated 🙂🙏

  • @sandeepsundaram5577
    @sandeepsundaram5577 3 ปีที่แล้ว

    one of the best educators i have come across

  • @ivanbogdan185
    @ivanbogdan185 3 ปีที่แล้ว +6

    Best resource about Docker Volumes on the web. God bless. Keep it up!

  • @jomarmorais3910
    @jomarmorais3910 9 หลายเดือนก่อน +2

    Awesome explanation! Thanks! 🥰🥰🥰

  • @nagarjunahota4498
    @nagarjunahota4498 ปีที่แล้ว +1

    love the graphical representation, thank you

  • @AhmedShakil
    @AhmedShakil 2 ปีที่แล้ว

    I was going to watch a several videos, but this one answered all my questions in 6 minutes. Thank you!

  • @Mo7dBa7rani
    @Mo7dBa7rani 4 ปีที่แล้ว +3

    I really liked the way you described the topic. Nice interactive slideshow. I saw many volume description videos and by far this is one of the best.

  • @dxb_coder
    @dxb_coder 2 ปีที่แล้ว +1

    Nana is the best.... thank you for this brief yet comprehensive explanation.

  • @Kumar99553
    @Kumar99553 4 ปีที่แล้ว +7

    Seen so many videos but not satisfied with any of them. Your way of presentation is awesome. Keep doing. Good luck👍

  • @kimkiamco3292
    @kimkiamco3292 3 ปีที่แล้ว +2

    the best tutorial for docker volumes out there

  • @arsalanharouni2058
    @arsalanharouni2058 ปีที่แล้ว

    Very clear specially as you mentioned WHY and WHEN we can specifically use volumes. Thank you a bunch!

  • @RamanPreetSingh
    @RamanPreetSingh 4 ปีที่แล้ว +2

    Hey Nana, this video was very clear and helpful. Can you make a video about different types of mount as well explaining difference b/w bind and volume mount.

    • @TechWorldwithNana
      @TechWorldwithNana  4 ปีที่แล้ว +2

      Thanks Raman. Will consider that for future content. Stay safe. 🙂

  • @johnczaia9124
    @johnczaia9124 4 ปีที่แล้ว +2

    Clear and to the point, now I finally know what named volumes are for! Thanks!

    • @TechWorldwithNana
      @TechWorldwithNana  4 ปีที่แล้ว

      Glad it was helpful John, thanks for your comment! :)

  • @lefxxwill7740
    @lefxxwill7740 3 ปีที่แล้ว

    wow. this short video has helped mde out a bunch in understanding what is going on in our docker environment. Once I watch more of your videos I'm sure I will have a good understanding of docker! Thanks a lot!

  • @randykitchleburger2780
    @randykitchleburger2780 2 ปีที่แล้ว +1

    Extremely helpful, thank you so much! You solved my hour long problem in 3 minutes

  • @MrPikoka
    @MrPikoka 4 ปีที่แล้ว +1

    minimal and crisp, I loved it!

    • @TechWorldwithNana
      @TechWorldwithNana  4 ปีที่แล้ว

      Thank you Matheus. Your support is much appreciated. 🙂

  • @prasanass
    @prasanass 4 ปีที่แล้ว +3

    Very good presentation with relevant information !!!
    Thank you very much !!!

    • @TechWorldwithNana
      @TechWorldwithNana  4 ปีที่แล้ว +1

      You're welcome, glad the video is helpful :)

  • @j4t1nd3r
    @j4t1nd3r 3 ปีที่แล้ว +3

    Thanks for the breakdown, I've been stuck on a volume issue for a while now. Turns out I misunderstood one of the volume types which your video cleared up! =]

  • @stone8905
    @stone8905 2 ปีที่แล้ว

    Nana, You are the best. Thank you very much!

  • @marekr.9339
    @marekr.9339 ปีที่แล้ว

    Best explanation I have already found.

  • @ImbraWolf
    @ImbraWolf ปีที่แล้ว +1

    I always test it by restarting the docker container, if the container does not need to be reinstalled, that means it was mapped correctly and its working

  • @moe45673
    @moe45673 ปีที่แล้ว

    Thank you! You made this very clear in the first minute or so. Exactly what I needed.

  • @aleabtu6004
    @aleabtu6004 4 ปีที่แล้ว +2

    it was really clear and concise

    • @TechWorldwithNana
      @TechWorldwithNana  4 ปีที่แล้ว +1

      Love that you find it that way. Thank you. 🙂

  • @averrows
    @averrows หลายเดือนก่อน

    Thank you Nona!, this is a wonderful explanation

  • @maboesanman
    @maboesanman 3 ปีที่แล้ว

    this is the best resource I've found for understanding containerization technologies. thanks for your hard work!

  • @PouyaAtaei
    @PouyaAtaei ปีที่แล้ว

    like always, great presentation. I wish we had you as a teacher in uni...

  • @sujeetkumar.
    @sujeetkumar. 3 ปีที่แล้ว

    You have made docker very simple. Thank You for superb explanation.

  • @mumblic
    @mumblic 3 ปีที่แล้ว

    This was the biggest question I had. This is also something that always should be mentioned in beginner tutorials, sadly it almost never is. Which make it really hard to understand containers as a newcomer.

  • @sirishreddyg
    @sirishreddyg 9 หลายเดือนก่อน

    Sharp, To the point. Stay Blessed!

  • @uriel4829
    @uriel4829 4 ปีที่แล้ว +3

    I'm surprised this vid has so few views. You explained really well and concisely.

    • @TechWorldwithNana
      @TechWorldwithNana  4 ปีที่แล้ว +2

      Hi Uriel, thanks for your comment! I also think I deserved more views 😀Please share the content :)

  • @IvasyukRuslan
    @IvasyukRuslan 2 ปีที่แล้ว

    One of the best explanation about docker volumes. Thank you Nana it's very helpful!

  • @moises8war
    @moises8war 3 ปีที่แล้ว

    the section on how to define shared volumes in the docker compose file was really helpful. Thank you! I subscribed!

  • @Xanagandr
    @Xanagandr 4 ปีที่แล้ว +2

    Love the content. 2 questions:
    1) How relevant for DevOps is to know the internals of Docker volumes? i.e. Unified Filesystem and storage drivers.
    2) How relevant is configuring docker volumes (w/ command-line arguments)?

    • @krzysztofwesoowski7674
      @krzysztofwesoowski7674 3 ปีที่แล้ว +1

      1) DevOps on premise must know what is going on, to diagnose and be in control what's happening. There cannot be cases, especially on live environment, when devops says he/she does not know what's going on - such minimum knowledge like storage drivers is required, the rest you get from stackoverflow, google etc.
      2) Does not matter. Use compose for smaller things, and Kubernetes for large scale (CI, live etc.)

  • @kristiantorres1080
    @kristiantorres1080 4 ปีที่แล้ว +2

    Thank you. I love you!

  • @sethpolley7999
    @sethpolley7999 2 ปีที่แล้ว

    Thank you, this is very concise!

  • @muthuarul88
    @muthuarul88 2 ปีที่แล้ว +1

    you are really awesome NANA, it was to the point. BTW i like your voice which kept me focused.

  • @enrsdv6167
    @enrsdv6167 4 ปีที่แล้ว +2

    Very nice video. Are all containers located in the same path "/var/lib/CONTAINERNAME"???? Thanks

  • @learningcode314
    @learningcode314 ปีที่แล้ว +1

    Great explanation! Thanks :)

  • @Tolmachovtv
    @Tolmachovtv 5 หลายเดือนก่อน

    Thanks for the video, stay inspired!

  • @LOogt
    @LOogt 3 ปีที่แล้ว

    Thank you, you made it simple.

  • @jeshocarmel
    @jeshocarmel 4 ปีที่แล้ว +1

    I used this for my project. Thanks Nana :)

    • @TechWorldwithNana
      @TechWorldwithNana  4 ปีที่แล้ว

      How did it work out for you Jesho? I hope it worked wonders! All the best. 🙂

    • @jeshocarmel
      @jeshocarmel 4 ปีที่แล้ว

      @@TechWorldwithNana yes it was :) I'm exploring kubernetes now. Will come back with doubts in the coming days. Hope you can help :)

  • @chjethan2537
    @chjethan2537 4 ปีที่แล้ว +1

    Nice video, straight to the point. Can you explain how to manage containers with configuration files like MySQL and how about the permissions on Host machine to Containers ? Thanks

  • @pclp3202
    @pclp3202 4 ปีที่แล้ว +1

    Excellent insight in short time. Great work. Expecting more learning & videos from you :)

    • @TechWorldwithNana
      @TechWorldwithNana  4 ปีที่แล้ว +1

      Thank you! Please don't forget to share the knowledge with your friends. 🙂

  • @dougdecoursin9919
    @dougdecoursin9919 4 ปีที่แล้ว +2

    Fantastic video - great explanation with just enough visual!

    • @TechWorldwithNana
      @TechWorldwithNana  4 ปีที่แล้ว

      Thanks a lot Doug! Really happy you like my explanation and visuals :)

  • @yuriyk8002
    @yuriyk8002 3 ปีที่แล้ว +1

    perfectly explained. thank you so much.

  • @Python_Bacon
    @Python_Bacon 2 ปีที่แล้ว +1

    great video, thank you.

  • @nicolasbatista4342
    @nicolasbatista4342 4 ปีที่แล้ว +2

    Thanks a lot for this video! Exactly what I needed to my project :D

    • @TechWorldwithNana
      @TechWorldwithNana  4 ปีที่แล้ว +1

      I hope you aced your project Nic. Best of luck! 🙂

  • @erickgiffoni
    @erickgiffoni 3 ปีที่แล้ว +1

    Thank you very much !

  • @JustinPhilip1
    @JustinPhilip1 3 ปีที่แล้ว

    Nana, for me, if im stuck in docker, i just land up to your channel !

  • @funfaroo
    @funfaroo 4 ปีที่แล้ว +7

    good introduction, at least now I know that named volume should be used in production, in case someone ask me this in an interview 😀

  • @enricosaccheggiani3192
    @enricosaccheggiani3192 3 ปีที่แล้ว +1

    Thanks a lot for this interesting video !!!!!!

  • @husnainfayaz
    @husnainfayaz 2 ปีที่แล้ว

    Thanks! explained very well in a very short amount of time.

  • @SohailKhan-ll9kh
    @SohailKhan-ll9kh 3 ปีที่แล้ว

    Brilliant video once again Nana! Thanks

  • @osmoofnybble
    @osmoofnybble 2 ปีที่แล้ว +2

    Thanks!

  • @MaLaCoiD
    @MaLaCoiD 3 ปีที่แล้ว +1

    Great video to help me understand volumes. Now... how do I find the volume on the Windows10 host to modify the persistent data?

  • @carlellis9647
    @carlellis9647 2 ปีที่แล้ว

    Another great video by Nana where she explains things so well. Thanks so much! :)

  • @JalilHasanov
    @JalilHasanov 11 หลายเดือนก่อน

    Great job Nana. Thank you

  • @tomascoelhopinto
    @tomascoelhopinto 2 ปีที่แล้ว

    Actually insanely well explained. Thank you, will subscribe.

  • @Sureymadhu
    @Sureymadhu 4 ปีที่แล้ว +1

    very well explained. clear and crispy way...:)

    • @TechWorldwithNana
      @TechWorldwithNana  4 ปีที่แล้ว

      I don't know about crispy, but it makes me think about food. 😇 But yes, thank you Surendhiran, this is much appreciated.

  • @vivamedia5958
    @vivamedia5958 2 ปีที่แล้ว

    Thank you Nana, Is it possible to explain a little bit about how to rename a volume? Thanks

  • @samucancld
    @samucancld ปีที่แล้ว

    hey nana did you have a more in depth video of this topic? thanks for all your content

  • @AbdelrahmanMoussaAbuOuf
    @AbdelrahmanMoussaAbuOuf ปีที่แล้ว

    Thank you Nana, this was brilliant

  • @sourandbitter3062
    @sourandbitter3062 4 ปีที่แล้ว +1

    Ahhh... clarity. Thank you.

    • @TechWorldwithNana
      @TechWorldwithNana  4 ปีที่แล้ว

      Yes, it's the best way to impart knowledge. 😇

  • @PeterOeC
    @PeterOeC 2 ปีที่แล้ว +1

    These videos are 🔥!
    Thanks for making them :)

  • @lioncoding
    @lioncoding 2 ปีที่แล้ว +1

    Clear, simple and nice :) Perfect explanation !

  • @batfist6595
    @batfist6595 3 ปีที่แล้ว +1

    In docker-compose you should use "volumes: db-data: " instead of "volumes: db-data " (with colon)

  • @nihalkumarsharma7874
    @nihalkumarsharma7874 ปีที่แล้ว

    you are the best, really like your tutorials

  • @sowmithreddy18
    @sowmithreddy18 2 ปีที่แล้ว

    superbly explained 👍🏽

  • @martinotaco
    @martinotaco 4 ปีที่แล้ว +1

    great !!! how can I define a specific host directory? for example a NAS NFS

  • @perdaboy
    @perdaboy 4 ปีที่แล้ว +1

    Perfect explanation! Clear, well paced and to the point!

  • @yanivgardi9028
    @yanivgardi9028 ปีที่แล้ว

    thank you for the great video. A question regarding the named volumes: How can we share data from the host with the container, but using named volumes? For that purpose, I assume, "Host Volume" (type 1) is more suitable, correct?

  • @mosharafhossain2521
    @mosharafhossain2521 หลายเดือนก่อน

    Nicely explained. multiple path volume can be created using docker compose
    Container context which multiple folder will be automatically created that named inside context?