![]() ![]() ![]() Using will resolve the correct host IP every time, which will be handy when moving between networks etc (as you can’t use localhost as the docker engine is running in a VM). You could spin up a database or perhaps a development version of something like Consul and want to access it from inside the container when using Docker for Mac/Windows. This is for development purpose and will not work in a production environment outside of Docker Desktop for Windows / Mac. We recommend that you 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). it’s Docker specific so it doesn’t exist in CRI-O or ContainerD with Kubernetes.on Linux it’s useless for now but could be available starting from 20.03.it only works on Docker for Windows / Mac by default.Docker containers can access local services running on the host by connecting to.
0 Comments
Leave a Reply. |