How to open a shell in an LXC container

You can run a shell in your LXC container using

lxc_exec_example.sh
lxc exec [name of container] /bin/bash

for example

example.sh
lxc exec mycontainer /bin/bash

Check out similar posts by category: LXC