mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
delete container before action (#931)
This commit is contained in:
@@ -65,6 +65,10 @@ impl DockerAction {
|
||||
.arg("--name")
|
||||
.arg(&container_name)
|
||||
.arg("--no-healthcheck");
|
||||
match ctx.docker.remove_container(&container_name, None).await {
|
||||
Ok(()) | Err(bollard::errors::Error::DockerResponseNotFoundError { .. }) => Ok(()),
|
||||
Err(e) => Err(e),
|
||||
}?;
|
||||
}
|
||||
cmd.args(
|
||||
self.docker_args(ctx, pkg_id, pkg_version, volumes, allow_inject)
|
||||
|
||||
Reference in New Issue
Block a user