---
title: "Comment by Bob on \"How to run ASP.NET Core & SQL Server from Docker\" | Hashnode"
description: "Great article! The only problem I faced is that each time I run the docker-compose project it results in a new SQL container being created and all my data is lo"
url: "https://hashnode.com/posts/how-to-run-aspnet-core-and-sql-server-from-docker/5f944d7540346172a86c1b05/comment/5fcd44e6f4006d0b1bedfdc4"
---

[Discussion](https://hashnode.com/posts/how-to-run-aspnet-core-and-sql-server-from-docker/5f944d7540346172a86c1b05)

Comment [How to run ASP.NET Core & SQL Server from Docker](https://hashnode.com/posts/how-to-run-aspnet-core-and-sql-server-from-docker/5f944d7540346172a86c1b05)

[Bob](https://hashnode.com/@Bob202)

[Dec 6, 2020](https://hashnode.com/posts/how-to-run-aspnet-core-and-sql-server-from-docker/5f944d7540346172a86c1b05/comment/5fcd44e6f4006d0b1bedfdc4)

Great article! The only problem I faced is that each time I run the docker-compose project it results in a new SQL container being created and all my data is lost after each run! Do you have any solutions?

[Sam Walpole](https://hashnode.com/@dr_sam_walpole)

[Dec 13, 2020](https://hashnode.com/posts/how-to-run-aspnet-core-and-sql-server-from-docker/5f944d7540346172a86c1b05/comment/5fcd44e6f4006d0b1bedfdc4#reply-5fd6339cf60e3973bae6c4c7)

Hi Bob, Thanks for the comment. I can't say that I've experienced the same issue - my Docker containers retain data between runs, unless I explicitly delete them. This article might have some useful tips to help you with persisting your data - [centinosystems.com/blog/sql/persisting-sql-server…](https://www.centinosystems.com/blog/sql/persisting-sql-server-data-in-docker-containers-part-1/)
