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

cleanup php container if it fails to start

This commit is contained in:
Robin Appelman 2022-08-24 17:17:56 +02:00
commit 36fcc3aa9e

View file

@ -126,10 +126,15 @@ impl PhpVersion {
.await
.into_diagnostic()?
.id;
docker
if let Err(e) = docker
.start_container::<String>(&id, None)
.await
.into_diagnostic()?;
.into_diagnostic()
{
docker.remove_container(&id, None).await.ok();
return Err(e);
}
docker
.connect_network(