cli v0.1.2 start core container with --add-host option

This commit is contained in:
mbecker20
2023-01-10 16:53:34 +00:00
parent aaea572c4f
commit 143d855ad7
3 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View File

@@ -1334,7 +1334,7 @@ dependencies = [
[[package]]
name = "monitor_cli"
version = "0.1.1"
version = "0.1.2"
dependencies = [
"async_timing_util",
"clap",

View File

@@ -1,6 +1,6 @@
[package]
name = "monitor_cli"
version = "0.1.1"
version = "0.1.2"
edition = "2021"
authors = ["MoghTech"]
description = "monitor cli | tools to setup monitor system"

View File

@@ -236,7 +236,7 @@ pub fn start_core(sub_matches: &ArgMatches) {
println!("pressed another button, exiting");
}
let command = format!("docker run -d --name {name} -p {port}:9000 --network {network} -v {config_path}:/config/config.toml --restart {restart} {CORE_IMAGE_NAME}");
let command = format!("docker run -d --name {name} -p {port}:9000 --network {network} -v {config_path}:/config/config.toml --restart {restart} --add-host host.docker.internal:host-gateway {CORE_IMAGE_NAME}");
let output = run_command_pipe_to_terminal(&command);