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:
parent
5278f0d295
commit
36fcc3aa9e
1 changed files with 7 additions and 2 deletions
|
|
@ -126,10 +126,15 @@ impl PhpVersion {
|
||||||
.await
|
.await
|
||||||
.into_diagnostic()?
|
.into_diagnostic()?
|
||||||
.id;
|
.id;
|
||||||
docker
|
|
||||||
|
if let Err(e) = docker
|
||||||
.start_container::<String>(&id, None)
|
.start_container::<String>(&id, None)
|
||||||
.await
|
.await
|
||||||
.into_diagnostic()?;
|
.into_diagnostic()
|
||||||
|
{
|
||||||
|
docker.remove_container(&id, None).await.ok();
|
||||||
|
return Err(e);
|
||||||
|
}
|
||||||
|
|
||||||
docker
|
docker
|
||||||
.connect_network(
|
.connect_network(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue