$ lxc list
+-------+---------+-----------------------+------+------------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+-------+---------+-----------------------+------+------------+-----------+
| first | RUNNING | 10.113.180.174 (eth0) | | PERSISTENT | 0 |
+-------+---------+-----------------------+------+------------+-----------+
$ lxc exec first -- ps -auxww
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 37400 5472 ? Ss 12:02 0:00 /sbin/init
root 57 0.0 0.0 35276 5660 ? Ss 12:02 0:00 /lib/systemd/systemd-journald
root 58 0.0 0.0 41720 3236 ? Ss 12:02 0:00 /lib/systemd/systemd-udevd
root 232 0.0 0.0 16116 2972 ? Ss 12:03 0:00 /sbin/dhclient -1 -v -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases -I -df /var/lib/dhcp/dhclient6.eth0.leases eth0
root 321 0.0 0.0 65520 5352 ? Ss 12:03 0:00 /usr/sbin/sshd -D
message+ 324 0.0 0.0 42900 3792 ? Ss 12:03 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
syslog 330 0.0 0.0 186900 3088 ? Ssl 12:03 0:00 /usr/sbin/rsyslogd -n
daemon 332 0.0 0.0 26044 2220 ? Ss 12:03 0:00 /usr/sbin/atd -f
root 333 0.0 0.0 272944 5832 ? Ssl 12:03 0:00 /usr/lib/accountsservice/accounts-daemon
root 334 0.0 0.0 26068 2632 ? Ss 12:03 0:00 /usr/sbin/cron -f
root 335 0.0 0.0 20100 1152 ? Ss 12:03 0:00 /lib/systemd/systemd-logind
root 336 0.0 0.1 285612 23064 ? Ssl 12:03 0:00 /usr/lib/snapd/snapd
root 349 0.0 0.0 277180 8192 ? Ssl 12:03 0:00 /usr/lib/policykit-1/polkitd --no-debug
root 373 0.0 0.0 12844 1780 console Ss+ 12:03 0:00 /sbin/agetty --noclear --keep-baud console 115200 38400 9600 linux
root 505 0.0 0.0 37760 3328 ? Rs+ 13:26 0:00 ps -auxww