[Lxc-users] Executing a command inside a running container?
Daniel Lezcano
daniel.lezcano at free.fr
Sun Jan 31 22:00:51 UTC 2010
Michael H. Warfield wrote:
> On Sat, 2010-01-30 at 14:20 +0100, Dominik Schulz wrote:
>
>> Hi,
>>
>> I'm fairly new to LXC and I am looking for a way to execute a command inside a
>> running container (a full blow one with its own rootfs and full isolation).
>> lxc-execute doesn't seem to do the trick and lxc-console requires credential
>> to login. I'm looking for a way to execute command w/o having to login via ssh
>> or the lxc-console, so I can execute command directly inside the containers to
>> shut them down properly.
>>
>
> This is being worked on and looked at now through the use of some sort
> of daemon in the running container but is not currently possible. More
> over, cgroups in the kernel does not currently support joining an active
> cgroup, and may never support it, so it would have to be done through
> the mediation of some sort of daemon in the running container and
> communicating with the host. There's been discussion on the -devel list
> over the optimal way to do it and there are some patches running around
> but AFAICT nothing has really been committed or committed to at this
> time.
>
Yes, this is on the way, but the container console has to be solved
first to address the console output in a global manner and then the
daemon will follow.
More information about the lxc-users
mailing list