Files
cheatsheet-tldr/tldr/linux/lxc-attach
2026-01-24 00:21:55 +00:00

22 lines
439 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# lxc-attach
> Attach to a container.
> More information: <https://linuxcontainers.org/lxc/getting-started/>.
- Attach to a container:
`sudo lxc-attach {{container_name}}`
- Attach to a container without passing host environment variables to it:
`sudo lxc-attach {{container_name}} --clear-env`
- Display help:
`lxc-attach {{[-?|--help]}}`