更新时间:2022-09-10 12:36:45
packages="openssh-server,rsync"suite="precise"mirror=$(grep "^deb" /etc/apt/sources.list | head -n1 | cut -d" " -f2)target="/tmp/warden/rootfs/"$(which debootstrap) --verbose --include $packages $suite $target $mirror
chroot /tmp/warden/rootfs/passwd设置密码新建vcap用户并设置密码
{"timestamp":1348730196.9785028,"message":"Wrote bind mount commands","log_level":"debug2","source":"Warden::Container::Linux","data":{"handle":"16al6hojp15"},"thread_id":19912820,"fiber_id":26904200,"process_id":12879,"file":"/usr/src/warden/warden/lib/warden/container/linux.rb","lineno":81,"method":"do_create"}{"timestamp":1348730196.9787943,"message":"Wrote /etc/security/limits.conf","log_level":"debug2","source":"Warden::Container::Linux","data":{"handle":"16al6hojp15"},"thread_id":19912820,"fiber_id":26904200,"process_id":12879,"file":"/usr/src/warden/warden/lib/warden/container/linux.rb","lineno":84,"method":"do_create"}
root@10.254.0.18's password: [此处输入密码]
vcap@10.254.0.18's password: [此处输入密码]
If specified, this setting overrides the default time of a container not
being referenced by any client until it is destroyed. The value can
either be the number of seconds as floating point number or integer, orthe `null` value to completely disable the grace time.
本文转自feisky博客园博客,原文链接:http://www.cnblogs.com/feisky/archive/2012/09/27/2706114.html,如需转载请自行联系原作者