Environment centos7 eight
The docker container reported an error using the systemctl command:
[root@d7a74069b83c yum.repos.d]# systemctl status firewalld System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down
Solution:
Add the parameter — privileged when starting the container
[root@localhost ~]# docker run -itd --name c8 --privileged centos /usr/sbin/init 6a6a3c9f9fa9acc59d62a6e82ccb6a637db8aada004aa8a096c6061108c6b144 [root@localhost ~]# docker exec -it c8 /bin/bash
Read More:
- System has not been booted with systemd as init system (PID 1). Can‘t operate
- See system logs and ‘systemctl status docker.service‘ for details
- [Solved] Warning: detected “cgroupfs“ as the Docker cgroup driver. The recommended driver is “systemd“.
- Linux Install Docker Error: Failed to restart docker.service: Unit docker.service not found.
- Docker Startup Error: standard_init_linux.go:211: exec user process caused “no such file or directory”
- Linux system service command error: Failed to allocate directory watch: Too many open files
- [Solved] Docker Staratup Error: Failed to start Docker Application Container Engineadsafdsad.
- Docker -v Directory Mount (How to Use)
- [Solved] docker Startup Error: Job for docker.service failed because the control process exited with error code
- Docker Run ‘echo core > /proc/sys/kernel/core_pattern‘ Error
- [Solved] failed to start remount root and kernel file system
- Prompt “entering emergency mode. Exit the shell to continue” if the Linux operating system does not start normally
- [Solve] Yinhe Qilin V10 System Error: Failed to download metadata for repo ‘ks10-adv-os‘
- [Solved] Error: ENOSPC: System limit for number of file watchers reached
- [Solved] Win 10 VS Code Connect to the container of the server error: Cannot connect to the Docker daemon at … Is the docker daemon running
- [Solved] Job for docker.service failed because the control process exited with error code. After changing the docker configuration
- [Solved] Docker Download Mirror Error: Cannot connect to the Docker daemon at…
- ERROR: This system does not support “RDRAND“ [How to Solve]
- redhat7. 5 system service is not started automatically and use systemctl start error: error getting authority: error initializing authority: CO, (the server will restart)
- cstdio [Error] ‘::fpos_t‘ has not been declared [How to Solve]