diff --git a/cmd/soroban-cli/src/commands/network/start.rs b/cmd/soroban-cli/src/commands/network/start.rs index 31bc77d1db..02482a5444 100644 --- a/cmd/soroban-cli/src/commands/network/start.rs +++ b/cmd/soroban-cli/src/commands/network/start.rs @@ -23,8 +23,8 @@ pub struct Cmd { /// Network to start pub network: Network, - #[arg(short = 'd', long, help = DOCKER_SOCKET_PATH_HELP)] - pub docker_socket_path: Option, + #[arg(short = 'd', long, help = DOCKER_SOCKET_PATH_HELP, env = "DOCKER_HOST")] + pub docker_host: Option, /// Optional argument to specify the limits for the local network only #[arg(short = 'l', long)] diff --git a/cmd/soroban-cli/src/commands/network/stop.rs b/cmd/soroban-cli/src/commands/network/stop.rs index 2897efc2aa..476942b520 100644 --- a/cmd/soroban-cli/src/commands/network/stop.rs +++ b/cmd/soroban-cli/src/commands/network/stop.rs @@ -11,7 +11,7 @@ pub struct Cmd { /// Network to stop pub network: Network, - #[arg(short = 'd', long, help = DOCKER_SOCKET_PATH_HELP)] + #[arg(short = 'd', long, help = DOCKER_SOCKET_PATH_HELP, env = "DOCKER_HOST")]] pub docker_socket_path: Option, }