2025-03-19 19:23:44 -06:00
|
|
|
# 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>`
|
2025-04-03 20:36:56 -06:00
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
|
|
`lxc-console {{[-?|--help]}}`
|