mirror of
https://codeberg.org/icewind/haze.git
synced 2026-10-01 08:44:09 +02:00
image pull fixes
This commit is contained in:
parent
b26c5a164b
commit
18fbc152ab
2 changed files with 6 additions and 2 deletions
|
|
@ -18,7 +18,11 @@ pub async fn pull_image(docker: &Docker, image: &str) -> Result<()> {
|
|||
|
||||
let mut info_stream = docker.create_image(
|
||||
Some(CreateImageOptions {
|
||||
from_image: format!("{}:latest", image),
|
||||
from_image: if image.contains(":") {
|
||||
image.to_string()
|
||||
} else {
|
||||
format!("{}:latest", image)
|
||||
},
|
||||
..Default::default()
|
||||
}),
|
||||
None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue