08 What are Docker Volumes?

Поділитися
Вставка
  • Опубліковано 2 жов 2024
  • In this video i am discussing about What are Docker Volumes? and How to mount them in different ways (In Telugu).
    In previous video we discussed about Dockerfile in depth
    • 07 What is Dockerfile?...
    For entire docker playlist
    • Docker in Telugu
    For entire terraform playlist
    • Terraform in Telugu
    For azure devops videos
    • Azure Devops in Telugu...
    Full commands used in this video
    To create a Docker Volume use the command
    -----------------------------------------
    docker volume create testvol1
    docker volume ls
    docker volume inspect testvol1
    ---------------------------------------
    Mounting a Volume using -v or --mount
    ---------------------------------------
    docker run -it --name=srv01 --mount source=testvol1,destination=/data centos
    docker run -it --name srv04 -v testvol1:/data centos
    docker run -it --volumes-from srv01 --name srv02 centos /bin/bash
    ---------------------------------------
    Mounting a Host Directory as a Data volume
    ---------------------------------------
    mkdir files
    cd files
    touch file.txt
    docker run -it --name srv05 -v "$(pwd)":/data1 centos
    docker volume rm [volume_name]
    #nextops #nextopsvideos #nextops docker

КОМЕНТАРІ • 55

  • @yourstrulysaidi1993
    @yourstrulysaidi1993 5 місяців тому +2

    Sir, you explained each topic in very detailed manner, even beginner can easily understand this.
    thank you for all your videos. i learned a lot from your videos.
    once again thank you 🙂

    • @NextOpsVideos
      @NextOpsVideos  4 місяці тому

      Thanks for watching, please do share a good about the channel if you can..

  • @badepalliharisha4007
    @badepalliharisha4007 16 днів тому +1

    Either shut down WSL down with wsl --shutdown, and/or reboot your machine. idi ela anna chesedi

    • @NextOpsVideos
      @NextOpsVideos  14 днів тому

      From command prompt you can run these commands

  • @badepalliharisha4007
    @badepalliharisha4007 16 днів тому

    Docker Desktop - Unexpected WSL error
    An unexpected error occurred while executing a WSL command.
    Either shut down WSL down with wsl --shutdown, and/or reboot your machine. You can also try reinstalling WSL and/or Docker Desktop. If the issue persists, collect diagnostics and submit an issue⁠. anna na docker server stopayindi anna

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

    Hi Sir
    Docker Engine where it will store the container information.

    • @NextOpsVideos
      @NextOpsVideos  3 місяці тому

      There will be a path on host machine under /var/lib/docker

  • @sivakumar-s9g1y
    @sivakumar-s9g1y 13 днів тому +1

    outstanding explanation ...

    • @NextOpsVideos
      @NextOpsVideos  13 днів тому

      Thank you 🙏 please share the good word about the channel if you can 🙏🙏

  • @sagivishnuvardhan5521
    @sagivishnuvardhan5521 Місяць тому +1

    removing container through looping is not working sir, it's saying that unknown shorthand flag -a, -q
    help me🥲

    • @NextOpsVideos
      @NextOpsVideos  Місяць тому

      You need to type the command, not copy paste.

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

    superb explanation😍

    • @NextOpsVideos
      @NextOpsVideos  7 місяців тому +1

      Thank you so much, please do share and help grow my channel.

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

    Hi Sir
    Containers will have IP address or not ? Why i am asking to access the application also using the docker host and then application configured port.

    • @NextOpsVideos
      @NextOpsVideos  3 місяці тому

      In bridge scenario they get their own ports but ultimately they rely on docket host ip to handle traffic in any case.

  • @visionking742
    @visionking742 4 місяці тому +1

    Screen charge chesthu videos chyara

  • @sannalagovardhan8282
    @sannalagovardhan8282 4 місяці тому +1

    Hi
    How to mount a new volume to running container, that running container has already a existing volume.
    is that possible to add

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

    Nest Videos yeppudu vasthai charan, waiting long back, koncham fast ga docker complete chesi, k8s start cheyandi brother,plz

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

    Hi bro, Can you please explain docker overlay2 folder. How we can identify overlay2 is related to docker image or container. Pls explain bro.

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

      Sure in upcoming video. Please share the good word about the channel if you can.🙏🙏🙏

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

      @@NextOpsVideos , I am already share your videos to my entire team

  • @nasai5157
    @nasai5157 7 місяців тому +1

    Anna una volume alage unchi inko volume attach cheyagalam.., same container path ki like new volume create chesi petadam

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

    Anna... troubleshooting cheppu anna...manaki enni rakaluga facing chestam

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

    Any limit for docker volume size sir? Can I keep data 1GB or more in it and how can I share export this data or volume to my local Laptop or GitHub repo or S3 buckets?

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

      Volume depends on your docker host storage. You can share the data with your docker host but not GitHub or s3

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

    Hi sir can you teach aws devops...
    How can i contact you..

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

      I don't teach aws devops, I teach azure devOps.

  • @wonders2009
    @wonders2009 9 місяців тому +1

    Thank you Very much for detail explanation....

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

    Hi charan,
    I have docker login and executed , its saying resource is dentied. I am practicing on amazaon ec2 instance. Please suggest
    [root@ip-172-31-40-158 ~]# docker run it --name=srv01 --mount source=testvol01,destination=/data centos
    Unable to find image 'it:latest' locally
    docker: Error response from daemon: pull access denied for it, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
    See 'docker run --help'.

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

      It could be an issue connecting to dockerhub. Are you able to login successfully?

  • @Ajju4318
    @Ajju4318 5 місяців тому +1

    Thank you 😊

    • @NextOpsVideos
      @NextOpsVideos  4 місяці тому

      You're welcome 😊, please do share a good about the channel if you can.

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

    Waiting for next videos sir💗

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

    Thank you

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

      Thank you Sudhakar.
      Please share the good word about the channel if you can 🙏🙏🙏

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

    Sir, 1 doubt: Can i rename it /data folder....and why you use sometime /data, other time /data1? If i wish to create & push my data into direct /_data means (docker host path) without creating /data in container even i was login in running container....

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

      You can't rename any folder with in container

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

    Hi charan

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

    Thank you very much for all the azure and docker videos. can you let us know what would be the future concepts we can expect?

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

      Docker would be few more videos,
      Terraform is almost done.
      K8s is coming up

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

    container create chesthunappudu kakunda , existing container ki volume attach cheyali ante ye command vaadali sir
    existing volume and container ki multiple directories mount cheyali ante yela sir

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

      Hi Mohan, thanks for watching.
      You cannot add volume to a running container. If you want to add volume to an existing container first you need to commit the container using docker commit command which creates an image out of that container. Then you need to attach a volume while creating a new container from this new image.

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

    LinkedIn profile share cheyandi

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

      Search for my name on LinkedIn

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

      @@NextOpsVideos
      I am also searching for a LinkedIn profile not able to find , can you please share
      Full profile I'd

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

      @@annaramlg LinkedIn.com/in/narayanacharan

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

      @@NextOpsVideos
      Thank you very much ,