mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-07 19:10:12 +08:00
fix: not to use 'force' in container deletion
This commit is contained in:
1 parent
27f8525585
commit
3f50b99d1a
1 file changed
+2
-4
@@ -73,10 +73,8 @@ export async function deleteContainer(id) {
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
await container.stop()
|
await container.stop()
|
||||||
await container.remove({
|
await container.remove()
|
||||||
force: true,
|
|
||||||
})
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error)
|
console.error(error)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user