This shows you the differences between two versions of the page.
Last revision Both sides next revision | |||
технология_lxd [2022/02/06 07:32] val created |
технология_lxd [2022/02/06 07:54] val |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Технология LXD ====== | ====== Технология LXD ====== | ||
+ | |||
+ | * [[https://www.tune-it.ru/web/sky/blog/-/blogs/4609698|Основы LXD - Блог]] | ||
+ | * [[https://habr.com/ru/post/496492/|Базовые возможности LXD — системы контейнеров в Linux]] | ||
+ | |||
+ | <code> | ||
+ | # apt install lxd | ||
+ | |||
+ | # lxd init | ||
+ | |||
+ | # lxc profile list | ||
+ | |||
+ | # lxc profile edit default | ||
+ | ... | ||
+ | devices: | ||
+ | eth0: | ||
+ | nictype: bridged | ||
+ | parent: br0 | ||
+ | type: nic | ||
+ | ... | ||
+ | |||
+ | # lxc storage list | ||
+ | |||
+ | # lxc image list images: | ||
+ | |||
+ | # lxc launch ubuntu:20.04 | ||
+ | или | ||
+ | # lxc launch ubuntu:20.04 www | ||
+ | |||
+ | # lxc list | ||
+ | |||
+ | # lxc exec www -- /bin/bash | ||
+ | |||
+ | # lxc delete www | ||
+ | |||
+ | # lxc stop www | ||
+ | |||
+ | # lxc delete www | ||
+ | |||
+ | </code> | ||
+ | |||