[Lxc-users] shutting down CentOS6 container

Iliyan ilf Stoyanov ilf at ilf.me
Mon Oct 17 19:36:24 UTC 2011


Hi Milos,

have you tried doing lxc-console --name $NAME_OF_YOUR_CENTOS6_CONTAINER,
then loging in and issuing shutdown -h now. It works for me on Fedora
15/SL6.1.

BR,
--ilf 

On Mon, 2011-10-17 at 20:23 +0100, Milos Negovanovic wrote:
> Hi all,
> 
> Ive managed to setup centos6 running inside the container but one thing
> I cant figure out is how to shutdown container from the host. With
> debian I would just chroot into container rooot fs and issue shutdown
> command and that works perfectly. With centos that shuts down or
> restarts the host OS (which is centos6 as well). Ive seen this question
> was asked before, in slightly different form, was just wondering if
> there were any new developments in this area and what are people using
> to shutdown their containers from the host, especially centos6 containers.
> 
> Regards






More information about the lxc-users mailing list