Connect to a Service Running on Your Docker Host from a Container

Опубликовано: 23 Февраль 2026
на канале: Nick Janetakis
8,972
61

This could be handy to connect to a database or another service not in Docker (yet).

Hit the subscribe button to receive more videos like this!

REFERENCE LINKS
---------------------------------------------------
► https://nickjanetakis.com/blog/connec...
► https://nickjanetakis.com/blog/docker...
► https://nickjanetakis.com/blog/docker...
► https://github.com/nickjj/docker-flas...

COURSES
---------------------------------------------------
Courses I've created that focus on web dev and deployment topics.

► https://nickjanetakis.com/courses/

THE TOOLS I USE / GEAR
---------------------------------------------------
► https://nickjanetakis.com/blog/the-to...

FOLLOW ME ELSEWHERE
---------------------------------------------------
► Twitter:   / nickjanetakis  
► GitHub: https://github.com/nickjj

TIMESTAMPS
---------------------------------------------------
1:04 -- Going over a few common use cases
1:56 -- What is a modern version of Docker?
2:38 -- What is host.docker.internal?
3:18 -- Getting this to work with and without Docker Desktop
3:53 -- What is host-gateway?
4:17 -- Using host-gateway with the Docker CLI and Docker Compose
6:24 -- Demoing things out with ping
7:51 -- Showing what happens without adding host.docker.internal
8:39 -- Network interfaces, gateway IP addresses and DNS
10:04 -- Inspecting Docker's bridge network
10:45 -- Stuck on an ancient version of Docker?