1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 17:14:08 +02:00

image pull fixes

This commit is contained in:
Robin Appelman 2021-09-06 18:09:34 +02:00
commit 924e823b8c

View file

@ -10,9 +10,11 @@ use termion::cursor;
pub async fn pull_image(docker: &Docker, image: &str) -> Result<()> {
if let Err(_) = docker.inspect_image(image).await {
println!("Pulling image {}", image);
let mut info_stream = docker.create_image(
Some(CreateImageOptions {
from_image: image,
from_image: format!("{}:latest", image),
..Default::default()
}),
None,