root@plamo7:/var/lib/lxc/c1# lxc-start c1
root@plamo7:/var/lib/lxc/c1# lxc-info c1
Name: c1
State: RUNNING
PID: 2985
IP: 10.0.3.23
Link: vethMZ1HJe
TX bytes: 1.51 KiB
RX bytes: 1.90 KiB
Total bytes: 3.41 KiB
root@plamo7:/var/lib/lxc/c1# pstree -p 2985
init(2985)─┬─crond(3215)
├─getty(3324)
├─getty(3325)
├─getty(3326)
├─getty(3327)
├─getty(3328)
├─syslogd(3187)
└─udhcpc(3307)
root@plamo7:/var/lib/lxc/c1# cat /proc/2985/cgroup
0::/lxc.payload.c1
root@plamo7:/var/lib/lxc/c1# echo 1 > /sys/fs/cgroup/lxc.payload.c1/cgroup.kill
root@plamo7:/var/lib/lxc/c1# lxc-info c1
Name: c1
State: STOPPED
root@plamo7:~# pstree -p 2985
root@plamo7:~#
root@plamo7:~# tail -n3 /var/lib/lxc/c1/c1.log
lxc-start c1 20210917125301.639 INFO error - /Plamo-src/plamo/16_virtualization/lxc/lxc-4.0.4/src/lxc/error.c:lxc_error_set_and_log:33 - Child <2985> ended on signal (9)
lxc-start c1 20210917125301.719 INFO network - /Plamo-src/plamo/16_virtualization/lxc/lxc-4.0.4/src/lxc/network.c:lxc_delete_network_priv:3232 - Removed interface "vethMZ1HJe" from "lxcbr0"
lxc-start c1 20210917125301.761 INFO conf - /Plamo-src/plamo/16_virtualization/lxc/lxc-4.0.4/src/lxc/conf.c:run_script_argv:340 - Executing script "/usr/share/lxcfs/lxc.reboot.hook" for container "c1", config section "lxc"
Last active
September 17, 2021 12:56
-
-
Save tenforward/2c0956cc29de9bded64505f2d8f3877f to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment