---
title: "Comment by Alex Hay on \"How to run ASP.NET Core & SQL Server from Docker\" | Hashnode"
description: "Hi Sam, Thanks for the guides, they&#39;ve been super helpful :) Having an issue with this one though. When I run the solution from your GitHub through the Dock"
url: "https://hashnode.com/posts/how-to-run-aspnet-core-and-sql-server-from-docker/5f944d7540346172a86c1b05/comment/600aefd5a9a6c21e4fa45233"
---

[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)

[Alex Hay](https://hashnode.com/@Legs)

[Jan 22, 2021](https://hashnode.com/posts/how-to-run-aspnet-core-and-sql-server-from-docker/5f944d7540346172a86c1b05/comment/600aefd5a9a6c21e4fa45233)

Hi Sam,

Thanks for the guides, they've been super helpful :)

Having an issue with this one though. When I run the solution from your GitHub through the Docker Compose project the page `[localhost/weatherforecast](https://localhost:49167/weatherforecast)` then loads up with the message `localhost refused to connect.`

The NotesController page does the same thing and I can see breakpoints in the constructors aren't hit, although I have no issue stepping through the code in Program or Startup.

Looking at Docker Desktop and clicking open in browser from the DockerCompose container (created from the solution) and clicking `Open in Browser` takes me to `[localhost](http://localhost:1433/)` which gives the error `localhost didn’t send any data.`

If I look at the log for the SQL Server container I can see `Logon Login failed for user 'sa'. Reason: Failed to open the explicitly specified database 'AppDbContext'. [CLIENT: 172.22.0.3]` before it starts up the database.

I assume this is the issue - any idea how to resolve or debug this further?

I've tried adding my own secure password for the SQL instead of the one in your solution, several different ones with the same results.

[Alex Hay](https://hashnode.com/@Legs)

[Jan 22, 2021](https://hashnode.com/posts/how-to-run-aspnet-core-and-sql-server-from-docker/5f944d7540346172a86c1b05/comment/600aefd5a9a6c21e4fa45233#reply-600af707a9a6c21e4fa452bb)

Restarted my computer and now it works fine _shrugs_

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

[Jan 23, 2021](https://hashnode.com/posts/how-to-run-aspnet-core-and-sql-server-from-docker/5f944d7540346172a86c1b05/comment/600aefd5a9a6c21e4fa45233#reply-600bd3248304951e7434e969)

[Alex Hay](https://hashnode.com/@Legs) Ah that's odd. At least it's working now! I've sometimes had issues where the .NET container gets created before the SQL container, which throws a similar error. Restarting the project usually fixes that.
