Difference between revisions of "LXC Ubuntu containers"
From MyWiki
| Line 6: | Line 6: | ||
In Centos, to enable an x display to tunnel via ssh the xauth program needs bo be installed<br> | In Centos, to enable an x display to tunnel via ssh the xauth program needs bo be installed<br> | ||
| − | '''lxc-attach''' --name <name> | + | '''lxc-attach''' --name <name> <br> |
| + | |||
| + | |||
| + | |||
| + | sudo lxc-ls --fancy <br> | ||
| + | sudo lxc-start --name u1 --daemon <br> | ||
| + | sudo lxc-info --name u1 <br> | ||
| + | sudo lxc-stop --name u1 <br> | ||
| + | sudo lxc-destroy --name u1 <br> | ||
Revision as of 11:21, 20 August 2015
lxc-ls - list the containers existing on the system
lxc-destroy --name u1
lxc-create -t download -n u1 to select a distribution from a list
lxc-create -t download -n centos-6 ( This gives a nore meaningful name ! )
Files are located under /var/lib/lxc
In Centos, to enable an x display to tunnel via ssh the xauth program needs bo be installed
lxc-attach --name <name>
sudo lxc-ls --fancy
sudo lxc-start --name u1 --daemon
sudo lxc-info --name u1
sudo lxc-stop --name u1
sudo lxc-destroy --name u1