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? and How to bui...
For entire docker playlist
• Docker in Telugu
For entire terraform playlist
• Terraform in Telugu
For azure devops videos
• Azure Devops in Telugu - Labs
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
Watch video 08 What are Docker Volumes? online without registration, duration hours minute second in high quality. This video was added by user NextOps Videos 17 March 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 18,402 once and liked it 424 people.