lxc-create is used to create lxc container. To create a container, run
|
lxc-create -t download -n CONTAINER_NAME_HERE |
This will list all available containers. You can select the OS you want to use. To specify OS, you can use following examples
|
lxc-create -n boby1 -t debian -- -r stretch lxc-create -n boby2 -t debian -- -r buster |
To connect to a container, use command
Example
|
root@b24:~# lxc-attach boby2 root@boby2:~# cat /etc/*issue Debian GNU/Linux 10 \n \l root@boby2:~# |
To delete a container, run
See lxc […]
Read More…