<div dir="ltr"><div><div>Hi,<br></div>I want to start a program inside a container under a particular uid and after setting particular ENV variable, but I dont have the luxury of busybox & shell start script and I also dont want to exec that program under a C wrapper program. How do I achieve that ?<br>
<br></div><div>simply put, without a hack in start.c is there a way to print a different uid for 1) and MYENV in 2 ?<br></div><div><br>1) <br># ./lxc-start -n r id<br>uid=0(root) gid=0(root) groups=0(root)<br><br>2)<br></div>
--- with hack in start.c & <br><div># ./lxc-start -n r env<br>container=lxc<br>MYENV=TESTVAL<br><br><br></div><div>Thanks,<br></div><div>Vijay<br></div></div>