[[email protected] fastdfs-docker]$ sudo docker run -d --privileged=true a:v1
2be67a4f7e63d5277fc7bea8ca46946e40d526f93bc634166826de2bd5179554
[[email protected] fastdfs-docker]$ sudo docker exec -it 2b bash
[[email protected] /]# service keepalived start
Redirecting to /bin/systemctl start keepalived.service
Failed to get D-Bus connection: Operation not permitted
[[email protected] /]# exit
exit
[[email protected] fastdfs-docker]$ sudo docker stop 2b
2b
[[email protected] fastdfs-docker]$ sudo docker rm 2b
2b
Create a container and start with/usr/SBIN/init
######################
[[email protected] fastdfs-docker]$ sudo docker run -d --privileged=true a:v1 /usr/sbin/init
2dfab2702a180537f58549457fd5993bb0ee3e6e2da72e0672af58d922286ffd
[[email protected] fastdfs-docker]$ sudo docker exec -it 2d bash
[[email protected] /]# service keepalived start
Redirecting to /bin/systemctl start keepalived.service
[[email protected] /]#
[[email protected] /]# service keepalived status
Redirecting to /bin/systemctl status keepalived.service
● keepalived.service - LVS and VRRP High Availability Monitor
Loaded: loaded (/usr/lib/systemd/system/keepalived.service; disabled; vendor preset: disabled)
Active: active (running) since Fri 2021-10-08 06:26:55 UTC; 4s ago
Process: 250 ExecStart=/usr/sbin/keepalived $KEEPALIVED_OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 251 (keepalived)
CGroup: /docker/2dfab2702a180537f58549457fd5993bb0ee3e6e2da72e0672af58d922286ffd/system.slice/keepalived.service
└─251 /usr/sbin/keepalived -D
‣ 251 /usr/sbin/keepalived -D
Oct 08 06:26:55 2dfab2702a18 systemd[1]: Started LVS and VRRP High Availability Monitor.
Oct 08 06:26:55 2dfab2702a18 Keepalived_vrrp[253]: Unable to load module xt_set - not using ipsets
Oct 08 06:26:55 2dfab2702a18 Keepalived_vrrp[253]: VRRP_Instance(VI_1) removing protocol VIPs.
Oct 08 06:26:55 2dfab2702a18 Keepalived_vrrp[253]: VRRP_Instance(VI_1) removing protocol iptable drop rule
Oct 08 06:26:55 2dfab2702a18 Keepalived_vrrp[253]: Using LinkWatch kernel netlink reflector...
Oct 08 06:26:55 2dfab2702a18 Keepalived_vrrp[253]: VRRP_Instance(VI_1) Entering BACKUP STATE
Oct 08 06:26:55 2dfab2702a18 Keepalived_vrrp[253]: VRRP sockpool: [ifindex(447), proto(112), unicast(0), fd(10,11)]
Oct 08 06:26:55 2dfab2702a18 Keepalived[251]: Keepalived_healthcheckers exited with permanent error FATAL. Terminating
Oct 08 06:26:55 2dfab2702a18 Keepalived[251]: Stopping
Oct 08 06:26:56 2dfab2702a18 Keepalived_vrrp[253]: Stopped
[[email protected] /]#
Read More:
- Keepalived add service self-start error analysis [How to Solve]
- Failed to start Remote desktop service (VNC)
- Docker CentOS Failed to get D-Bus connection: Operation not permitted
- Nginx start error: job for nginx.service failed because the control process exited with error code
- Tencent Cloud server encountered “Active: failed (Result: start-limit)” error when starting lightdm
- Raspberry Pi 3 installation and software configuration issues collection
- linux docker Error Failed to get D-Bus connection: Operation not permitted
- Job for docker.service failed because the control process exited with error code. See systemctl sta
- Solution to error 2002 (HY000) in MySQL login startup
- Linux virtual machine network “job for” network.service failed because the control process exited with error code”
- VirtualBox Failed to start LSB:Bring up/down Networking problem
- Failed to get D-Bus connection: No such file or directory
- /usr/sbin/zabbix_agentd: error while loading shared libraries: libcurl.so.4
- systemctl start docker Job for docker.service failed because the control process exited with error
- Docker start error: failed to start docker application container engine.
- Centos7 quick installation of docker and configuration of image acceleration
- MariaDB startup error: Failed to start MariaDB database server
- Warning: failed to get default registry endpoint from daemon
- Docker service start, restart, close command
- MongoDB Error: Failed to start mongod.service: Unit mongodb.service is masked