24: Docker Named Volume for SQL Server | Persist Data Even After Container Delete
In this video, we solve a very common problem while working with Docker + SQL Server. We have already Dockerized Microsoft SQL Server ✔ Pulled SQL Server image ✔ Ran container ✔ Connected from SSMS But here’s the issue: ❌ When the container is deleted → all databases & tables are lost 👉 Solution: Docker Named Volume In this demo, you will learn: Why SQL Server data gets deleted with containers What is a Docker Named Volume How to attach a named volume to SQL Server container How data persists even after deleting & recreating container Command used: docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=Password@123" -p 1433:1433 -v sqldbvolume:/var/opt/mssql --user root mcr.microsoft.com/mssql/server:2022-latest 💡 Real-world understanding: Containers are temporary → Volumes provide permanent storage --------------------------------------------------------------------------------------------------------------------------- Below is the link for all my playlists https://www.youtube.com/@HarshalkumarJain/playlists You can reach me on LinkedIn at: https://www.linkedin.com/in/harshalkumar-jain-63554715/ If you find this video useful - please like and subscribe to my channel If you have something exciting for me - please contact me at [email protected] Join My WhatsApp Group: chat.whatsapp.com/IFIPc34blDPDHnp3JeiJHL I really want to keep all tutorials 'free and accessible to all' It requires efforts to create quality content, so you may also buy me a coffee - if you find my tutorials/videos useful https://buymeacoffee.com/harshalkumar.jain --------------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------ Some of my playlists: Azure Functions Tutorial: https://www.youtube.com/playlist?list=PLU1w_BFZFd2r_hvhw-c3Q6KsohNc8UeiT Azure Logic Apps Tutorial: https://www.youtube.com/playlist?list=PLU1w_BFZFd2p-ml-gnuMPpBtHt_VUeajq Azure API Management Tutorial - https://www.youtube.com/playlist?list=PLU1w_BFZFd2oSHrHLdy0uhmqsYsUvgvby Azure IoT Hub Tutorial C# - https://www.youtube.com/playlist?list=PLU1w_BFZFd2pmUmbp8Wr5evtO2SPloy6o Azure Cosmos DB Tutorial C# - https://www.youtube.com/playlist?list=PLU1w_BFZFd2rhMBlX7btQ628EgDqqWWIL 'Azure AD Authentication (OAuth 2.0) Tutorial From Scratch' - https://www.youtube.com/playlist?list=PLU1w_BFZFd2qNjGLJYBAQR0vbjPe76K3m Azure Networking Tutorial - https://www.youtube.com/playlist?list=PLU1w_BFZFd2qKBBX-XXdLHeka4DrJXVjH ------------------------------------------------------------------------------------------------------
Download
0 formatsNo download links available.