lxc-attach(1) lxc-attach(1) (NAME) lxc-attach - (SYNOPSIS) lxc-attach {-n, --name name} [-f, --rcfile config_file] [-a, --arch arch] [-e, --elevated-privileges privileges] [-s, --namespaces namespaces] [-R, --remount-sys-proc] [--keep-env] [--clear-env] [-v, --set-var variable] [--keep-var variable] [-u, --uid uid] [-g, --gid gid] [-- command] (DESCRIPTION) lxc-attach (command) name . . command lxc-attach . nsswitch . lxc-attach (namespaces) (pseudo- terminal) . ioctl TIOCSTI . lxc-attach . lxc-attach . (OPTIONS) -f, --rcfile config_file . ( lxc-create) . -a, --arch arch . lxc.arch lxc.conf(5) . . -e, --elevated-privileges privileges command . cgroup() (not) . (pipe) CGROUP|LSM . CGROUP CAP LSM cgroup . ( CGROUP\|LSM "CGROUP|LSM".) : . ( ) cron sshd. . -s, --namespaces namespaces NETWORK|IPC. MOUNT PID UTSNAME IPC USER NETWORK. . ( MOUNT\|PID "MOUNT|PID".) : -e . -R, --remount-sys-proc -s mount lxc-attach /proc /sys (remount) . . mount . --keep-env . ( 0.9) . . container=lxc . --clear-env . container=lxc . -v, --set-var variable . "VAR=VALUE" . --keep-var variable . --clear-env . -u, --uid uid command ( ) uid . --g, --gid gid command ( ) gid . (COMMON OPTIONS) lxc . -?, -h, --help . --usage . -q, --quiet . -P, --lxcpath=PATH . /var/lib/lxc . -o, --logfile=FILE FILE. . -l, --logpriority=LEVEL LEVEL. ERROR . : FATAL ALERT CRIT WARN ERROR NOTICE INFO DEBUG TRACE. ERROR (stderr) . -n, --name=NAME NAME. - . --rcfile=FILE . ( lxc-create) . --version . (EXAMPLES) : lxc-attach -n container cron : lxc-attach -n container -- /etc/init.d/cron restart eth1 NET_ADMIN ip -e : lxc-attach -n container -e -- /sbin/ip link delete eth1 -s : lxc-attach -n container -s NETWORK -- /sbin/ip link delete eth1 (COMPATIBILITY) ( pid mount) 3.8 () lxc . 3.7 lxc-attach . -s NETWORK IPC UTSNAME 3.0 . 3.8 . (NOTES) /proc /sys /proc /sys/class/net. (mount) not /proc /sys . -s pid mount ( /proc ) /proc . /sys/class/net . -R /proc /sys (remount) /pid . mount ( lxc-unshare ) mount /proc /sys mount . lxc-attach cgroup . lxc-attach cgroup . lxc-attach ( cgroup ). . (SECURITY) -e -s . (SEE ALSO) lxc(7), lxc-create(1), lxc-copy(1), lxc-destroy(1), lxc-start(1), lxc- stop(1), lxc-execute(1), lxc-console(1), lxc-monitor(1), lxc-wait(1), lxc-cgroup(1), lxc-ls(1), lxc-info(1), lxc-freeze(1), lxc-unfreeze(1), lxc-attach(1), lxc.conf(5) 2026-08-01 lxc-attach(1)