[lxc-users] Cannot delete container

Divya Vyas edivya.vyas at gmail.com
Wed Jul 29 09:37:48 UTC 2015


Try this

find /cgroup/lxc/centos/6 -type d -delete

On Wed, Jul 29, 2015 at 2:46 PM, Valerio Mariani <valerio.mariani at gmx.de>
wrote:

>  The same!
>
> I also tried lxc-destroy -n 'centos/6'
>
> and
>
> lxc-destroy -n "centos/6"
>
>     Valerio
>
>
> On 29.07.2015 11:14, Florian Leparoux wrote:
>
> And lxc-destroy -n centos\/6  ?
>
>
> Le 29/07/2015 11:13, Valerio Mariani a écrit :
>
> Dear Divya,
>
>    thank you for the suggestion. If I try:
>
> lxc-destroy -n centos/6
>
> I get:
>
> Container is not defined
>
>   Valerio
>
> On 29.07.2015 10:59, Divya Vyas wrote:
>
> lxc-destroy should do that
>
> On Wed, Jul 29, 2015 at 2:24 PM, Valerio Mariani<valerio.mariani at gmx.de>
> <valerio.mariani at gmx.de>
> wrote:
>
> Dear All,
>
>     I am trying to delete all containers from my system. If I type lxc
> list, I see:
>
> vmariani at cfeld-valerio2:~/Downloads$ lxc list
> +----------+---------+------+------+-----------+-----------+
> |   NAME   |  STATE  | IPV4 | IPV6 | EPHEMERAL | SNAPSHOTS |
> +----------+---------+------+------+-----------+-----------+
> | centos/6 | STOPPED |      |      | NO        | 0         |
> +----------+---------+------+------+-----------+-----------+
>
> However, if I try to delete it with lxc delete centos/6, I get:
>
> error: not found
>
> This is lxc version 0.14
>
> I realize I can delete the container by deleting the rootfs, but I am
> afraid that will leave the config data in the database. Is there a way
> to delete this container?
>
> Thank you for your help
>
>     Valerio
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
>
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
>
>
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
>
>
>
>
> _______________________________________________
> lxc-users mailing listlxc-users at lists.linuxcontainers.orghttp://lists.linuxcontainers.org/listinfo/lxc-users
>
>
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150729/29828cff/attachment.html>


More information about the lxc-users mailing list