meta data for this page
  •  

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:lxc [2016/05/04 10:43] niziaklinux:lxc [2020/09/07 19:01] (current) niziak
Line 211: Line 211:
 lxc.start.delay = 5 lxc.start.delay = 5
 lxc.start.order = 100 lxc.start.order = 100
 +lxc.group = onboot
 </file> </file>
 <code> <code>
Line 220: Line 221:
 Edit cron Edit cron
 <code bash>crontab -e</code> <code bash>crontab -e</code>
-<code>@reboot lxc-autostart</code>+<code>@reboot /usr/bin/lxc-autostart --all</code>
  
  
Line 250: Line 251:
 Limiting runtime: Limiting runtime:
 <code bash>lxc-cgroup -n test-container cpu.shares 100</code> <code bash>lxc-cgroup -n test-container cpu.shares 100</code>
 +
 +<file | ~/.local/share/lxc/gitlab/config>
 +</file>
 +==== ulimit change for unpriv container ====
 +Inside container, this command fails:
 +<code bash>ulimit -n 65536</code>
 +
 +
 +
 +
  
 ===== Debug ===== ===== Debug =====
Line 281: Line 292:
  
 ===== Errors ===== ===== Errors =====
 +
 +==== Failed to load config for gitlab ====
 +
 +Error after system upgrade. LXC has been updated from 2.0.1 to v 3.0.1
 +
 +<code bash>
 +$ lxc-info gitlab
 +Failed to load config for gitlab
 +Failure to retrieve information on /home/lxcgitlab/.local/share/lxc:gitlab
 +</code>
 +
 +SOLUTION:
 +<code bash>
 +cd /home/lxcgitlab/.local/share/lxc/gitlab
 +lxc-update-config -c config
 +</code>
 +
 ==== Failed to mount cgroup ==== ==== Failed to mount cgroup ====
 <code> <code>