<div dir="ltr"><div><div>ultimately I'd like to do this in python:<br><br>lxc-attach --clear-env -n lxcws -v TERM=xterm<br><br></div>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.<br><br>container.attach_wait(lxc.attach_run_command,<br>                      ["apt-get", "dist-upgrade", "-y"],<br>                      env_policy=lxc.LXC_ATTACH_CLEAR_ENV)<br><br><br clear="all"></div><div><div><div><div><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">benoit barthelet<br><a href="http://pgp.mit.edu/pks/lookup?op=get&search=0xF150E01A72F6D2EE" target="_blank">http://pgp.mit.edu/pks/lookup?op=get&search=0xF150E01A72F6D2EE</a><br></div></div></div></div>
</div></div></div></div></div>