User Tools

Site Tools


software:lxc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
software:lxc [2021/04/16 05:43] – created - external edit 127.0.0.1software:lxc [2025/10/23 15:53] (current) – [LXC containers on host kb0odu] timb
Line 17: Line 17:
 If a user was created on an earlier release, it can be granted a range of ids using usermod, as follows: If a user was created on an earlier release, it can be granted a range of ids using usermod, as follows:
  
-<code>+<code bash>
 sudo usermod -v 100000-200000 -w 100000-200000 user1 sudo usermod -v 100000-200000 -w 100000-200000 user1
 </code> </code>
Line 47: Line 47:
  
 Reference: https://help.ubuntu.com/lts/serverguide/lxc.html Reference: https://help.ubuntu.com/lts/serverguide/lxc.html
 +
 +==== LXC containers on host kb0odu ====
 +
 +I have some containers running under the root account on kb0odu and some running under my account.
 +
 +=== List Running Containers ===
 +
 +**Only running containers**
 +
 +<code bash>
 +timothy@kb0odu:~$ sudo  lxc-ls --running -1 -f
 +NAME       STATE    IPV4         IPV6  AUTOSTART
 +------------------------------------------------
 +blog       RUNNING  10.50.1.70       NO
 +mysql      RUNNING  10.50.1.138  -     NO
 +mywiki     RUNNING  10.0.3.86    -     NO
 +wordpress  RUNNING  10.50.1.117  -     NO
 +timothy@kb0odu:~$ 
 +</code>
 +
 +**All containers**
 +
 +<code bash>
 +timothy@kb0odu:~$ sudo lxc-ls -1 -f
 +NAME       STATE    IPV4         IPV6  AUTOSTART  
 +------------------------------------------------
 +blog       RUNNING  10.50.1.70       NO         
 +mongo      STOPPED  -            -     NO         
 +mysql      RUNNING  10.50.1.138  -     NO         
 +mywiki     RUNNING  10.0.3.86    -     NO         
 +postgres   STOPPED  -            -     NO         
 +wordpress  RUNNING  10.50.1.117  -     NO         
 +
 +timothy@kb0odu:~$ lxc-ls -1 -f
 +NAME    STATE    IPV4        IPV6  AUTOSTART  
 +--------------------------------------------
 +puppet  RUNNING  10.0.3.9    -     NO         
 +tj      RUNNING  10.0.3.168  -     NO         
 +</code>
 +
 +
 +
  
 ===== System Space ===== ===== System Space =====
software/lxc.1618551822.txt.gz · Last modified: by 127.0.0.1