Docker System has not been booted with systemd as init system

I have an Ubuntu 18.04 image runing on my docker container. I login into it and installed Openresty. also installed systemd. When I use command “systemctl” I get this error:

System has not been booted with systemd as init system (PID 1). Can't operate.

How can I fix it?

Leave a Comment