[lxc-devel] [patch 3/3][RFC] implement lxc-cmd and lxc-enter using lxc_cinit daemon

Dietmar Maurer dietmar at proxmox.com
Fri Jan 15 08:27:59 UTC 2010


> > lxc-enter: execute bash inside CT and proxy tty stream
> >
> > lxc-cmd: execute arbitrary commands inside CT
> >
> > Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
> >
> 
> I was wondering if a single command wouldn't be enough.
> 
> For example:
>     lxc-sh -n <name> [command]
> 
> Without "command", we run a shell in the container, otherwise we run
> the
> command inside the container, no ?

I am not 100% sure. I thought that it is maybe necessary to allocate/init
a pty and set some environment variable (TERM, HOME) for lxc-enter.
Whereas lxc-cmd simply pipes stdin/stdout.

- Dietmar





More information about the lxc-devel mailing list