mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20: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 {
|
||||
await container.stop()
|
||||
await container.remove({
|
||||
force: true,
|
||||
})
|
||||
await container.remove()
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user