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
b26c5a164b
commit
18fbc152ab
2 changed files with 6 additions and 2 deletions
|
|
@ -176,7 +176,7 @@ impl Database {
|
||||||
if matches!(self, Database::Sqlite) {
|
if matches!(self, Database::Sqlite) {
|
||||||
return Ok(None);
|
return Ok(None);
|
||||||
}
|
}
|
||||||
pull_image(docker, self.image())
|
pull_image(docker, &format!("library/{}", self.image()))
|
||||||
.await
|
.await
|
||||||
.wrap_err("Failed to pull database image")?;
|
.wrap_err("Failed to pull database image")?;
|
||||||
let options = Some(CreateContainerOptions {
|
let options = Some(CreateContainerOptions {
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,11 @@ pub async fn pull_image(docker: &Docker, image: &str) -> Result<()> {
|
||||||
|
|
||||||
let mut info_stream = docker.create_image(
|
let mut info_stream = docker.create_image(
|
||||||
Some(CreateImageOptions {
|
Some(CreateImageOptions {
|
||||||
from_image: format!("{}:latest", image),
|
from_image: if image.contains(":") {
|
||||||
|
image.to_string()
|
||||||
|
} else {
|
||||||
|
format!("{}:latest", image)
|
||||||
|
},
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}),
|
}),
|
||||||
None,
|
None,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue