2016-03-03 08:18:17 +08:00
|
|
|
# NAME
|
2017-03-08 10:02:39 +08:00
|
|
|
runc delete - delete any resources held by the container often used with detached container
|
2016-03-03 08:18:17 +08:00
|
|
|
|
|
|
|
# SYNOPSIS
|
2017-03-08 10:02:39 +08:00
|
|
|
runc delete [command options] <container-id>
|
2016-03-03 08:18:17 +08:00
|
|
|
|
|
|
|
Where "<container-id>" is the name for the instance of the container.
|
|
|
|
|
2016-10-18 09:45:27 +08:00
|
|
|
# OPTIONS
|
|
|
|
--force, -f Forcibly deletes the container if it is still running (uses SIGKILL)
|
|
|
|
|
2016-03-03 08:18:17 +08:00
|
|
|
# EXAMPLE
|
|
|
|
For example, if the container id is "ubuntu01" and runc list currently shows the
|
2016-10-29 23:15:11 +08:00
|
|
|
status of "ubuntu01" as "stopped" the following will delete resources held for
|
2016-03-03 08:18:17 +08:00
|
|
|
"ubuntu01" removing "ubuntu01" from the runc list of containers:
|
|
|
|
|
|
|
|
# runc delete ubuntu01
|