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

lxc-attach — Attach to a container. More information: <https://linuxcontainers.org/lxc/getting-started/>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
httpscommandlxc-attachcliattachmoreinformationcontainer
linux

Problem

How to use the lxc-attach command: Attach to a container. More information: <https://linuxcontainers.org/lxc/getting-started/>.

Solution

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]}}

Code Snippets

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]}}

Context

tldr-pages: linux/lxc-attach

Revisions (0)

No revisions yet.