[lxc-users] is there a lxc-attach -v switch equivalent in lxc python bindings ?

Benoit Barthelet benoit.barthelet at gmail.com
Tue Mar 14 10:22:26 UTC 2017


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-upgrade", "-y"],
                      env_policy=lxc.LXC_ATTACH_CLEAR_ENV)



-- 
benoit barthelet
http://pgp.mit.edu/pks/lookup?op=get&search=0xF150E01A72F6D2EE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20170314/affe7036/attachment.html>


More information about the lxc-users mailing list