You need to use the lxc-console command to log in to a running Linux container. The syntax is as follows:
lxc-console -n container-name
lxc-console -n webserver
lxc-console -n pgsql
lxc-console -n webserver
lxc-console -n pgsql
To exit an lxc-console from a shell prompt:
- Open a shell prompt.
- Login to a host server called server1.
- Use the lxc-console command to log in to a running container called 'memcache' type: lxc-console -n memcache
- To exit an lxc-console session, type Ctrl-A followed by Q.
Here is a sample session:
0 comments:
Post a Comment