Execute a specific command inside a container

lxc

  • Manage Linux containers using the lxd REST API.
    Any container names or patterns can be prefixed with the name of a remote server.
    More information: <https://manned.org/lxc>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

lxc exec [{{remote}}:]{{container}} {{command}}

click the source code to copy install lxc on any operating system with command-not-found.com