How to do volume mapping on docker
1. Create dir /opt/sample
2. go to /data Create a mapping.txt file with content "This is a docker sample volume mapping..!!"
3. Pull ubuntu image with latest tag.
4. Create a new container with name "test" from the image you just pulled.
5. Map the host volume /opt/sample with container volume /home.
6. Copy that mapping.txt file to /opt/sample, Also please keep the container in running state.
verification:
check inside the container volume /home that mapping.txt file is presented with the correct content.
Solution :
Check below the sample solution video for the above task.
PLEASE SUPPORT ME BY
LIKE || SUBSCRIBE || COMMENTS on MY YOUTUBE CHANNEL AND BLOG
LIKE || SUBSCRIBE || COMMENTS on MY YOUTUBE CHANNEL AND BLOG
STAY TUNED FOR MORE VIDEOS.......
#Learn #Practice #Re-Learn #Improve #Motivate
#Continue-Learning #Apply #Get-Help #Help-Others
No comments:
Post a Comment