[lxc-users] lxc stop does not stop a CentOS 7 container
Hiroaki Nakamura
hnakamur at gmail.com
Fri May 6 17:14:28 UTC 2016
Hi all,
I was trying lxc on Ubuntu 16.04 LTS and found out that
lxc stop does not stop a CentOS 7 container.
I ran the following commands.
lxc image copy images:/centos/7/amd64 local: --alias=cent7
lxc launch cent7 cent01
lxc stop cent01
^ This does not stop the cent01 container even after one minute,
so I pressed Control-C to kill this command.
I found a workaround at
https://lists.linuxcontainers.org/pipermail/lxc-users/2014-February/006304.html
Here is a command to fix.
lxc exec cent01 -- sh -c 'ln -s /usr/lib/systemd/system/halt.target
/etc/systemd/system/sigpwr.target && systemctl daemon-reload'
After this fix, the container is stopped immediately with
lxc stop cent01
I would like to this fix to be included in the original image.
How can I contact the maintainers of container images?
Here are versions of lxc and CentOS 7 image.
$ lxc version
2.0.0
$ lxc image list cent
+-------+--------------+--------+-----------------------------------+--------+---------+-----------------------------+
| ALIAS | FINGERPRINT | PUBLIC | DESCRIPTION |
ARCH | SIZE | UPLOAD DATE |
+-------+--------------+--------+-----------------------------------+--------+---------+-----------------------------+
| cent7 | a027d59858d6 | no | Centos 7 (amd64) (20160506_02:16) |
x86_64 | 62.88MB | May 6, 2016 at 9:55am (UTC) |
+-------+--------------+--------+-----------------------------------+--------+---------+-----------------------------+
Regards,
Hiroaki
More information about the lxc-users
mailing list