I am trying to create docker container for one of the centos service created by us.
We have 2 rpm files.
After installing on base image of centos 8.
I installed those 2 rpm files in it.
But, when I try to start the service, I am getting this error. when I ran systemctl start <service_name>
System has not been booted with systemd as init system (PID 1). Can't operate
Failed to connect to bus: Host is down
Based, on the feedback of different posts, I tried creating container with below steps.
docker run -it -p 8080:80 -p 16700:16700 centos
docker run -it -p 8080:80 -p 16700:16700 --privileged=true centos
Both same issue. Please suggest.