Closed free2k closed 3 years ago
FROM centos:7 ENV container docker MAINTAINER The CentOS Project cloud-ops@centos.org COPY rpm/ /root/rpm/ RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in ; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \ rm -f /lib/systemd/system/multi-user.target.wants/; \ yum install -y rp-pppoe vim net-tools less wget crontabs traceroute openssh-server openssh-clients javapackages-tools java-1.8.0-openjdk-devel.x86_64; \ sed -i 's/#UseDNS yes/UseDNS no/g' /etc/ssh/sshd_config; \ systemctl enable sshd; \ rpm -qa | grep java | grep -v javapackages | xargs rpm -e --nodeps; \ rpm -ivh /root/rpm/*; \ yum clean all; \ rm -f /usr/lib/systemd/system/sysinit.target.wants/systemd-udev-trigger.service; \ rm -f /usr/lib/systemd/system/sysinit.target.wants/systemd-udevd.service; \ echo root:cg1uOq#bYsmn|chpasswd VOLUME ["/sys/fs/cgroup"] CMD ["/usr/sbin/init"] " This is the dockerfile
Hi @free2k - thanks for reporting. I wonder if the issue relates to the fact that Kata containers already have systemd running inside them. We'll have to investigate...
sh-4.2# systemctl Failed to get D-Bus connection: Operation not permitted
I have solved the problem of mount failure and also successfully started kata. However, if you fail to start systemd, you will get a "Failed to get D-Bus connection: Operation not permitted" error. @jodh-intel
Description of problem
The image started by systemd cannot be run. Will report an error
https://github.com/projectatomic/oci-systemd-hook/blob/master/src/systemdhook.c line 373 Location tracking found that the mount --move operation fails. I don't know where the problem is.
Expected result
Run successfully
Actual result
/usr/bin/docker-current: Error response from daemon: oci runtime error: hook error.
Meta details
Running
kata-collect-data.sh
version1.3.0 (commit a786643)
at2019-03-12.16:18:22.458075176+0800
.Runtime is
/usr/bin/kata-runtime
.kata-env
Output of "
/usr/bin/kata-runtime kata-env
":Runtime config files
Runtime default config files
Runtime config file contents
Config file
/etc/kata-containers/configuration.toml
not found Output of "cat "/usr/share/defaults/kata-containers/configuration.toml"
":KSM throttler
version
Output of "
/usr/libexec/kata-ksm-throttler/kata-ksm-throttler --version
":Output of "
/usr/lib/systemd/system/kata-ksm-throttler.service --version
":systemd service
Image details
Initrd details
No initrd
Logfiles
Runtime logs
Recent runtime problems found in system journal:
Proxy logs
Recent proxy problems found in system journal:
Shim logs
Recent shim problems found in system journal:
Throttler logs
No recent throttler problems found in system journal.
Container manager details
Have
docker
Docker
Output of "
docker version
":Output of "
docker info
":Output of "
systemctl show docker
":No
kubectl
Packages
Have
dpkg
Output of "dpkg -l|egrep "(cc-oci-runtimecc-runtimerunv|kata-proxy|kata-runtime|kata-shim|kata-ksm-throttler|kata-containers-image|linux-container|qemu-)"
":Have
rpm
Output of "rpm -qa|egrep "(cc-oci-runtimecc-runtimerunv|kata-proxy|kata-runtime|kata-shim|kata-ksm-throttler|kata-containers-image|linux-container|qemu-)"
":