lxc中自启动应用程序方法

config:
# Template used to create this container: /usr/share/lxc/templates/lxc-busybox
# Parameters passed to the template:
# For additional config options, please look at lxc.container.conf(5)

# Uncomment the following line to support nesting containers:
#lxc.include = /lxctest/lxc/lxc/share/lxc/config/nesting.conf
# (Be aware this has security implications)

lxc.net.0.type = none
lxc.autodev = 0
lxc.log.level = 0
lxc.log.file = /lxc.log
lxc.console.path = none
lxc.rootfs.path = dir:/xxx/rootfs
lxc.signal.halt = SIGUSR1
lxc.signal.reboot = SIGTERM
lxc.uts.name = "hellolxc"
lxc.autodev = 1
lxc.tty.max = 8
lxc.pty.max = 1
#lxc.cap.drop = sys_module mac_admin mac_override sys_time
#lxc.cap.drop = sys_module
lxc.mount.fstab = /xxx/rootfs/etc/fstab
lxc.rootfs.mount = /xxx/

你可能感兴趣的:(服务器,网络,运维,linux)