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
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 🙂
Thanks for watching, please do share a good about the channel if you can..
Either shut down WSL down with wsl --shutdown, and/or reboot your machine. idi ela anna chesedi
From command prompt you can run these commands
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
Hi Sir
Docker Engine where it will store the container information.
There will be a path on host machine under /var/lib/docker
outstanding explanation ...
Thank you 🙏 please share the good word about the channel if you can 🙏🙏
removing container through looping is not working sir, it's saying that unknown shorthand flag -a, -q
help me🥲
You need to type the command, not copy paste.
superb explanation😍
Thank you so much, please do share and help grow my channel.
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.
In bridge scenario they get their own ports but ultimately they rely on docket host ip to handle traffic in any case.
Screen charge chesthu videos chyara
I don't understand
Hi
How to mount a new volume to running container, that running container has already a existing volume.
is that possible to add
Unfortunately not possible.
Nest Videos yeppudu vasthai charan, waiting long back, koncham fast ga docker complete chesi, k8s start cheyandi brother,plz
Tomorrow
Hi bro, Can you please explain docker overlay2 folder. How we can identify overlay2 is related to docker image or container. Pls explain bro.
Sure in upcoming video. Please share the good word about the channel if you can.🙏🙏🙏
@@NextOpsVideos , I am already share your videos to my entire team
Anna una volume alage unchi inko volume attach cheyagalam.., same container path ki like new volume create chesi petadam
Good one.
Anna... troubleshooting cheppu anna...manaki enni rakaluga facing chestam
We can't cover all the scenarios
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?
Volume depends on your docker host storage. You can share the data with your docker host but not GitHub or s3
Hi sir can you teach aws devops...
How can i contact you..
I don't teach aws devops, I teach azure devOps.
Thank you Very much for detail explanation....
Thank you for watching 🙏
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'.
It could be an issue connecting to dockerhub. Are you able to login successfully?
Thank you 😊
You're welcome 😊, please do share a good about the channel if you can.
Waiting for next videos sir💗
This week will post
Thank you
Thank you Sudhakar.
Please share the good word about the channel if you can 🙏🙏🙏
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....
You can't rename any folder with in container
Hi charan
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?
Docker would be few more videos,
Terraform is almost done.
K8s is coming up
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
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.
LinkedIn profile share cheyandi
Search for my name on LinkedIn
@@NextOpsVideos
I am also searching for a LinkedIn profile not able to find , can you please share
Full profile I'd
@@annaramlg LinkedIn.com/in/narayanacharan
@@NextOpsVideos
Thank you very much ,