08 What are Docker Volumes?

Поделиться
HTML-код
  • Опубликовано: 8 сен 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

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

  • @yourstrulysaidi1993
    @yourstrulysaidi1993 4 месяца назад +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  3 месяца назад

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

  • @wonders2009
    @wonders2009 8 месяцев назад +1

    Thank you Very much for detail explanation....

  • @Ajju4318
    @Ajju4318 4 месяца назад +1

    Thank you 😊

    • @NextOpsVideos
      @NextOpsVideos  3 месяца назад

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

  • @satyajyothi683
    @satyajyothi683 Год назад +1

    Waiting for next videos sir💗

  • @HarikrishnaMuppa
    @HarikrishnaMuppa 3 месяца назад +1

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

    • @NextOpsVideos
      @NextOpsVideos  2 месяца назад

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

  • @sudhakardev3444
    @sudhakardev3444 Год назад +1

    Thank you

    • @NextOpsVideos
      @NextOpsVideos  Год назад

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

  • @sannalagovardhan8282
    @sannalagovardhan8282 3 месяца назад +1

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

  • @HarikrishnaMuppa
    @HarikrishnaMuppa 2 месяца назад +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  2 месяца назад

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

  • @tejakumargoud305
    @tejakumargoud305 6 месяцев назад

    superb explanation😍

    • @NextOpsVideos
      @NextOpsVideos  6 месяцев назад +1

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

  • @nasai5157
    @nasai5157 6 месяцев назад +1

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

  • @krish_for_you
    @krish_for_you 5 месяцев назад +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  5 месяцев назад

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

    • @krish_for_you
      @krish_for_you 5 месяцев назад

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

  • @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

  • @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?

  • @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

  • @anandreddy9936
    @anandreddy9936 Год назад +1

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

  • @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

  • @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.

  • @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.

  • @annaramlg
    @annaramlg Год назад +1

    Hi charan

  • @visionking742
    @visionking742 3 месяца назад +1

    Screen charge chesthu videos chyara

  • @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 ,

  • @sagivishnuvardhan5521
    @sagivishnuvardhan5521 7 дней назад +1

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

    • @NextOpsVideos
      @NextOpsVideos  7 дней назад

      You need to type the command, not copy paste.