Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/runtime/docker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async fn run_command(command: &str, args: &[&str]) -> anyhow::Result<()> {
}

pub(crate) async fn pull_image(image: &str, platform: Option<String>) -> anyhow::Result<()> {
run_command(
let result = run_command(
"sh",
&[
"-c",
Expand All @@ -87,7 +87,13 @@ pub(crate) async fn pull_image(image: &str, platform: Option<String>) -> anyhow:
),
],
)
.await
.await;

if let Err(e) = result {
log::error!("Docker pull encountered an error: {}", e);
}

Ok(())
}

pub(crate) async fn build_image(name: &str, path: &str) -> anyhow::Result<()> {
Expand Down