DEV Community

Cover image for Accessing Host Services from Docker Containers

Accessing Host Services from Docker Containers

Mohammad Javad Naderi on February 18, 2024

Accessing a host service from within a Docker container is a common requirement. For instance, you might have a database running on the host system...
Collapse
 
suriya786 profile image
suriya786

Thank you for the great article.

Collapse
 
mjnaderi profile image
Mohammad Javad Naderi

You're welcome. :)

Collapse
 
itismoej profile image
Mohammad

Awesome! I used it to port my proxy, which was alive in my host machine, to my containers without giving them access to the host network. Thanks Mohammad Javad :)

Collapse
 
mjnaderi profile image
Mohammad Javad Naderi

You're welcome! I'm glad that this post was helpful to you.

Collapse
 
jquintanilla4 profile image
jquintanilla4

Mate, cheers for this. I've been looking for a solution like this for days.