From 5728a9cdd2a4b2a109951cf0e80be05ec963515b Mon Sep 17 00:00:00 2001 From: apoorvsadana <95699312+apoorvsadana@users.noreply.github.com> Date: Sat, 27 Jan 2024 13:19:02 +0530 Subject: [PATCH] fix broken host in ubuntu --- src/cli/explorer.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cli/explorer.rs b/src/cli/explorer.rs index c0bdd99..1918314 100644 --- a/src/cli/explorer.rs +++ b/src/cli/explorer.rs @@ -35,7 +35,11 @@ pub async fn explorer(opts: &ExplorerOpts) { Some(vec![PortBinding { host_ip: Some("0.0.0.0".to_string()), host_port: Some("4000".to_string()) }]), ); - let host_config = HostConfig { port_bindings: Some(port_bindings), ..Default::default() }; + let host_config = HostConfig { + port_bindings: Some(port_bindings), + extra_hosts: Some(vec!["host.docker.internal:host-gateway".to_string()]), + ..Default::default() + }; const CONTAINER_NAME: &str = "madara-explorer";