1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 09:04:12 +02:00
This commit is contained in:
Robin Appelman 2021-03-13 22:22:22 +01:00
commit be5c84c5e3

View file

@ -1,4 +1,5 @@
use crate::database::Database; use crate::database::Database;
use crate::image::pull_image;
use bollard::container::{Config, CreateContainerOptions, NetworkingConfig}; use bollard::container::{Config, CreateContainerOptions, NetworkingConfig};
use bollard::models::{EndpointSettings, HostConfig}; use bollard::models::{EndpointSettings, HostConfig};
use bollard::Docker; use bollard::Docker;
@ -52,6 +53,7 @@ impl PhpVersion {
network: &str, network: &str,
volumes: Vec<String>, volumes: Vec<String>,
) -> Result<String> { ) -> Result<String> {
pull_image(docker, self.image()).await?;
let options = Some(CreateContainerOptions { let options = Some(CreateContainerOptions {
name: id.to_string(), name: id.to_string(),
}); });