mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
22 lines
439 B
Plaintext
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]}}`
|