As of Docker version 18.03, you can use the host.docker.internal hostname to connect to your Docker host from inside a Docker container. This works fine on Docker for Mac and Docker for Windows, but unfortunately, this is not was not supported on Linux until Docker 20.10.0was released in December 2020. Starting from version 20.10 , the Docker Engine now also supports communicating with the Docker
![How to connect to the Docker host from inside a Docker container?](https://cdn-ak-scissors.b.st-hatena.com/image/square/34735a51a4cc141c875a7d8af4b3fcd379e84a30/height=288;version=1;width=512/https%3A%2F%2Fmiro.medium.com%2Fv2%2Fresize%3Afit%3A637%2F1%2AgLfV-N-56SolFji6XjZ0og.png)