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:
parent
1e5d04804e
commit
924e823b8c
1 changed files with 3 additions and 1 deletions
|
|
@ -10,9 +10,11 @@ use termion::cursor;
|
||||||
|
|
||||||
pub async fn pull_image(docker: &Docker, image: &str) -> Result<()> {
|
pub async fn pull_image(docker: &Docker, image: &str) -> Result<()> {
|
||||||
if let Err(_) = docker.inspect_image(image).await {
|
if let Err(_) = docker.inspect_image(image).await {
|
||||||
|
println!("Pulling image {}", image);
|
||||||
|
|
||||||
let mut info_stream = docker.create_image(
|
let mut info_stream = docker.create_image(
|
||||||
Some(CreateImageOptions {
|
Some(CreateImageOptions {
|
||||||
from_image: image,
|
from_image: format!("{}:latest", image),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}),
|
}),
|
||||||
None,
|
None,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue