[lxc-users] `lxc_attach_run_command` vs normal fork/exec

Dan Kegel dank at kegel.com
Fri Mar 14 18:45:27 UTC 2014


On Fri, Mar 14, 2014 at 11:39 AM, Ranjib Dey <dey.ranjib at gmail.com> wrote:
> I am trying to understand what is the benefit of lxc_attach_run_command over
> normal fork exec.

Isolation.  It's kind of a basic property of containers.  If you don't want
isolation, why are you using lxc?

lxc_attach_run_command brings nothing over from
the host system.  If you want a ruby environment inside the
container, you need to set it up there before (or during) doing
lxc_attach_run_command.
- Dan


More information about the lxc-users mailing list