How to run systemctl in Docker linux container

I am getting the following message when i am running command systemctl start nginx
Failed to get D-Bus connection: Operation not permitted . Anybody can help. Thanks.

Don’t do that. Is it an image you created? Rewrite it to run the nginx command directly. As a general rule, assume commands like systemctl and service just don’t work in Docker.

thanks for reply it was not build my me. I just pulled using docker run .i just want to use an image from Docker for Jenkins master and slave.So i pulled two linux, ubuntu images. But was not able to install nginx. Hope you can help . Thank you.