9.6 Starting a Command Inside a Running Container


The lxc-attach command is supported by UEK R3 with the lxc-0.9.0-2.0.4 package or later.

You can use lxc-attach to execute an arbitrary command inside a container that is already running from outside the container, for example:

[root@host ~]# lxc-attach -n ol6ctr1 -- ps aux

For more information, see the lxc-attach(1) manual page.