Chinaunix首页 | 论坛 | 博客
  • 博客访问: 803729
  • 博文数量: 120
  • 博客积分: 7531
  • 博客等级: 少将
  • 技术积分: 1253
  • 用 户 组: 普通用户
  • 注册时间: 2005-10-11 12:18
文章分类

全部博文(120)

文章存档

2013年(1)

2012年(7)

2011年(1)

2010年(7)

2009年(15)

2008年(13)

2007年(22)

2006年(45)

2005年(9)

分类: LINUX

2012-11-29 17:21:31

LXC(linux container) commands

Command

Synopsis

lxc-attach

(NOT SUPPORTED) Run a command in a running container

lxc-backup

Back up the root filesystems for all lvm-backed containers

lxc-cgroup

View and set container control group settings

lxc-checkconfig

Verify host support for containers

lxc-checkpoint

(NOT SUPPORTED) Checkpoint a running container

lxc-clone

Clone a new container from an existing one

lxc-console

Open a console in a running container

lxc-create

Create a new container

lxc-destroy

Destroy an existing container

lxc-execute

Run a command in a (not running) application container

lxc-freeze

Freeze a running container

lxc-info

Print information on the state of a container

lxc-kill

Send a signal to a container's init

lxc-list

List all containers

lxc-ls

List all containers with shorter output than lxc-list

lxc-monitor

Monitor state changes of one or more containers

lxc-netstat

Execute netstat in a running container

lxc-ps

View process info in a running container

lxc-restart

(NOT SUPPORTED) Restart a checkpointed container

lxc-restore

Restore containers from backups made by lxc-backup

lxc-setcap

(NOT RECOMMENDED) Set file capabilities on LXC tools

lxc-setuid

(NOT RECOMMENDED) Set or remove setuid bits on LXC tools

lxc-shutdown

Safely shut down a container

lxc-start

Start a stopped container

lxc-start-ephemeral

Start an ephemeral (one-time) container

lxc-stop

Immediately stop a running container

lxc-unfreeze

Unfreeze a frozen container

lxc-unshare

Testing tool to manually unshare namespaces

lxc-version

Print the version of the LXC tools

lxc-wait

Wait for a container to reach a particular state

阅读(4692) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~