When I fire Windows containers in my dev box I get an IP address (via docker inspect
) which can be use to connect to the container either from the host or from containers inside the compose (docker compose
).
Unfortunately, I cannot get the same for Linux (regular) containers. When I use a similar compose file with Linux images I connect to them (from the host) via the loopback address which is not what I want. Can I get the same behavior I get with Windows containers without explicitly setting the IP address myself, exactly how is done with Windows containers?