How to make Docker Container Storage Persistent

Опубликовано: 05 Август 2026
на канале: CODING - GREED
613
11

In this video i will show , how to make storage of the OS launched over docker persistent or permanent. As when you launch a OS and create some data/file in it, and when you remove/delete that OS for any reason, all the data in that container will lost. So , it is advised to make the storage permanent. There are many other benefits of making storage persistent.
My base OS is Windows10 and i am using VMware to run RedHat, over which i am using Docker to launch OS..

✔Scroll Down to see the commands that i have used in the Video.

📑Program Using:
1. Docker
2. RedHat Linux
3. VMware Workstation
-----------------------------Hope you like this Video -----------------------------
🙏Please LIKE , SHARE among your friends and SUBSCRIBE.
Click the Bell 🔔 icon to get notified for every new videos.

👉SUBSCRIBE for more such interesting videos.

🎵Music:

Song: Jarico - Landscape (Vlog No Copyright Music)
Music promoted by Vlog No Copyright Music.
Video Link:    • Video  

Intro Music:
Track: JPB - High [NCS Release]
Music provided by NoCopyrightSounds.
Watch:    • JPB - High | Trap | NCS - Copyright Free M...  
Free Download/ Stream: http://ncs.io/jpbhigh

---------------------------------------FOLLOW ON: ---------------------------------------
📜WebSite: www.coding-greed.blogspot.com
📎Telegram: @coding_greed or Direct-Link: https://t.me/coding_greed
👨‍💻Facebook:   / codingreed  
🐤Twitter Link: https://twitter.com/CodingGreed?s=09

✔Commands Used:
1. systemctl start docker :- (to start docker)
2. docker volume create any_name (create new volume)
3.docker volume ls (check the list of the volume created)
4.docker run -it --name any_name -v volume_name:/folder_name docker-image_name:version (to attach the volume and get the shell of the container )
5. docker pa -a (check the stopped container)
6. docker rm container_name (remove any stopped container)
5. df -h (to see the list of all the mounted devices)
6. mount drive_name target_folder_path (to mount any drive to a folder)