This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
docs:lxc [2013-12-09 15:37] glen [full config] consistent |
docs:lxc [2013-12-10 08:47] glen [Vserver comparision] |
||
---|---|---|---|
Line 103: | Line 103: | ||
**Commands:** | **Commands:** | ||
^ Vserver ^ LXC ^ Notes ^ | ^ Vserver ^ LXC ^ Notes ^ | ||
- | | vserver test enter | lxc-attach -n test -e | Use ''-e'' option with care, especially when restarting processes | | + | | vserver test enter | lxc-attach -n test | Add ''-e'' to enter with elevated privileges (ignoring ''lxc.cap.drop'') | |
| vserver test start | lxc-start -n test -d | | | vserver test start | lxc-start -n test -d | | ||
| vserver test stop | lxc-stop -n test | | | vserver test stop | lxc-stop -n test | | ||
Line 162: | Line 162: | ||
lxc.pts = 1024 | lxc.pts = 1024 | ||
- | # load delfi-fw, if you want to setup firewall when container is already up | + | # load iptables, if you want to setup firewall when container is already up |
- | # you should run 'lxc-attach -e -n test -- fw-load' | + | # you should run 'lxc-attach -e -n test -- service iptables start' |
lxc.hook.pre-mount = /sbin/service iptables start | lxc.hook.pre-mount = /sbin/service iptables start | ||