[Lxc-users] how to execute multiple programs which reside in different containers concurrently

Robin Monjo robin.monjo at applidget.com
Tue Jun 25 13:55:22 UTC 2013


Hello,

You can execute your program using chroot from the host :

sudo chroot <rootfs_of_the_container> /bin/bash -c 'the command that will launch your program'



On Jun 25, 2013, at 3:45 PM, "ZHANG, Benlong" <zhangbl at act.buaa.edu.cn> wrote:

> Hi all,
>     As the title shows, I have got 16 LXC containers prepared, and inside each container resides the same program 
> I wanna execute. But as the command lxc-execute can not run in background, I can not start the programs concurrently 
> with a SHELL script. So how can I get the 16 programs run concurrently?
> 
> Thanks.
> ----------------------------------------------------
> Benlong Zhang, Beihang University, Beijing China
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
> 
> Build for Windows Store.
> 
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Lxc-users mailing list
> Lxc-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-users





More information about the lxc-users mailing list