[Lxc-users] Launch multiple apps in exactly on container

2010-09-16 Thread Jue Hong
As I understand, running one application with the command lxc-execute will create a container instance. E.g., by running lxc-execute -n foo /bin/bash, a container named foo will be created, and I can find a foo directory under the mounted cgroup directory, like /dev/cgroup/foo. While retype

Re: [Lxc-users] Launch multiple apps in exactly on container

2010-09-16 Thread Daniel Lezcano
On 09/16/2010 09:36 AM, Jue Hong wrote: As I understand, running one application with the command lxc-execute will create a container instance. E.g., by running lxc-execute -n foo /bin/bash, a container named foo will be created, and I can find a foo directory under the mounted cgroup

Re: [Lxc-users] Launch multiple apps in exactly on container

2010-09-16 Thread Daniel Lezcano
On 09/16/2010 10:56 AM, Jue Hong wrote: Sure Daniel, what you say actually works. But I still want to know, whether I can launch another app into a running container. Doing as you say: lxc-execute -n foo /bin/bash -- this bash runs inside container 'foo' lxc-execute -n bar /bin/bash

Re: [Lxc-users] Launch multiple apps in exactly on container

2010-09-16 Thread Jue Hong
Great news! I'll have a try. Thank you Daniel! On Thu, Sep 16, 2010 at 6:05 PM, Daniel Lezcano daniel.lezc...@free.fr wrote: On 09/16/2010 10:56 AM, Jue Hong wrote: Sure Daniel, what you say actually works. But I still want to know, whether I can launch another app into a running container.

Re: [Lxc-users] Launch multiple apps in exactly on container

2010-09-16 Thread Brian K. White
On 9/16/2010 3:36 AM, Jue Hong wrote: As I understand, running one application with the command lxc-execute will create a container instance. E.g., by running lxc-execute -n foo /bin/bash, a container named foo will be created, and I can find a foo directory under the mounted cgroup directory,

Re: [Lxc-users] Launch multiple apps in exactly on container

2010-09-16 Thread Jue Hong
BKW, you're right. Now we're going to use the method as you say. But, being able to start apps outside is really convenient in some cases :) On Fri, Sep 17, 2010 at 12:47 AM, Brian K. White br...@aljex.com wrote: On 9/16/2010 3:36 AM, Jue Hong wrote: As I understand, running one application