---
title: "Discussion on \"How to connect  the localhost to the docker container\" | Hashnode"
description: "Discussion on \"How to connect  the localhost to the docker container\". If you are debugging an application inside a docker container and want to connect to the SQL server running on your localhost:3000, you cannot give the localhost:3000 as a connection string. Docker doesn't know how to connect to your local host. To s..."
url: "https://hashnode.com/posts/how-to-connect-the-localhost-to-the-docker-container/62f94f01fffdab933bdead27"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to connect the localhost to the docker container](https://saseek.com/how-to-connect-the-localhost-to-the-docker-container?utm_source=hashnode&utm_medium=feed)

If you are debugging an application inside a docker container and want to connect to the SQL server running on your localhost:3000, you cannot give the localhost:3000 as a connection string. Docker doesn't know how to connect to your local host. To s...

Aug 14, 2022 · 1 min read · saseek.com  
Updated Mar 18, 2024  
Read the article

-   [#docker](https://hashnode.com/tag/docker)
-   [#developer](https://hashnode.com/tag/developer)
-   [#debugging](https://hashnode.com/tag/debugging)

## Written by

[Saseek Azmi](https://hashnode.com/@saseek)

@saseek · Chennai, India

  
[View profile](https://hashnode.com/@saseek)

Senior Software Engineer @Relevantz

Senior Software Engineer @Relevantz | I write about modern JavaScript &amp; building web apps

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
