From 18.03 onwards our recommendation is to connect to the special DNS name, which resolves to the internal IP address used by the host. The host has a changing IP address (or none if you have no network access). Linuxįor macOS and Windows the following special DNS name can be used: I'll show you how to easily make this work simultaneously for macOS, Windows, and Linux - because their docker networking settings differ.ĭocker Networking on macOS and Windows vs. Debugging or reverse proxies running on your host are two additional example use-cases. ![]() ![]() ![]() For instance, you need to be able to connect to the host network from inside a Docker container to access your app or database running locally on the host. Once in a while, you may need your Docker host's IP address.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |