lxc:install_lxc
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
lxc:install_lxc [2021/01/03 17:40] – peter | lxc:install_lxc [2021/01/07 20:13] (current) – peter | ||
---|---|---|---|
Line 8: | Line 8: | ||
<code bash> | <code bash> | ||
- | sudo apt install lxc | + | sudo apt install lxc |
</ | </ | ||
Line 20: | Line 20: | ||
<code bash> | <code bash> | ||
- | sudo apt install lxc-utils | + | sudo apt install lxc-utils |
</ | </ | ||
Line 235: | Line 235: | ||
</ | </ | ||
+ | ---- | ||
+ | ==== Check the container status again ==== | ||
+ | |||
+ | <code bash> | ||
+ | lxc-info -n test | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | Name: test | ||
+ | State: | ||
+ | PID: 793414 | ||
+ | IP: | ||
+ | Link: | ||
+ | TX bytes: | ||
+ | RX bytes: | ||
+ | Total bytes: | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Get a Shell inside the Container ==== | ||
+ | |||
+ | <code bash> | ||
+ | lxc-attach -n test | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Stop the Test Container ==== | ||
+ | |||
+ | <code bash> | ||
+ | lxc-stop -n test | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Remove the Test Container ==== | ||
+ | |||
+ | <code bash> | ||
+ | lxc-destroy -n test | ||
+ | </ | ||
+ | |||
+ | ---- | ||
===== References ===== | ===== References ===== |
lxc/install_lxc.1609695600.txt.gz · Last modified: 2021/01/03 17:40 by peter