[Lxc-users] how to execute shell command in container ?

Andrian Nord nightnord at gmail.com
Fri Mar 18 18:52:02 UTC 2011


On Fri, Mar 18, 2011 at 12:26:32PM +0300, Vladimir Laskov wrote:
> # lxc-execute --name vm1  /bin/bash
> lxc-execute: failed to create veth1-vethAmmjfi : File exists
> lxc-execute: failed to create netdev
> lxc-execute: failed to create the network
> lxc-execute: failed to spawn 'vm1'
> lxc-execute: Device or resource busy - failed to remove cgroup '/cgroup/vm1'

lxc-execute is some kind of wrapper around lxc-start that allows you to
start single program in separate namespace, without starting full
distribution. See manpage for more information.

AFAIK, there is no way to interact with container except ssh or
lxc-console, yet. You may use ssh with not encrypted key for scripting
purposes.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20110318/2b8841f7/attachment.pgp>


More information about the lxc-users mailing list