lxc exec web01 -- systemctl status nginx

Category: Kubernetes & Containers

lxc exec web01 -- systemctl status nginx

Run a command inside an instance

Executes systemctl status nginx inside the web01 container, the way to manage services or inspect state from the host. The double dash separates lxc flags from the remote command. For an interactive shell use lxc exec web01 bash.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.