[Lxc-users] what's the difference in lxc-attach

Cedric Le Goater legoater at free.fr
Thu Apr 7 07:09:48 UTC 2011


On 04/07/2011 07:46 AM, Ramez Hanna wrote:
> from a post that i found earlier in the archive
> subject "entering a container" by Daniel Lezcano
> 
> i cannot see the differece between lxc-attach and lxc-execute
> could someone explain?

lxc-execute creates a container and exec's a command/application 
inside it (see manual). 

lxc-attach enters a *running* container and exec's a command inside 
it (manual soon to come). This ability of creating an exogenous 
process inside a container requires a kernel patchset.

C.




More information about the lxc-users mailing list