mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-03 22:15:42 +02:00
lxc-console: add page (#15922)
This commit is contained in:
parent
0897084ebb
commit
ed7e2c0446
1 changed files with 16 additions and 0 deletions
16
pages/linux/lxc-console.md
Normal file
16
pages/linux/lxc-console.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# lxc-console
|
||||
|
||||
> Attach to a container.
|
||||
> More information: <https://linuxcontainers.org/lxc/manpages//man1/lxc-console.1.html>.
|
||||
|
||||
- Start a console in a container:
|
||||
|
||||
`agetty {{[-L|--local-line]}} {{38400}} tty1`
|
||||
|
||||
- Connect to an lxc console:
|
||||
|
||||
`sudo lxc-console {{container_name}}`
|
||||
|
||||
- Exit `lxc-console`:
|
||||
|
||||
`<Ctrl a><q>`
|
Loading…
Add table
Reference in a new issue