Skip to content

Commit

Permalink
Prevent unintended stdout print (#2943)
Browse files Browse the repository at this point in the history
* Ops

* null it is
  • Loading branch information
DmitryDodzin authored Dec 2, 2024
1 parent e24147c commit 3f0df1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/+no-stdout-sidecar-start.internal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use `Stdio::piped()` for "sidecar start" patch added in [#2933](https://github.com/metalbear-co/mirrord/pull/2933).
6 changes: 5 additions & 1 deletion mirrord/cli/src/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,11 @@ async fn create_sidecar_intproxy(
{
let mut container_start_command = Command::new(&runtime_binary);

container_start_command.args(["start", &sidecar_container_id]);
container_start_command
.args(["start", &sidecar_container_id])
.stdin(Stdio::null())
.stdout(Stdio::null())
.stderr(Stdio::null());

let _ = container_start_command.status().await.map_err(|err| {
ContainerError::UnsuccesfulCommandOutput(
Expand Down

0 comments on commit 3f0df1b

Please sign in to comment.