apologies, this was well described here :
https://lists.linuxcontainers.org/pipermail/lxc-devel/2013-August/004898.html
On Wed, Mar 15, 2017 at 9:15 AM, Benoit Barthelet <
benoit.barthe...@gmail.com> wrote:
> it seems like there's a built-in kwarg, extra_env_vars, that does the -v
> switch job of
it seems like there's a built-in kwarg, extra_env_vars, that does the -v
switch job of lxc-attach in fact, I wrapped it in a function here but it
could be written without :
def run_command(container, command, env={}):
env['LANG'] = "C.UTF-8"
env['TERM'] = "xterm"
return container.attac
thanks, that is exactly what I wanted !
On Tue, Mar 14, 2017 at 1:37 PM, Stéphane Graber
wrote:
> On Tue, Mar 14, 2017 at 11:22:26AM +0100, Benoit Barthelet wrote:
> > ultimately I'd like to do this in python:
> >
> > lxc-attach --clear-env -n lxcws -v TERM=xterm
> >
> > So far I managed to clea
On Tue, Mar 14, 2017 at 11:22:26AM +0100, Benoit Barthelet wrote:
> ultimately I'd like to do this in python:
>
> lxc-attach --clear-env -n lxcws -v TERM=xterm
>
> So far I managed to clear the env variables doing the following, but I
> didn't find a way to pass the TERM env variable.
>
> contai
ultimately I'd like to do this in python:
lxc-attach --clear-env -n lxcws -v TERM=xterm
So far I managed to clear the env variables doing the following, but I
didn't find a way to pass the TERM env variable.
container.attach_wait(lxc.attach_run_command,
["apt-get", "dist-up