HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

lxc-console — Attach to a container. More information: <https://linuxcontainers.org/lxc/manpages//man1/lxc-console

Submitted by: @import:tldr-pages··
0
Viewed 0 times
httpscommandcliattachmorecontainerinformationlxc-console
linux

Problem

How to use the lxc-console command: Attach to a container. More information: <https://linuxcontainers.org/lxc/manpages//man1/lxc-console.1.html>.

Solution

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>


Display help:
lxc-console {{[-?|--help]}}

Code Snippets

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>

Display help

lxc-console {{[-?|--help]}}

Context

tldr-pages: linux/lxc-console

Revisions (0)

No revisions yet.