diff --git a/src/Microsoft.Tye.Hosting/DockerRunner.cs b/src/Microsoft.Tye.Hosting/DockerRunner.cs index 0c5969c65..16e0516ea 100644 --- a/src/Microsoft.Tye.Hosting/DockerRunner.cs +++ b/src/Microsoft.Tye.Hosting/DockerRunner.cs @@ -202,9 +202,10 @@ private void StartContainerAsync(Application application, Service service, Docke var hostname = application.ContainerEngine.ContainerHost; if (hostname == null) { - _logger.LogError("Configuration doesn't allow containers to access services on the host."); + _logger.LogWarning("Configuration doesn't allow containers to access services on the host."); - throw new CommandException("Configuration doesn't allow containers to access services on the host."); + // Set a value even though it won't be usable. + hostname = "host.docker.internal"; } var dockerImage = docker.Image ?? service.Description.Name;